--[[ Made by, Snow29 --]] brick = game.Players.LocalPlayer.Character.Torso --define orbittingbrick = game.Workspace.Tablet --define distancefrombrick = 5 --change however you want function Orbit() while true do for i = 1,360 do wait() orbittingbrick.CFrame = brick.CFrame * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0,0,-distancefrombrick) end end end game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if(msg == "Orbit") then player.Chatted:connect(Orbit) end end) end)
Please PM me on roblox or answer here ASAP
Your mistake was simple. you put ()'s on line 20 when you dont need them.
--[[ Made by, Snow29 --]] brick = game.Players.LocalPlayer.Character.Torso --define orbittingbrick = game.Workspace.Tablet --define distancefrombrick = 5 --change however you want function Orbit() while true do for i = 1,360 do wait() orbittingbrick.CFrame = brick.CFrame * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0,0,-distancefrombrick) end end end game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if(msg == "Orbit") then player.Chatted:connect(Orbit) end end) end)
Test the script on something other that local scipt, like just regular script, or screen gui, etc.