of     2   
chevron_rightchevron_rightchevron_right

blox6137
#141262024Wednesday, July 23, 2014 10:01 AM GMT

local part = script.Parent pPos = part.Position while wait(.5) do pPos = Vector3.new(pPos) + 0,1,0 end -- it says expected vector3, got number
AnonyAnonymous
#141262276Wednesday, July 23, 2014 10:10 AM GMT

pPos = Vector3.new(pPos) + Vector3.new(0,1,0)
UncleTaz
#141262311Wednesday, July 23, 2014 10:11 AM GMT

Trying to make a part move upwards?
blox6137
#141262316Wednesday, July 23, 2014 10:11 AM GMT

Yeah.
blox6137
#141262411Wednesday, July 23, 2014 10:14 AM GMT

It still isn't working. :/ ~~~~~ local part = script.Parent pPos = part.Position while wait(.5) do pPos = Vector3.new(pPos) + Vector3.new(0,1,0) end ~~~~~ I have other scripts working on the same part, so not sure if that affects anything.
AnonyAnonymous
#141262520Wednesday, July 23, 2014 10:17 AM GMT

Try using, pPos = pPos + Vector3.new(0,1,0) Inform us of the result.
UncleTaz
#141262555Wednesday, July 23, 2014 10:19 AM GMT

Lol didn't give up on you. Testing some scripts right now
blox6137
#141262565Wednesday, July 23, 2014 10:19 AM GMT

Same result. Could pPos be the problem?
UncleTaz
#141262568Wednesday, July 23, 2014 10:19 AM GMT

@Anony I already tried that
blox6137
#141262690Wednesday, July 23, 2014 10:23 AM GMT

http://www.roblox.com/test-item?id=167871597 I accidentally posted this on my alt, but here it is.
AnonyAnonymous
#141262696Wednesday, July 23, 2014 10:24 AM GMT

Hmm, try using this, local part = script.Parent pPos = part while wait(.5) do pPos.Position = pPos.Position + Vector3.new(0,1,0) end
blox6137
#141262736Wednesday, July 23, 2014 10:25 AM GMT

Sorry, you guys probably don't know what that link is. I thought I created a post earlier about making a model. Guess I didn't. :/ ~ALL THAT MODEL IS IS A SPAWN POINT~ I don't get why I'm having such a hard time with it.
blox6137
#141262759Wednesday, July 23, 2014 10:25 AM GMT

Doesn't that completely revoke the meaning of pPos? I could just use 'part', couldn't I?
YamamotoTaka
#141262781Wednesday, July 23, 2014 10:26 AM GMT

Assign pPos in the while loop
blox6137
#141262797Wednesday, July 23, 2014 10:26 AM GMT

Well it worked, so thank you! Now I'm just going to mess around with that script a bit to make it work as I initially intended it to. Thanks again.
UncleTaz
#141262828Wednesday, July 23, 2014 10:28 AM GMT

D: I was late. pPos = script.Parent while wait(.5) do for i = pPos.Position.y, pPos.Position.y + 5, .5 do x = pPos.Position.x z = pPos.Position.z pPos.CFrame = CFrame.new(x, i, z) wait() end end That could be simpler but eh
YamamotoTaka
#141262836Wednesday, July 23, 2014 10:28 AM GMT

local part = script.Parent while wait(.5) do pPos = part.Position pPos = pPos + Vector3.new(0,1,0) end
YamamotoTaka
#141262859Wednesday, July 23, 2014 10:29 AM GMT

I got ninjaed
blox6137
#141262971Wednesday, July 23, 2014 10:33 AM GMT

Okay, so I got what I initially wanted, but how would I make it come back down? ~~~~~ local part = script.Parent pPos = part while wait(.1) do if pPos.Position == Vector3.new(67, 7, -150) then pPos.Position = pPos.Position + Vector3.new(0,1,0) wait() elseif pPos.Position == Vector3.new(67, 9, -150) then pPos.Position = pPos.Position - Vector3.new(0,1,0) wait() end end ~~~~~ it just moves it up, and then stops running.
YamamotoTaka
#141263203Wednesday, July 23, 2014 10:40 AM GMT

pPos = pPos - Vector3.new(0, HOW MUCH STUDS YOU WANT IT TO GET DOWN, 0)
YamamotoTaka
#141263253Wednesday, July 23, 2014 10:42 AM GMT

Wait just forget my post
YamamotoTaka
#141263293Wednesday, July 23, 2014 10:43 AM GMT

The elseif only fires once
blox6137
#141263300Wednesday, July 23, 2014 10:43 AM GMT

Okay, I have a script, but how would I make it less glitchy? local part = script.Parent pPos = part while wait(1) do pPos.Position = pPos.Position + Vector3.new(0, 1, 0) wait(1) pPos.Position = pPos.Position - Vector3.new(0, 1, 0) end
YamamotoTaka
#141263338Wednesday, July 23, 2014 10:44 AM GMT

Nevermind I'm maybe drunk or something just forget me
MTamidex
#141263550Wednesday, July 23, 2014 10:51 AM GMT

why don't you use for i=STARTINGNUMBER, ENDINGNUMBER do? Like for i = 1, 5 do pPos = Vector3.new(0, i , 0) end i don't know if this works though

    of     2   
chevron_rightchevron_rightchevron_right