Trying to get the part to spin all the time till a player touched the part than remove the script. I am very new to this. This is what I have and it does not work.
local player = game.Players.LocalPlayer
local part = script.Parent
if part.Name == "Main" then
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.01,0,0)
wait()
else
if player:Touched(part) then
script:Destroy()
end
end
player.Character.Humanoid.Touched:connect (part)

1 comment
Thank you.