Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Script isn't working?

Asked by 9 years ago

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)
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. Redbullusa 1580 — 9y

1 answer

Log in to vote
-1
Answered by
yoshiegg6 176
9 years ago

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

0
Not working brokenrares 48 — 9y
0
Dude there might be more errors in the script other than just that, don't downvote me for only one error. yoshiegg6 176 — 9y
Ad

Answer this question