Advertisement
ceater_nerd

chen chasing her hat gif tool

Feb 22nd, 2021 (edited)
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. -- ceat_ceat
  2. -- this is old lol
  3.  
  4. if game:GetService("RunService"):IsClient() then
  5.     warn("bro use h/ instead of hl/")
  6.     return
  7. end
  8.  
  9. local plr = owner
  10.  
  11. function create(class, properties)
  12.     local inst = Instance.new(class)
  13.     for prop, value in pairs(properties) do
  14.         inst[prop] = value
  15.     end
  16.     return inst
  17. end
  18.  
  19. local tool = create("Tool", {
  20.     Parent = plr:FindFirstChildWhichIsA("Backpack"),
  21.     Name = "da chen"
  22. })
  23.  
  24. local handle = create("Part", {
  25.     Parent = tool,
  26.     Name = "Handle",
  27.     Size = Vector3.new(3, 3, 0.5),
  28.     TopSurface = Enum.SurfaceType.Smooth,
  29.     BottomSurface = Enum.SurfaceType.Smooth,
  30.     CanCollide = false,
  31.     Massless = true
  32. })
  33.  
  34. local texture = create("Texture", {
  35.     Parent = handle,
  36.     Texture = "rbxassetid://6432575630",
  37.     StudsPerTileU = 54,
  38.     StudsPerTileV = 3,
  39. })
  40.  
  41. create("TextLabel", {
  42.     Parent = create("BillboardGui", {
  43.         Parent = handle,
  44.         LightInfluence = 0,
  45.         Size = UDim2.new(5, 0,1, 0),
  46.         StudsOffsetWorldSpace = Vector3.new(0, 4, 0)
  47.     }),
  48.     BackgroundTransparency = 1,
  49.     Size = UDim2.new(1, 0,1, 0),
  50.     Font = Enum.Font.Cartoon,
  51.     Text = "chen on spinne da record",
  52.     TextColor3 = Color3.new(1,1,1),
  53.     TextScaled = true,
  54.     TextStrokeTransparency = 0
  55. })
  56.  
  57. local speed = {
  58.     [false] = 3,
  59.     [true] = -3
  60. }
  61.  
  62. local direction = false
  63. local isactive = true
  64.  
  65. local activated
  66. local tooldestroying
  67. local texdestroying
  68.  
  69. activated = tool.Activated:Connect(function()
  70.     direction = not direction
  71. end)
  72.  
  73. tooldestroying = tool.Destroying:Connect(function()
  74.     tooldestroying:Disconnect()
  75.     texdestroying:Disconnect()
  76.     isactive = true
  77. end)
  78.  
  79. texdestroying = texture.Destroying:Connect(function()
  80.     tooldestroying:Disconnect()
  81.     texdestroying:Disconnect()
  82.     isactive = true
  83. end)
  84.  
  85. while isactive  do
  86.     wait(1/18)
  87.     texture.OffsetStudsU = texture.OffsetStudsU + speed[direction]
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement