January 14, 2020, 4:40pm
I’ve been trying to make it so players can lay in a bed to sleep in a game, and that bed is in a boat (that is affected by physics)
Problem: The player somehow makes the boat glitch, it makes it flip over when the boat collides with something (when it collides, player reacts to physics)
My player is a) welded to the boat and b) have his Humanoid set to PlatformStand
What do I need to add in my script to avoid that issue?
Thanks in advance,
January 14, 2020, 4:43pm
I’m confused what you’re trying to say here, have you tried changing the players WalkSpeed and JumpPower to 0?
January 14, 2020, 4:44pm
No, I haven’t tried that. Please wait, trying…
January 14, 2020, 4:47pm
Remember when I said I set the Humanoid to PlatformStand? Well I didn’t. My code was:
player.Character.PlatformStand = true instead of
player.Character.Humanoid.PlatformStand = true
I’ll mark your answer as the answer cause changing walkspeed & jumppower might avoid me some glitches.
My deepest apologies.
January 14, 2020, 4:48pm
Furthermore, I didn’t know where to post that, and because I used a script to make the bed in the first place and the last time that I failed to pick the category Scripting Support was here to go, well I went for Scripting Support. Evenfurthermore, if you look at the answer, it’s scripting-related.