NICCO890
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 339 |
|
|
| 13 Mar 2015 10:48 PM |
Okay, so I wanted to make the GUI I made to say the player's name but it won't work, any help on to this:
local function touch(part) local parent = part.Parent if game.Players:GetPlayerFromCharacter(parent)then script.Parent.Script.Disabled = true print(parent) wait(0.1) parent.Humanoid.WalkSpeed = 0 script.Parent.TextTransparency = 1 wait(.1) script.Parent.TextTransparency = 0.7 wait(.1) script.Parent.TextTransparency = 0.5 wait(.1) script.Parent.TextTransparency = 0.3 wait(.1) script.Parent.TextTransparency = 0.1 wait(.1) script.Parent.TextTransparency = 0 wait(1) script.Parent.TextTransparency = 0.1 wait(.1) script.Parent.TextTransparency = 0.3 wait(.1) script.Parent.TextTransparency = 0.5 wait(.1) script.Parent.TextTransparency = 0.7 wait(.1) script.Parent.TextTransparency = 1 wait(.1) script.Parent.Parent.TextLabel.Text = "Welcome"parent"To the game" <---[Here] script.Parent.Parent.TextLabel.TextTransparency = 1 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.7 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.5 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.3 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.1 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0 wait(1) script.Parent.Parent.TextLabel.TextTransparency = 0.1 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.3 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.5 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 0.7 wait(.1) script.Parent.Parent.TextLabel.TextTransparency = 1 parent.Humanoid.WalkSpeed = 5.5 end end game.Workspace.SpawnLocation.Touched:connect(touch) |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 13 Mar 2015 10:52 PM |
| you need to learn about loops |
|
|
| Report Abuse |
|
|
NICCO890
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 339 |
|
|
| 13 Mar 2015 10:53 PM |
| @Laedere Why do I need loops? I just need to print the player's name. |
|
|
| Report Abuse |
|
|
| |
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 13 Mar 2015 10:56 PM |
Loops are better because
1. less laggy 2. makes your script shorter 3. more efficient |
|
|
| Report Abuse |
|
|
NICCO890
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 339 |
|
|
| 13 Mar 2015 10:57 PM |
| @RobuxLife I know that but that doesn't relate to my problem. D'; |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 11:15 PM |
Text = ("Welcome, "..Player.Name.." to the game!") something like that |
|
|
| Report Abuse |
|
|
NICCO890
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 339 |
|
|
| 14 Mar 2015 02:19 AM |
| @unwarranted Thank you, it worked! :D |
|
|
| Report Abuse |
|
|