ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
-- // Constants \\ --\r\n-- [ Services ] --\r\nlocal Services = setmetatable({}, {__index = function(Self, Index)\r\nlocal NewService = game.GetService(game, Index)\r\nif NewService then\r\nSelf[Index] = NewService\r\nend\r\nreturn NewService\r\nend})\r\n\r\n-- [ LocalPlayer ] --\r\nlocal LocalPlayer = Services.Players.LocalPlayer\r\n\r\n-- // Functions \\ --\r\nlocal function PlayerAdded(Player)\r\n local Detected = false\r\n local Character;\r\n local PrimaryPart;\r\n\r\n local function CharacterAdded(NewCharacter)\r\n Character = NewCharacter\r\n repeat\r\n wait()\r\n PrimaryPart = NewCharacter:FindFirstChild(\"HumanoidRootPart\")\r\n until PrimaryPart\r\n Detected = false\r\n end\r\n\r\n CharacterAdded(Player.Character or Player.CharacterAdded:Wait())\r\n Player.CharacterAdded:Connect(CharacterAdded)\r\n Services.RunService.Heartbeat:Connect(function()\r\n if (Character and Character:IsDescendantOf(workspace)) and (PrimaryPart and PrimaryPart:IsDescendantOf(Character)) then\r\n if PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 or PrimaryPart.AssemblyLinearVelocity.Magnitude > 100 then\r\n if Detected == false then\r\n game.StarterGui:SetCore(\"ChatMakeSystemMessage\", {\r\n Text = \"Fling Exploit detected, Player: \" .. tostring(Player);\r\n Color = Color3.fromRGB(255, 200, 0);\r\n })\r\n end\r\n Detected = true\r\n for i,v in ipairs(Character:GetDescendants()) do\r\n if v:IsA(\"BasePart\") then\r\n v.CanCollide = false\r\n v.AssemblyAngularVelocity = Vector3.new(0, 0, 0)\r\n v.AssemblyLinearVelocity = Vector3.new(0, 0, 0)\r\n v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)\r\n end\r\n end\r\n PrimaryPart.CanCollide = false\r\n PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)\r\n PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)\r\n PrimaryPart.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)\r\n end\r\n end\r\n end)\r\nend\r\n\r\n-- // Event Listeners \\ --\r\nfor i,v in ipairs(Services.Players:GetPlayers()) do\r\n if v ~= LocalPlayer then\r\n PlayerAdded(v)\r\n end\r\nend\r\nServices.Players.PlayerAdded:Connect(PlayerAdded)\r\n\r\nlocal LastPosition = nil\r\nServices.RunService.Heartbeat:Connect(function()\r\n pcall(function()\r\n local PrimaryPart = LocalPlayer.Character.PrimaryPart\r\n if PrimaryPart.AssemblyLinearVelocity.Magnitude > 250 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 250 then\r\n PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)\r\n PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)\r\n PrimaryPart.CFrame = LastPosition\r\n\r\n game.StarterGui:SetCore(\"ChatMakeSystemMessage\", {\r\n Text = \"You were flung. Neutralizing velocity.\";\r\n Color = Color3.fromRGB(255, 0, 0);\r\n })\r\n elseif PrimaryPart.AssemblyLinearVelocity.Magnitude < 50 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 then\r\n LastPosition = PrimaryPart.CFrame\r\n end\r\n end)\r\nend)
Password
Anyone with the link will still need this password to view.
Self Destruct
5 minutes
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel