Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to lock movement, fade to white and teleport?

Asked by 4 years ago

I would like a brick that does this: locks the player's movement, after a few seconds the screen to fade to white, teleport the player to another brick and then unfade. Anyone got any ideas on how to do this? (i'm a real scripting noob and i wanna try something out).

1 answer

Log in to vote
0
Answered by
Echtic 128
4 years ago

Well if i just made that script for you, you wouldn't learn much, so instead i'll tell you what to do in short lines and some sites where you can find more info about that.

-make a gui, and a frame inside it, make it cover the whole screen and color it white, set it's default transparency to 1

-In order to check if the part was touched try using the .Touched event https://developer.roblox.com/en-us/api-reference/event/BasePart/Touched

  • once that is done you need to tween that frame's transparency. Define your player using that .Touched event inside a script inside the part and then fire a RemoteEvent to transfer that player information to the client. After that define your frame and make it tween it's transparency https://developer.roblox.com/en-us/articles/GUI-Animations

-In order to teleport the character just set it's uppertorso.Position(if r15) or just torso.Position(if r6) to that second part's position but make sure it goes a little bit higher.

-and for the last one just tween the frame away.

0
And yea to lock the movement just set the humanoid.WalkSpeed to 0 and set it to 16 once the script is coming to an end Echtic 128 — 4y
Ad

Answer this question