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: Why isn't this script working properly?

Previous Thread :: Next Thread 
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
09 Sep 2013 11:02 PM
For one, I know it's an inefficient/crappy script. I know. I started scripting less than three weeks ago. Please, don't give me suggestions of how to change it to make it better. I just need to know why the way I did, crappy as it is, isn't working, because it should be, as far as I know.

while true do
wait()
script.Parent.Transparency = 0
for x = .05,1.05,.05 do
wait(.1)
script.Parent.Transparency = x
if script.Parent.Transparency >= 1
then
script.Parent.CanCollide = false
if script.Parent.Transparency < 1
then
script.Parent.CanCollide = true
end
end
end
end
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
09 Sep 2013 11:04 PM
if script.Parent.Transparency <= 1
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
09 Sep 2013 11:07 PM
Redlo, if its >= 1 I want it false, if it's < 1, I want it true. I cant have >= and <=. They aren't compatible, unless I never use 1. But I do.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
09 Sep 2013 11:08 PM
Why do you use such wonky syntax?
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
09 Sep 2013 11:09 PM
Because I am suckish at scripting. Still learning. A lot. I haven't used this stuff yet.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
09 Sep 2013 11:11 PM
Where do you learn such wonky syntax?
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
09 Sep 2013 11:12 PM
Um. Mostly from trying things out and seeing what works, with the help of Scripting Helpers, and the Wiki. It's hard to find a good way to do things, because there's so many methods. I'm just trying t learnt he basics for now, to become familiar with scripting. THen I'll get to making actually decent scripts.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
09 Sep 2013 11:13 PM
In the future, do not use such wonky syntax.
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
09 Sep 2013 11:14 PM
I will try. But for now. I need help with my wonky syntax.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
10 Sep 2013 02:04 AM
Two thens for one if statement... Seems Legit.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
10 Sep 2013 02:05 AM
Wait nvm...
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
10 Sep 2013 02:07 AM
"if script.Parent.Transparency >= 1
then
script.Parent.CanCollide = false
if script.Parent.Transparency < 1"
If it`s greater then or equal to one then check if it`s less then one...
You need an end after false.
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
10 Sep 2013 05:53 AM
2nd if is a elseif


dumb floodcheck

Odnarb will RULE
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
10 Sep 2013 04:20 PM
Lamp, thanks.
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