Advertisement
oatmeal2009

gfhfdghfdg

Jun 18th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local drophat = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14. ScreenGui.ResetOnSpawn = false
  15.  
  16. Frame.Parent = ScreenGui
  17. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  18. Frame.Position = UDim2.new(0.667636335, 0, 0.138297871, 0)
  19. Frame.Size = UDim2.new(0, 397, 0, 141)
  20.  
  21. drophat.Name = "drop hat"
  22. drophat.Parent = Frame
  23. drophat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  24. drophat.Position = UDim2.new(0.264483631, 0, 0.316374421, 0)
  25. drophat.Size = UDim2.new(0, 200, 0, 50)
  26. drophat.Font = Enum.Font.SourceSans
  27. drophat.Text = "ey men drop hat now"
  28. drophat.TextColor3 = Color3.fromRGB(0, 0, 0)
  29. drophat.TextSize = 14.000
  30.  
  31. -- Scripts:
  32.  
  33. local function GPEBHEE_fake_script() -- drophat.LocalScript
  34. local script = Instance.new('LocalScript', drophat)
  35.  
  36. script.Parent.MouseButton1Click:connect(function()
  37. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  38. if (v:IsA("Accessory")) then
  39. v.Parent = workspace
  40. end
  41. end
  42. end)
  43. end
  44. coroutine.wrap(GPEBHEE_fake_script)()
  45.  
  46. --Made by MrLua(1/0'd#7036)
  47. --Credits to Heplful Guy for the idea lol
  48. local Player = game:GetService("Players").LocalPlayer
  49. repeat wait() until Player.Character
  50. local function Main()
  51. local Humanoid = Player.Character:WaitForChild("Humanoid")
  52. local ripfunction = false
  53. Humanoid.Died:Connect(function()
  54. local DeathLocation = Player.Character:WaitForChild("HumanoidRootPart").CFrame
  55. workspace.ChildAdded:Connect(function(Object)
  56. if not ripfunction and Object.Name == Player.Name then
  57. wait()
  58. Player.Character:WaitForChild("HumanoidRootPart").CFrame = DeathLocation
  59. ripfunction = true
  60. Main()
  61. end
  62. end)
  63. end)
  64. end
  65. Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement