Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a way to fix this script?

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)

2 answers

✓ Accepted answer

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!

2 comments

0

Consider taking good practice into mind

0

Seems to work. Thank you.

This discussion is preserved as it was. New answers, comments, and votes are closed.