Advertisement
HAHOOS

Spinner

Apr 23rd, 2020
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. while wait(0.01) do
  2.     local newCFrame = CFrame.Angles(0, math.rad(3), 0)
  3.     script.Parent.CFrame = script.Parent.CFrame * newCFrame
  4.  
  5.  
  6. local spinner = script.Parent
  7.  
  8. local function onPartTouch(otherPart)
  9.     local partParent = otherPart.Parent
  10.     local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  11.     if humanoid then
  12.         humanoid.Health = 0
  13.     end
  14.    
  15. end
  16.  
  17. spinner.Touched:Connect(onPartTouch)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement