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

Script wont be cloned and put into Character what do I do?

So I have a First-Person script that when a player enters 1st person it should delete a script inside of the Character(and it does that), but when the player leaves First-Person the same script in a folder in ServerStorage should be cloned and put into the character but it does not do that and I get the warning Infinite yield possible on 'ServerStorage:WaitForChild("Scripts")' whats the problem?

game.ServerStorage:WaitForChild("Scripts").HeadTurning:Clone().Parent = Character --this is the line that causes the warning and does not work at all.

1 answer

Is the Script in question, (the Script from which this excerpt was taken from) a LocalScript? LocalScripts cannot access ServerStorage, hence the difference between LocalScript (local) and Script (server).

3 comments

0

Where do you suggest I put it?

0

If you want a place to store the folder where the client can access it, I would recommend ReplicatedStorage.

0

I would recommend moving your folder to ReplicatedStorage, as phxntxsmic has already suggested.

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