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
 

Lol fix script xD

Previous Thread :: Next Thread 
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:50 PM
i just made a script, im a little noob and dont know much and remembers. is this wrong?

Workspace;Lighting;Fog
FogEnd = 100
end
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 12:50 PM
well, for one... it isn't javascript, you don't use semicolons...
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:52 PM
A little add on

Workspace;Lighting;Fog
FogEnd = 100
end

OnTouch "Dance"
FogEnd = 200
end

I totally frogot on what to do if you touch the Dance again, i want the FogEnd to be 100 again if touched when the FogEnd was 200
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:53 PM
I Know xD Im Bad A Scripts Now xD i dont remembers anything D: i didnt really script for a while now D:
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:53 PM
Im Sorry D:
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:54 PM
*cries* T-T
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 12:55 PM
Can you help me fix it and tell me whats wrong with it?
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 12:59 PM
There is so much to fix... :/
give me some time, I'll try fixing it
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:00 PM
k you are the best :D
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 01:02 PM
Workspace.Lighting.FogEnd --no such thing as fog in lighting
FogEnd = 100
end

function player.onTouch("Dance") --I'm not quite sure what you're doing here... but I suppose that is a model name
script.Parent.Parent.Touched:connect(onTouch)
then
Workspace.Lighting.FogEnd
FogEnd = 200
end

--tell me what the output is, that probably won't work, but it's pretty close
Report Abuse
ROBLOXHAMTAH is not online. ROBLOXHAMTAH
Joined: 08 Jul 2008
Total Posts: 9609
04 Jan 2013 01:06 PM
game.Lighting.FogEnd = 100
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 01:09 PM
Opps, wasn't looking that well lol

Game.Lighting.FogEnd --no such thing as fog in lighting
FogEnd = 100
end

function player.onTouch("Dance") --I'm not quite sure what you're doing here... but I suppose that is a model name
script.Parent.Parent.Touched:connect(onTouch)
then
Game.Lighting.FogEnd
FogEnd = 200
end
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:19 PM
So which one is the correct and what is an output?
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 01:20 PM
Is "dance" the model name?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:22 PM
Yes? I Supposed? xD
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 01:23 PM
Game.Lighting.FogEnd --no such thing as fog in lighting
FogEnd = 100
end

function player.onTouch("Dance") --I'm not quite sure what you're doing here... but I suppose that is a model name
script.Parent.Parent.Touched:connect(onTouch)
then
Game.Lighting.FogEnd
FogEnd = 200
end

--tell me if it works
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:25 PM
ok :D
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:29 PM
where am i supposed to pu the script?
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
04 Jan 2013 01:31 PM
Workspace
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:34 PM
im gonna play a game, ill work on this later *yawn*
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
04 Jan 2013 01:34 PM
Plus it doesnt work :P
Report Abuse
ROBLOXHAMTAH is not online. ROBLOXHAMTAH
Joined: 08 Jul 2008
Total Posts: 9609
04 Jan 2013 01:50 PM
@pie

Why don't you go learn to script.
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
04 Jan 2013 02:10 PM
game.Lighting.FogEnd = 100
game.Workspace.Dance.Touched:connect(function()
game.Lighting.FogEnd = 200
end)

That would work, although I'm not sure exactly what "Dance" is. I'm not sure if it's a Part in Model, if it's a tool, or what.

Tactical Rainboom Inbound
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