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: All my scripts are broken.

Previous Thread :: Next Thread 
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
05 Dec 2012 08:04 PM
I'm having a bizarre problem. All scripts I make are broken. Some work, but only sometimes. Others don't work at all. My scripts didn't work even when I tried copying and pasting code from a working script. I don't know what's going on. Any ideas?
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
05 Dec 2012 08:39 PM
Post a few.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
05 Dec 2012 09:07 PM
"
--This simple program I made for some practice makes the brick fall, turn invisible, become visible again, and freeze, before restarting!
while true do
game.Workspace.Part.Position = Vector3.new(-131, 21.3, 142)
part=Game.Workspace.Part
wait(1)
part.Transparency=1
wait(1)
part.Transparency=0
wait(.1)
part.Anchored=1
wait(.5)
part.Anchored=false
wait(1)
end
"

This for example, would teleport the brick into position, turn it invisible, and then would stop working.
Report Abuse
invaderzimfan1233 is not online. invaderzimfan1233
Joined: 20 Jan 2012
Total Posts: 138
05 Dec 2012 10:40 PM
line 9 it should be true not 1
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
06 Dec 2012 02:57 PM
Actually, 1 and true are interchangeable in the case of booleans.
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
06 Dec 2012 02:59 PM
Actually, invader was right and you were wrong.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
06 Dec 2012 03:42 PM
The reason I use a false on line eleven is because it glitches and doesn't work if I use a zero. Anyways, it's irrelevant, because the entire script is broken, not just line nine.
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
06 Dec 2012 03:47 PM
Dude, we know what we're doing. 1 will not work.
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
06 Dec 2012 03:54 PM
this will work

while true do
local part = workspace.Part
part.Position = Vector3.new(-131, 21.3, 142)
wait(1)
part.Transparency=1
wait(1)
part.Transparency=0
wait(.1)
part.Anchored=true
wait(.5)
part.Anchored=false
wait(1)
end
Report Abuse
badboy0910 is not online. badboy0910
Joined: 17 Jan 2009
Total Posts: 176
06 Dec 2012 03:55 PM
Try Asking Lokkut.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
06 Dec 2012 03:59 PM
Just as predicted; still not working. It seems it's a problem with Roblox itself.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
06 Dec 2012 06:17 PM
Anyone have any idea why all the scripts I make are broken?
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
06 Dec 2012 06:22 PM
Try a simple

print("This script should be working.")

and then if that works, step it up to a

local p = Instance.new("Part", Workspace)
p.Position = Vector3.new(0, 0, 0)
p.Anchored = true
print("Finished creating Part")
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
06 Dec 2012 07:24 PM
Basically, if I try to change any properties, most of the time nothing happens.
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
06 Dec 2012 07:26 PM
How about you listen to use and change it from 1 to true?
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
06 Dec 2012 07:36 PM
True;false
1;two
on;off

Typically, in most scripting languages this is correct.

Sadly, this is roblox.

It is either true, or false.




|Paradoxical|
I shun thy heathen, dost thou not know that flames will devour thy mind?
Report Abuse
Gurgle528 is not online. Gurgle528
Joined: 20 Aug 2008
Total Posts: 158
06 Dec 2012 08:56 PM
Try restarting studio.
If not, Roblox has a tool that shows script errors.
Look in ROBLOX's models for admin debugging tool or something of the like
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
06 Dec 2012 09:12 PM
> Actually, 1 and true are interchangeable in the case of booleans.

Not in Lua.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
07 Dec 2012 10:37 AM
Oh, sorry, I'm kind of new to LUA.
Report Abuse
13sam13 is not online. 13sam13
Joined: 29 Jan 2011
Total Posts: 99
07 Dec 2012 11:52 AM
sucks to be you
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2012 11:55 AM
"LUA"

How many times..

Lua is not a acronym its spelled Lua not LUA or lua
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
07 Dec 2012 12:51 PM
I know, dunno why I always end up doing that. >_<
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