Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 20 Sep 2012 08:25 PM |
game.Players.PlayerAdded:connect(function(player) get = game.Players:GetChildren() for index, player in ipairs(get)do m = Instance.new("Message", workspace) m.Text = player.Name.. " rank in FEAR is " ..player:GetRoleInGroup(72321) print("message") wait(4) print("destroy1") m:Destory() a = game.Workspace:findFirstChild("Message") print("destory2") if found then found:Destroy
end)
end
end end end end
20:24:38.943 - Workspace.Script:16: function arguments expected near 'end' |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 08:26 PM |
What's 'found'? And add another end.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=78524341 -- Read that to get better help |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 08:28 PM |
Try this:
game.Players.PlayerAdded:connect(function(player) m = Instance.new("Message", workspace) m.Text = player.Name.. " rank in FEAR is " ..player:GetRoleInGroup(72321) print("message") wait(4) print("destroy1") m:Destory() a = game.Workspace:findFirstChild("Message") print("destory2") if found then found:Destroy end end)
lol why so many ends?
http://www.roblox.com/Forum/ShowPost.aspx?PostID=78524341 -- Read that to get better help |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 20 Sep 2012 08:28 PM |
crap.
That should be a.
wiki does not even tell us to substitute variables e.e |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 08:29 PM |
"wiki does not even tell us to substitute variables e.e"
what does that mean?
http://www.roblox.com/Forum/ShowPost.aspx?PostID=78524341 -- Read that to get better help |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 20 Sep 2012 08:29 PM |
| 20:29:34.597 - Workspace.Script:12: function arguments expected near 'end' |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 20 Sep 2012 08:30 PM |
Oh nevermind, I see. So found should be a?
I hate being able to type fast because floodcheck always sneaks up on me. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 08:30 PM |
First too many ends
and destroy is suuposed to be
Destroy() not Destroy |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 20 Sep 2012 08:31 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() m = Instance.new("Message", workspace) m.Text = player.Name.. " rank in FEAR is " ..player:GetRoleInGroup(72321) print("message") wait(4) print("destroy1") m:Destory() a = game.Workspace:findFirstChild("Message") --But you already destroyed the message. print("destory2") if a then a:Destroy() else return 0 end end)
http://www.roblox.com/Forum/ShowPost.aspx?PostID=78524341 -- Read that to get better help |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 20 Sep 2012 08:31 PM |
@the
To check if there's anymore messages hanging around. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 08:38 PM |
Oh, but FindFirstChild() only finds the first thing it finds named Message.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=78524341 -- Read that to get better help |
|
|
| Report Abuse |
|
|