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 comment

1

use characteradded:wait()