local platform = script.Parent -- Reference to the part
local rotationSpeed = 4 -- Rotation speed (degrees per second)
-- Infinite loop to rotate the platform
while true do
-- Rotate the platform on the Y axis
platform.CFrame = platform.CFrame * CFrame.Angles(0, math.rad(rotationSpeed), 0)
wait(0.03) -- Control the smoothness of the rotation
end
anyone can help me with this script? When the player touches the part, the part is supposed to move the player but its not working