How can I detect the player model in the workspace? Below is what I tried.

local player = game.Players.LocalPlayer.Character

2 comments

1

Place two lines behind that line: "repeat wait() until game.Players.LocalPlayer" and ""repeat wait() until game.Players.LocalPlayer.Character". Only use LocalPlayer in LocalScripts.

0

Thanks! it worked!