Ad
Log in to vote
0

Local 'player' (a nil value)... Ive never had this problem unitl the new update?[SOLVED]

Asked by 9 days ago
Edited 9 days ago

ROBLOX Studio updated today and I am getting this error and I think they may have done something in the update but heres the script, maybe I did something wrong.

I tried adding a wait(2) to see if it was checking before the player loaded but it still didnt work and this script has worked before so I dont really know whats wrong with it?

local player = game.Players.LocalPlayer
local character = player.Character

script.Parent.Touched:connect(function()
    local animation1 = game.Workspace.AnimationRunners.AnimationRunner1.Animation

    animation1:Play()   

end)
1
use characteradded:wait() hiimgoodpack 1378 — 8d

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

Answer this question



Ad