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: Message if you are in group...

Previous Thread :: Next Thread 
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
26 Jul 2011 12:02 PM
What is wrong w/ this? It is supposed to say who has controll of the raid in a fort but the message won't show. Here-
*************************
localgroupID = 102620
function onTouched(hit)
if character:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
if string.lower(character.Name) == string.lower(user) or
player and player:IsInGroup(102620) then
msg = instance.new("Message")
msg.Parrent = game.Workspace
msg.Text = ("NS has controll over Q1 :p")
wait(3)
msg:remove()
else
msg = instance.new("Message")
msg.Parrent = game.Workspace
msg.Text = ("Raiders have controll over Q1!XD")
wait(9)
msg:remove()
*********************************
Thankyou in advance.
Report Abuse
lazerboy12345 is not online. lazerboy12345
Joined: 13 Jun 2010
Total Posts: 1028
26 Jul 2011 12:03 PM
Um stuff is missing from here!
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
26 Jul 2011 12:09 PM
I thin I forgot to put end. IDK what it really is!
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
26 Jul 2011 12:15 PM
Did you define "character"?
Did you put your ends?

Also add a debounce :T
Report Abuse
lazerboy12345 is not online. lazerboy12345
Joined: 13 Jun 2010
Total Posts: 1028
26 Jul 2011 12:28 PM
Oh yeah the "ends" are missing thats what it was!
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
26 Jul 2011 10:55 PM
Now how do I rewrite it exactly? I'm not good at this...
Sorry.
Report Abuse
soupierblock1 is not online. soupierblock1
Joined: 05 Jun 2011
Total Posts: 18
26 Jul 2011 10:57 PM
no end and you spelled paren parrent
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
26 Jul 2011 10:59 PM
Yeah I have the end. Nope. Not it. The debounce? IDK...
I'm lost...
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
27 Jul 2011 11:27 AM
DONE THX!
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
28 Jul 2011 02:23 PM
Ooops...
geez, i'm dumb
localgroupID = 102620
function onTouched(hit)
if character:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
if string.lower(character.Name) == string.lower(user) or
player and player:IsInGroup(102620) then
msg = instance.new("Message")
msg.Parrent = game.Workspace
msg.Text = ("NS has controll over QI :p")
wait(3)
msg:remove()
else
msg = instance.new("Message")
msg.Parrent = game.Workspace
msg.Text = ("Raiders have controll over QI!XD")
wait(9)
msg:remove()
debounce = false
end
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
28 Jul 2011 02:30 PM
BUMP! Help?
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
29 Jul 2011 10:51 AM
*
script.Parent.Touched:connect(onTouched)
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
30 Jul 2011 02:21 PM
Anyone? What is WRONG?
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
30 Jul 2011 02:34 PM
"localgroupID = ######"

Try adding a space there, between local and groupID.
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