player = Game.Players["Abandion"] player.CharacterAdded:Connect(function(chr) chr:SetPrimaryPartCFrame(game.Workspace.Bed.CFrame) end
Like how to make so when you join you spawn at in a bed and sleep. And like the screen is like when your eyes opening and then you wake up?
Please answer.
You can answer at discord also ( HugoRoblox #4646 )
Thanks.
Use the CharacterAdded event of Player to fire a function when they respawn
player = Game.Players["Abandion"] player.CharacterAdded:Connect(function(chr) chr:SetPrimaryPartCFrame(game.Workspace.Bed.CFrame) end
Alright so I can't really do much as I don't have a bed model at the moment nor am at a PC but I can tell you what you need to do.
What you can do to fix this...
Try making a function that can be called when the bed is touched that does what you need it to do. You could try making an if-statement so it doesn't repeat over and over again every time they spawn on the bed. See if either of these fixes your issue. Apologies that I couldn't fix your script but I hope this helps a bit.