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: A simple problem

Previous Thread :: Next Thread 
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:02 PM
im a beginner in scripting i know a bit but not that much, i just want to know whats wrong with this script:


while true do
function(onTocuh)
for i=1,10 do wait(1) game.Workspace.Part1.Transparency=i/10
end
end
game.Workspace.Part1.Touched:connect(ontouch)
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 03:05 PM
-- Recoded with Sublime Text 2

local brick = game.Workspace.Part1

function onTouched()
wait(1)
game.Workspace.Part1.Transparency = 10
end
end
brick:connect(ontouch)
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 03:05 PM
*edit

-- Recoded with Sublime Text 2

local brick = game.Workspace.Part1

function onTouched()
wait(1)
brick.Transparency = 10
end
brick:connect(ontouch)
Report Abuse
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:05 PM
@xNite515
thats not what i meant...
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 03:06 PM
*edit oh my god

-- Recoded with Sublime Text 2

local brick = game.Workspace.Part1

function onTouched()
wait(1)
brick.Transparency = 10
end
brick.onTouched:connect(ontouch)
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 03:07 PM
What did you mean?

You script wouldn't even work.
Report Abuse
coldmillionare is not online. coldmillionare
Joined: 13 Feb 2010
Total Posts: 10560
07 Aug 2012 03:07 PM
while true do
function onTouch()
for i=1,10 do wait(1) game.Workspace.Part1.Transparency = i
end
end
game.Workspace.Part1.Touched:connect(ontouch)

-- @ColdRBLX on Twitter!
Report Abuse
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:07 PM
can't you see the i/10
Report Abuse
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:08 PM
i was talking to xnite :P
Report Abuse
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:09 PM
still not working...
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 03:09 PM
-- Recoded with Sublime Text 2

local brick = game.Workspace.Part1

function onTouched()
wait(1)
i = 1
brick.Transparency = i/10
end
brick.Touched:connect(ontouch)
Report Abuse
DjBadyBoy is not online. DjBadyBoy
Joined: 01 Aug 2011
Total Posts: 681
07 Aug 2012 03:15 PM
bump
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