|
| 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
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
| |
|
|
| 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 |
|
|
|
| 05 Dec 2012 10:40 PM |
| line 9 it should be true not 1 |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2012 02:57 PM |
| Actually, 1 and true are interchangeable in the case of booleans. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2012 02:59 PM |
| Actually, invader was right and you were wrong. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 06 Dec 2012 03:59 PM |
| Just as predicted; still not working. It seems it's a problem with Roblox itself. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2012 06:17 PM |
| Anyone have any idea why all the scripts I make are broken? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 06 Dec 2012 07:24 PM |
| Basically, if I try to change any properties, most of the time nothing happens. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2012 07:26 PM |
| How about you listen to use and change it from 1 to true? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 06 Dec 2012 09:12 PM |
> Actually, 1 and true are interchangeable in the case of booleans.
Not in Lua. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2012 10:37 AM |
| Oh, sorry, I'm kind of new to LUA. |
|
|
| Report Abuse |
|
|
13sam13
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 99 |
|
| |
|
|
| 07 Dec 2012 11:55 AM |
"LUA"
How many times..
Lua is not a acronym its spelled Lua not LUA or lua |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2012 12:51 PM |
| I know, dunno why I always end up doing that. >_< |
|
|
| Report Abuse |
|
|