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: I need help proof reading this script

Previous Thread :: Next Thread 
datdude3 is not online. datdude3
Joined: 23 Apr 2010
Total Posts: 577
05 Feb 2012 01:57 PM
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "McDonalds" then game.Workspace.Part1.Transparency = 1 game.Workspace.Part1.Cancollide = false wait(8) game.Workspace.Part.Cancollide = true game.Workspace.Part1.Transparency = 0 end) end) end

It says that an unexpected symbol is near one of the )'s thX
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
05 Feb 2012 02:00 PM
You didn't put all your code onto one line did you? Spread it out properly so it is easier to read and indicate the problematic line,
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
05 Feb 2012 02:00 PM
Oh dear Lord, use the Enter button.

game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg)
if msg == "McDonalds" then
game.Workspace.Part1.Transparency = 1
game.Workspace.Part1.Cancollide = false
wait(8)
game.Workspace.Part.Cancollide = true
game.Workspace.Part1.Transparency = 0
end --The end without the ) should go here. I've taken the liberty to do it for you
end)
end)


-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 02:01 PM
looks like a stolen script to me.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
05 Feb 2012 02:01 PM
@Swim you forgot another enter. :S

game.Players.PlayerAdded:connect(function(player)
layer.Chatted:connect(function(msg)
if msg == "McDonalds" then
game.Workspace.Part1.Transparency = 1
game.Workspace.Part1.Cancollide = false
wait(8)
game.Workspace.Part.Cancollide = true
game.Workspace.Part1.Transparency = 0
end --The end without the ) should go here. I've taken the liberty to do it for you
end)
end)

† KMXD †
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
05 Feb 2012 02:03 PM
@knight
Yea I know D:
I'm sick, don't judge.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
datdude3 is not online. datdude3
Joined: 23 Apr 2010
Total Posts: 577
05 Feb 2012 02:07 PM
Srry its just im new to scripting

@mage its not stolen its just that i took it from the wiki and edited it

@knight&Swim-so a space before the script?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
05 Feb 2012 02:08 PM
No, use mine, I just added another enter to Swim's.

† KMXD †
Report Abuse
datdude3 is not online. datdude3
Joined: 23 Apr 2010
Total Posts: 577
05 Feb 2012 04:07 PM
The problem wasnt the enter the problem was the end thanks anyways :S
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