Advertisement
_Thanh_Thy_Cute_

ROBLOX ANNOYING TOOL STEALER SCRIPT

Aug 18th, 2021
1,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. --script basically will steal any tools that go to the workspace.
  2. --basically an anti tool dupe script (to annoy people who like duping tools for their boomboxes to earrape you with mass-play)
  3. --script will teleport to a tool that has entered the workspace and auto pick it up for you
  4. -- init
  5. getgenv().configuration = {
  6. ToggleKey = "RightAlt", -- Turns the Tool Stealer off and on
  7. FixKey = "LeftAlt", -- Attempts to fix the Tool Stealer if it is broken
  8. }
  9.  
  10. repeat wait() until game:IsLoaded()
  11.  
  12. -- variables
  13. local Players, RunService, UserInputService, StarterGui, workspace = game:GetService"Players", game:GetService"RunService", game:GetService"UserInputService", game:GetService"StarterGui", game:GetService"Workspace";
  14. local Client = Players.LocalPlayer
  15.  
  16. local FunnyToolStealer = true
  17.  
  18. workspace.FallenPartsDestroyHeight = -math.huge
  19.  
  20. -- functions
  21. function Notify(Text)
  22. StarterGui:SetCore("SendNotification", {
  23. Title = "xaxa",
  24. Text = Text or "Text",
  25. Icon = Players:GetUserThumbnailAsync(Client.UserId, Enum.ThumbnailType.AvatarBust, Enum.ThumbnailSize.Size420x420),
  26. Duration = 3,
  27. })
  28. end
  29.  
  30. function GetCharacter(Player)
  31. return Player.Character or Player.CharacterAdded:Wait()
  32. end
  33.  
  34. function ChildAddedEvent(Child)
  35. if FunnyToolStealer == true then
  36. if (Child and Child:IsA"Tool" and Child:FindFirstChild"Handle" and Child.Parent == workspace) --[[and (string.find(string.lower(Child.Name), "boombox") or string.find(string.lower(Child.Name), "radio"))]] then
  37. local RootPart = GetCharacter(Client):FindFirstChild"HumanoidRootPart";
  38. local OldPosition = RootPart.Position
  39.  
  40. repeat RunService.RenderStepped:Wait()
  41. RootPart.CFrame = CFrame.new(Child.Handle.Position) -- .CFrame will flop you on the ground
  42. -- RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.LookVector * 2
  43. until (Child.Parent == GetCharacter(Client) or Child.Parent == Client.Backpack) or UserInputService:IsKeyDown(Enum.KeyCode[configuration.FixKey])
  44.  
  45. RootPart.CFrame = CFrame.new(OldPosition)
  46. end
  47. end
  48. end
  49. workspace.ChildAdded:Connect(ChildAddedEvent)
  50.  
  51. UserInputService.InputBegan:Connect(function(Key)
  52. if not UserInputService:GetFocusedTextBox() then
  53. if Key.KeyCode == Enum.KeyCode[configuration.ToggleKey] then
  54. FunnyToolStealer = not FunnyToolStealer
  55. Notify(string.format("Funny Tool Stealer: %s", tostring(FunnyToolStealer)))
  56. elseif Key.KeyCode == Enum.KeyCode[configuration.FixKey] then
  57. Notify("Checking for Tool Stealer Glitches")
  58. end
  59. end
  60. end)
  61.  
  62. -- end
  63. Notify("funny tool stealer loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement