The following script seems to work in play solo and test mode but not in an actual server. I've tried all test modes including f6 and it seems to work fine yet nothing occurs in a real time server. I've tried using this on a normal script with respects to game.Players. The following script is run from a local script inside the player's character.
Is there a way to fix this script? Thank you.
wait(1) Person = game.Players.LocalPlayer Transmuting = false function Transmutation1() local CircleClone = game.ServerStorage.EarthCircle1:Clone() CircleClone.Parent = workspace CircleClone:MoveTo(Person.Character.Torso.Position) CircleClone.CircleWork.Disabled = false Animation = Person.Character.Humanoid:LoadAnimation(script.DrawCircle) Person.Character.Humanoid.WalkSpeed = 0 Animation:Play() wait(11) Person.Character.Humanoid.WalkSpeed = 16 Animation:Stop() end Person.GetMouse().KeyDown:connect(function(key) if key:byte() == 49 and Transmuting == false then Transmuting = true print("First transmutation.") Transmutation1() wait(5) Transmuting = false end end)
A much simpler and easier way to do things is that you could just move the 'CircleClone' to Replicated Storage. Also if filtering enabled is true then you may have to make a Remote Event for the Server Script to fire and you won't need to move Circle Clone around.
Hope this helped!
It works in Studio, but not online!
LocalScripts can't access ServerStorage. Consider firing a RemoteEvent to let the server handle it.