|
| 08 Aug 2016 10:20 PM |
I'm looking for a script that'll teleport a player inside a building. The player will touch the door and fade to black and unfade once the player is moved inside the building. Me, knowing not even the basics of scripting, need someone to make it.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2016 07:12 AM |
| For the fading part, you'll need a completely black GUI that fades in and out and fills the whole screen. I can try to make it for you, although the teleporting part's difficulty depends on whether the player simply teleports within one place or to a completely different place. |
|
|
| Report Abuse |
|
|
derfvb123
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 704 |
|
|
| 09 Aug 2016 08:24 AM |
Like cit said, just make a black screen gui, make the transparency 1.
then make a ontouch function which makes the gui transparency 1.
for the fade it would be something like
for i = 1,10 in pairs do script.Parent.Transparency = script.parent.Transparency - 0.01 end
^ this takes away transparency for the gui by 0.01
(well it should unless I typed something wrong.
then once your teleported just make it a while true do loop or something like this
while true do
if script.Parent.Transparency => 0 then script.Parent.Transparency = script.Parent.Transparency + 0.01
end
--generic signature ples-- |
|
|
| Report Abuse |
|
|
derfvb123
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 704 |
|
|
| 09 Aug 2016 08:25 AM |
(Thats the general Idea at least)
(THE SCRIPT ISN'T COMPLETE IT'S A GENERAL IDEA OF HOW TO DO IT.)
--generic signature ples-- |
|
|
| Report Abuse |
|
|