ARisingsJoin Date: 2014-02-02 Post Count: 90 |
I need help with scripting the ending part for this script.
script.Parent.Touched:connect(function(part)
h = game.Workspace.TestingPartScript.Parent:findFirstChild("Humanoid")
humanoid = part.Parent:findFirstChild("Humanoid")
if humanoid then
wait (1)
game.StarterGui.ScreenGui.TextLabel.Visible = true
wait(1)
game.StarterGui.ScreenGui.TextLabel.Text = "I am behind you!"
game.StarterGui.ScreenGui.Test.Sound:play()
wait(1)
game.StarterGui.TextLabel.Visible = false
end
end) |
|
|
The second line seems completely unnecessary in this context. Also, you should be modifying the LocalPlayer's StarterGui and not the game's StarterGui. Otherwise, you will see no change until respawn. |
|
|
I am sorry, but this script doesn't even make sense. |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
You know I am Banlio's scripter. |
|
|
script.Parent.Touched:connect(function(part)
humanoid = part.Parent:findFirstChild("Humanoid")
if humanoid then
part.Parent = character
player = game.Players:GetPlayerFromCharacter(character)
wait (1)
player.StarterGui.ScreenGui.TextLabel.Visible = true
wait(1)
player.StarterGui.ScreenGui.TextLabel.Text = "I am behind you!"
player.StarterGui.ScreenGui.Test.Sound:play()
wait(1)
player.StarterGui.TextLabel.Visible = false
end
end)
Something like that? |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
How i don't depend on a 2012 person to script. Also frost it doesn't matter what the h thing does it just stands for something.. |
|
|
You made your variables hard for us to understand since we can not see exactly what you are trying to do. Give us a better picture. |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
iceglacier that is killing me instead. |
|
|
1. Learn to read names
2. In no way would that script kill you. It's the same exact script that you gave me except for the fact that I fixed some mistakes.
If you want us to really fix it, then give us some more context or what should be going on. |
|
|
Ice is right though, no one will see the changes until they die. |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
Wait actually the touch intrest did that I don't even know how I even got the text interest.
Does it need a ending?
|
|
|
script.Parent.Touched:connect(function(part)
humanoid = part.Parent:findFirstChild("Humanoid")
if humanoid then
part.Parent = character
player = game.Players:GetPlayerFromCharacter(character)
wait (1)
player.PlayerGui.ScreenGui.TextLabel.Visible = true
wait(1)
player.PlayerGui.ScreenGui.TextLabel.Text = "I am behind you!"
player.PlayerGui.ScreenGui.Test.Sound:play()
wait(1)
player.PlayerGui.TextLabel.Visible = false
end
end) |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
The StarerGui is fine. But we have a error. |
|
|
Copy and paste the error on this thread. |
|
ARisingsJoin Date: 2014-02-02 Post Count: 90 |
well I think the Gui is not turning Visible. |
|
|