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

Script isn't working?

This is a script inside the Workspace.It should give a tool to a certain player that has a certain name but's not working , neither I don't have any errors.

function Add(Player)
	Player:WaitForDataReady()
	if Player.Name == "brokenrares" then -- Already tried with "Player" name but didn't work 
		game.Lighting.Emi:clone().Parent = Player.Backpack
	end
end

game.Players.PlayerAdded:connect(Add)

1 comment

0

I believe ":WaitForDataReady()" is meant to be used if you have a large amount of data to fetch via Data Store. If you're not using Data Store, then I believe that the likely behavior of the script will wait until a set of data is fetched.

1 answer

I think you need to add another end for the WaitForDataReady.

2 comments

0

Not working

0

Dude there might be more errors in the script other than just that, don't downvote me for only one error.

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