generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Basic End Help

Previous Thread :: Next Thread 
Xnite515 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. 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 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
20 Sep 2012 08:30 PM
gosh. Just ignore that.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
20 Sep 2012 08:30 PM
First too many ends

and destroy is suuposed to be

Destroy() not Destroy
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
20 Sep 2012 08:30 PM
There it's fixed.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image