|
| 04 Jan 2015 09:02 PM |
I need help with something;
I assume this is the right subforum to be posting in.
I'm making an Intro for a place and I'm having trouble pinpointing what I should be doing to prevent the Intro from loading again after respawn. Anyone know what I should be doing? ;-;
This is what my script looks like at the moment: local rma = script.Parent
rma.MouseButton1Down:connect(function() script.Parent.Visible = false wait(1) script.Parent.Parent.TextLabel.Visible = true wait(5) script.Parent.Parent.TextLabel.Visible = false script.Parent.Parent.RSSlide.Visible = true wait(5) script.Parent.Parent.RSSlide.Visible = false script.Parent.Parent.MCSlide.Visible = true wait(5) script.Parent.Parent.MCSlide.Visible = false script.Parent.Parent.Parent.Parent.MainMenu.MenuDefault.Visible = true script.Parent.Parent:Destroy() end) |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 04 Jan 2015 09:09 PM |
What i usually do is have a server script thats like
palyers.PlayerAdded:connect(function() --not proper syntax game.ServerStorage.INTROGUI:Clone().Parent = Player.PlayerGui end)
badda bing badda boom. And do nothing special with the actual gui.
|
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 09:11 PM |
I'm going to try that, it looks like it should work.
Thank you. |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 09:36 PM |
I found a different (yet similar) way that makes more sense to me. I sincerely thank you for pointing me in this direction.
I went with this instead:
local players = game:GetService("Players")
function onPlayerAdded(player) game.ServerStorage.Intro:Clone().Parent = player.PlayerGui end
players.PlayerAdded:connect(onPlayerAdded) |
|
|
| Report Abuse |
|
|