This is a LocalScript inside StarterGui. Rotate is the child of LocalScript.
When I hit 'Start' in Studio the script is cloned in the frame where I can manipulate the player but it isn't cloned into the "Server" (the other of the two frames that show up).
If I manually copy the Rotate script and put it into the server it spins the Gui in the Player's frame.
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
screenGui.Name = "MenuGui"
local ImageLabel = Instance.new("ImageLabel")
ImageLabel.BackgroundTransparency = 0
ImageLabel.Size = UDim2.new(0, 500,0, 500)
ImageLabel.Position = UDim2.new(0.3, 0,0.1, 0)
ImageLabel.Parent = screenGui
local Rotate = script:WaitForChild("Rotate")
local RotateClone = Rotate:Clone()
RotateClone.Parent = ImageLabel
RotateClone.Disabled = false
---ROTATE SCRIPT: (Grouped under the LocalScript in Starter Gui)
while true do
wait()
script.Parent.Rotation = script.Parent.Rotation + 5
end |