|
| 31 Jul 2012 09:40 PM |
I thought I'd get more intelligence from here.
T = script.Parent.Parent.Thingy function onTouched(hit) if hit.Parent.Humanoid ~= nil then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if local player.TeamColor = BrickColor(Bright blue) m = Instance.new(Hint,game.Workspace) m.Text = ("The Dalcan Alliance are hacking into the terminal!") then T.Reflectance = 0.1 wait(0.1) T.Reflectance = 0.2 wait(0.1) T.Reflectance = 0.3 wait(0.1) T.Reflectance = 0.4 wait(0.1) T.Reflectance = 0.5 wait(0.1) T.Reflectance = 0.4 wait(0.1) T.Reflectance = 0.3 wait(0.1) T.Reflectance = 0.2 wait(0.1) T.Reflectance = 0.1 T.BrickColor = BrickColor.new(Bright blue) end end end
script.Parent.Touched:connect(onTouched)
The almight output says "Unexpected symblow near local" Line 5. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 09:41 PM |
Seems okay to me :|
Almighty* Symbol* |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 09:42 PM |
"I thought I'd get more intelligence from here."
You won't gain intelligence by being near intellectuals. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 09:43 PM |
thread name: Script isn't working
what we say: People aren't helping
look at line 5. It has something to do with local near the if statement. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 09:47 PM |
| @Arecus, not myself gaining intellect. I figured I'd get more intelligent people here rather in Scripting helpers. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 09:57 PM |
| silly goose, if you're intelligent you wouldn't be needing help in the first place |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 10:26 PM |
| Intelligent people ask for help too... |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 10:27 PM |
Not for this kind of basic help though
|
|
|
| Report Abuse |
|
|
agent767
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 31 Jul 2012 10:28 PM |
^Good thing that I never asked for help as you can find everything on the wiki. If I couldn`t fix the script I just punched the computer and ragequited. Good old times,now I have a notebook... |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 10:30 PM |
| y u no trow comupter out windoz |
|
|
| Report Abuse |
|
|
agent767
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 31 Jul 2012 10:37 PM |
| I could get sued for environmental pollution... |
|
|
| Report Abuse |
|
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
|
| 31 Jul 2012 11:07 PM |
| In case no one has answered this yet, just remove the local on your conditional in line 5. There are probably more errors if you have that one, but I don't feel like reading and I'm just doing the obvious, mechanical fixing that the output gave me to work with. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 11:10 PM |
@aboy I answered. It's usually best to give them hints instead of blatantly giving the answer out because then you get their mind set in a "oh, this doesn't work, I should ask in the Scripters forum before I do any form of debugging at all" pattern.
And nobody wants that. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 31 Jul 2012 11:10 PM |
Just put this at the start of your Script:
--[[
And put this at the end of your Script:
]]
And I guarantee it'll work without throwing any errors. |
|
|
| Report Abuse |
|
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
|
| 31 Jul 2012 11:11 PM |
@tech
He'd never get that. You said "look" at the local. That could mean add another! :P I just gave him the solution. As to the why, well... Why would you put that there in the first place, it just doesn't syntactically make sense!! |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 11:11 PM |
@Seranok The funniest thing is, it's true.
trolling at its finest lmao |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2012 11:13 PM |
@aboy
The local? Probably some type of mistake, or maybe he doesn't realize that you only need to declare a local variable once. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2012 12:54 AM |
| Open the output, press the play button on your edit mode thingy and the error should come up. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2012 12:58 AM |
| WEll you could open the command bar, i think that's what it's called, and it will tell you what part of the script it can't processes |
|
|
| Report Abuse |
|
|