I'm making a game with keys, I have a little timer and when it reaches zero, the key is supposed to respawn, but when I play test, it gives me this error...
"YellowSpawn is not a valid member of workspace" -- yellow spawn is the key spawn
Here is my script:
game.ReplicatedStorage.Values.Seconds.Changed:Connect(function()
if game.ReplicatedStorage.Values.Seconds.Value == 0 then
wait(1)
game.ReplicatedStorage.Values.Seconds.Value = 6
workspace.YellowKey.Handle.Position = workspace.YellowSpawn.Position -- This is the part
end
end)
Thank you if you can help!

2 comments
Well then it's not in the workspace
yea can collide made it fall out of the map