|
| 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 |
|
|
|
| 26 Jul 2011 12:03 PM |
| Um stuff is missing from here! |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:09 PM |
| I thin I forgot to put end. IDK what it really is! |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:15 PM |
Did you define "character"? Did you put your ends?
Also add a debounce :T |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:28 PM |
| Oh yeah the "ends" are missing thats what it was! |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 10:55 PM |
Now how do I rewrite it exactly? I'm not good at this... Sorry. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 10:57 PM |
| no end and you spelled paren parrent |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 10:59 PM |
Yeah I have the end. Nope. Not it. The debounce? IDK... I'm lost... |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 29 Jul 2011 10:51 AM |
* script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|