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: Script just doesn't run.

Previous Thread :: Next Thread 
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:34 PM
I made a script for lava that changes the transparency or what would look like brightness but it does not run and the Output does not tell me i made any errors. Can anyone help?
~Tanker273~

Script:

local bin = script.Parent
local bright = script.Parent.Transparency

while true do
wait (0.3)
for i = 1, 80 do
wait (0.1)
bright = (bright - 0.01)
end
wait (0.4)
for i = 1, 40 do
wait (0.1)
bright = (bright - 0.01)
end
end
Report Abuse
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
01 Nov 2012 06:35 PM
Why use for 1 = 1, 80 do?
It isn't needed.

Just:

while true do
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency - 0.01
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency - 0.01
end


._.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:36 PM
but if it stats at 0, it cant go to negative, therefor making it always stay at 0, you can do:

while true do
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency + 0.1
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency + 0.1
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency - 0.1
wait(0.4)
script.Parent.Transparency = script.Parent.Transparency - 0.1
end
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
01 Nov 2012 06:37 PM
local bin = script.Parent
while wait(.3)do
for i=1,80 do
wait(.1)
bin.Transparency=bin.Transparency-.01
end
wait(.4)
for i=1,40 do
wait(.1)
bin.Transparency=bin.Transparency-.01
end
end


You can't index a property to change it like that, you need to write out .Transparency
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:38 PM
your wrong ^^
You can do

script.Parent blah blab blah

GetGoodOrDieTrying
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:39 PM
^^ I'm avoiding doing that way for once...
Report Abuse
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
01 Nov 2012 06:43 PM
dont do anything cntkillme says..
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:44 PM
I'm just trying to do a smoother transition of + 0.01 instead of + 0.1 without spending a long time writing out bin.Transparency = (0.01) bin.Transparency = (0.02)...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:46 PM
lol mad?
I am atleast a 5x better scripter than you can ever become
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:49 PM
Well for starters, you just want to do the most easy/simple way, I want to advance in scripting, not stay where I am.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:50 PM
Simple = better cuz shorter, more eficent, bugless

But you can always do this..

for i = 1, 100 do
script.Parent.Transparency = script.Parent.Transparency + 0.1
wait()
end
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Nov 2012 06:52 PM
....


0.1 * 100 = 10

You only need to repeat it 10 times.
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:53 PM
Ever thought of other ways to do this, that might lead to learning new things? apparently, no. I did... Now if you just want to keep fighting for no reason at all, just leave. I was looking for a question answered, not a immature kid trying to show up people.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
01 Nov 2012 06:56 PM
for i=.01,1,.01 do
script.Parent.Transparency=i
wait(.03)
end


l2script
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:56 PM
@!@#@

How do we know he even wants it this way?
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:58 PM
Thank you for finality answering my question.
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 06:58 PM
Did you read the initial message? .-.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
01 Nov 2012 06:59 PM
He doesn't I fixed your scripts. Transparency can't go to 10, it's on a scale of 0-1, and utilizing the variable of the for..do statement is much more efficient that your method at increasing the transparency of an object. KTHX L2SCROPT
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 06:59 PM
O_o are you talking to me?
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
01 Nov 2012 07:00 PM
yes

hi
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 07:05 PM
I never even not didn't talk to you, never
Report Abuse
Tanker273 is not online. Tanker273
Joined: 25 Mar 2011
Total Posts: 57
01 Nov 2012 07:07 PM
@Woodstauk4, You answered my question and gave me something to work off of. I will need to edit to bring the trans. in and out but thanks you. That was all i needed...
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
01 Nov 2012 07:09 PM
for i=-1,1,.01 do
script.Parent.Transparency=math.abs(i)
wait(.03)
end




LOLOLOLOLO or


for i=1,-1,-.01 do
script.Parent.Transparency=math.abs(i)
wait(.03)
end



LOLOLOLOLO
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Nov 2012 07:10 PM
thats just stupid...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Nov 2012 07:11 PM
Xx is actually right!!
jjkkzz
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