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

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

Asked by 6 years ago
Edited 6 years 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 2009 — 6y

Answer this question