Want to stay connected to the Scripting Helpers community and get real-time help? Join the Scripting Helpers Discord Server!
Ad
Log in to vote
0

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

Asked by 8 months ago
Edited 8 months 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 1772 — 8mo

Answer this question