BobCowMan
|
  |
| Joined: 14 May 2010 |
| Total Posts: 22634 |
|
|
| 22 Dec 2011 11:57 AM |
I hope there's a gift for getting all the gifts O_e
Anyways bids on golden bow tie?
And my super scripting powers came up with this
p = script.Parent
while wait() do p.Position = Vector3.new(x,y+1,z) wait(3) p.Position = Vector3.new(x,y-1,z) wait(3) end
Supposed to be a brick that goes up and down
Of course it doesnt work
Can anyone fix it?
~MOOOOlah 3:8~ |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 11:59 AM |
i only have 11 >.>
and if im gonna get them all, im gonna have to magically get 10k
Donec non ipsum. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 11:59 AM |
| 11/12 gifts.... didnt get rally |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2011 12:00 PM |
I can't script RBX.Lua, so here I go. First, is the brick (P) in the right place? Second, do you need to define x, y, and z? Like with it's current position? I dont know lol. If only this was C# :3 I'm missing 3 gifts...
"No, you see, if you were a script, you would function properly." ~Leeav |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:01 PM |
Congratulations.
Limiteds: Rubber Duckie, Wanwood Antlers, Blue Winter Cap + 3,752 ROBUX |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:01 PM |
Oh and what does your friend the output say?
"No, you see, if you were a script, you would function properly." ~Leeav |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:03 PM |
is it sopposed to be... ( x ,y-1, z ) ? idunnno seems to me that that would be the only thing wrong that I can see :o I iz learning :> |
|
|
| Report Abuse |
|
|
BobCowMan
|
  |
| Joined: 14 May 2010 |
| Total Posts: 22634 |
|
|
| 22 Dec 2011 12:03 PM |
Workspace.Part.Script:4: attempt to perform arithmetic on global 'y' (a nil value)
;o
i know very little scripting, and my scripting buddiez are all offline
~MOOOOlah 3:8~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2011 12:04 PM |
I was right. You need to define x, y, and z with it's current vector position. Which of course, I don't know how to get the current position from a brick >.<
"No, you see, if you were a script, you would function properly." ~Leeav |
|
|
| Report Abuse |
|
|
BobCowMan
|
  |
| Joined: 14 May 2010 |
| Total Posts: 22634 |
|
|
| 22 Dec 2011 12:05 PM |
@Soul
I'll try to define it
~MOOOOlah 3:8~ |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:06 PM |
Your script needs a for i = 1,10 do in it,And you you did not put what is xyz so the script does not work,Plus this is LMad... like..
p = script.Parent x = p.Position.X y = p.Position.Y z = p.Position.Z
while true do for i = 1,10 do wait() p.Position = Vector3.new(x,y+0.1,z) end wait(0.1) for i = 1,10 do wait() p.Position = Vector3.new(x,y-0.1,z) end wait(0.1) end ~pb23 out! |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:06 PM |
Yeah.. If you go into it's proprieties window see if you can find x, y, and z. Then define it at the top like you defined "p". So it would be: x = a # y = a # z = a #
"No, you see, if you were a script, you would function properly." ~Leeav |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:07 PM |
Dangit velocity you beat me to it >.< :P
"No, you see, if you were a script, you would function properly." ~Leeav |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:07 PM |
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 Go thar :o lol |
|
|
| Report Abuse |
|
|
BobCowMan
|
  |
| Joined: 14 May 2010 |
| Total Posts: 22634 |
|
|
| 22 Dec 2011 12:15 PM |
@Cocore
Dunno the community and they dont usually help when I ask
@Velocity
How do I plug in the number?
Like x = p.Position.348.5 doesnt work
x = p.Position.(348.5) doesnt work
This is a little further than I've learned ;o
~MOOOOlah 3:8~ |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 12:18 PM |
Wait what you want to move the brick to and from, Not up and down? Ok you see the y+0.1 make that just y and add +0.1 to the x's
Or just pm me so i can help -.- |
|
|
| Report Abuse |
|
|
LiLDJX
|
  |
| Joined: 17 May 2008 |
| Total Posts: 35012 |
|
| |
|
BobCowMan
|
  |
| Joined: 14 May 2010 |
| Total Posts: 22634 |
|
|
| 22 Dec 2011 12:21 PM |
Your messaging is disabled lol
and I do want to move it up and down
But how do I plug in the position of x,y, and z to define it?
~MOOOOlah 3:8~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2011 12:26 PM |
x = 1337 y = 5 z = 101 Not z = p.Position.352 |
|
|
| Report Abuse |
|
|