Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Disabling player control for Cut Scenes?

Is there a way I can disable Player control for a few seconds and re-enable control back.?

1 answer

If your looking to stop the player from moving around and jumping while the camera is going through a cut scene you could set the character's Humanoid's Walkspeed and JumpPower both to 0 right before it begins,

character.Humanoid.WalkSpeed=0
character.Humanoid.JumpPower=0

Then when it ends you can set it back to the original values. You could record what they were before you changed them and set it to that recorded state

local w,j=character.Humanoid.WalkSpeed,character.Humanoid.JumpPower
character.Humanoid.WalkSpeed=0
character.Humanoid.JumpPower=0

--start here

--stop here

character.Humanoid.WalkSpeed=w
character.Humanoid.JumpPower=j

2 comments

0

I want the player to be controlled via script, I want it to be able to walk.

0

@GeezuzFustion your question was how to disable movement for a cut scene and reenable it after its done, this question answers that

This discussion is preserved as it was. New answers, comments, and votes are closed.