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 » Scripters
Home Search
 

Re: Script isn't working.

Previous Thread :: Next Thread 
testedmarkel62 is not online. testedmarkel62
Joined: 25 Nov 2009
Total Posts: 4291
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
testedmarkel62 is not online. testedmarkel62
Joined: 25 Nov 2009
Total Posts: 4291
31 Jul 2012 09:41 PM
Seems okay to me :|

Almighty*
Symbol*
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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
testedmarkel62 is not online. testedmarkel62
Joined: 25 Nov 2009
Total Posts: 4291
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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
31 Jul 2012 09:57 PM
silly goose, if you're intelligent you wouldn't be needing help in the first place
Report Abuse
testedmarkel62 is not online. testedmarkel62
Joined: 25 Nov 2009
Total Posts: 4291
31 Jul 2012 10:26 PM
Intelligent people ask for help too...
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
31 Jul 2012 10:27 PM
Not for this kind of basic help though
Report Abuse
agent767 is not online. 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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
31 Jul 2012 10:30 PM
y u no trow comupter out windoz
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
31 Jul 2012 10:37 PM
I could get sued for environmental pollution...
Report Abuse
aboy5643 is not online. 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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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 is not online. 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 is not online. 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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
31 Jul 2012 11:11 PM
@Seranok
The funniest thing is, it's true.

trolling at its finest lmao
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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
AndrewIsAnnoyed is not online. AndrewIsAnnoyed
Joined: 11 Feb 2011
Total Posts: 3994
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
Icebender45 is not online. Icebender45
Joined: 31 Mar 2012
Total Posts: 30
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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