hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 08:05 PM |
How would I add +1 stud on the y axis onto this
Part.CFrame = CFrame.new(game.Workspace.Part.Position)
Thanks
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 08:14 PM |
| Part.CFrame = Part.CFrame + CFrame.new(0,1,0) |
|
|
| Report Abuse |
|
|
ediee544
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 2175 |
|
|
| 29 May 2015 08:17 PM |
If you want to move 1 stud up depending on where the brick is facing Part.CFrame = Part.CFrame * CFrame.new(0,1,0) If you want to move just 1 stud in general, then use this Part.CFrame = Part.CFrame + Vector3.new(0,1,0) |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 08:19 PM |
Ah, thanks.
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 08:53 PM |
This is what I've done so far, the problem is this line Part.CFrame = Part.CFrame + Vector3.new(0,0,10) Does nothing, I've added the CFrame values as comments on there :/ This is really frustrating.
local PlayerBody = game.Players.LocalPlayer.Character.Head local Mod = Instance.new("Model",PlayerBody) Mod.Name = "Hdtv13" local Part = Instance.new("Part",Mod) Part.Transparency = 0 Part.Name = "Head" Part.CFrame = CFrame.new(PlayerBody.Position) print(Part.CFrame)--0, 4.5, 25.5, 1, 0, 0, 0, 1, 0, 0, 0, 1 Part.CFrame = Part.CFrame + CFrame.new(0,10,0) print(Part.CFrame)--0, 14.5, 25.5, 1, 0, 0, 0, 1, 0, 0, 0, 1 local Hum = Instance.new("Humanoid",Mod) local weld = Instance.new("Weld",PlayerBody) weld.Part0 = Part weld.Part1 = PlayerBody
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 09:00 PM |
Part.CFrame = Part.CFrame + Vector3.new(0,0,10)
Part.CFrame = CFrame.new + Vector3.new(0,0,10) |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 09:06 PM |
^ No help you just copied what others put down.
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 09:28 PM |
B1
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 10:00 PM |
No I didn't? You messed up on that line, You don't put "Part.CFrame = Part.CFrame"
We kinda get that Part.CFrame means Part.CFrame.
Part.CFrame = CFrame.new + Vector3.new(0,0,10) |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 10:01 PM |
Also, If you scroll up no one else said that line of code.
So read thoroughly before you call me a copier.
|
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 10:05 PM |
Spat out this error :/
Players.Player1.PlayerGui.LocalScript:9: bad argument #1 to '?' (Vector3 expected, got function)
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 10:09 PM |
Try this
Part.CFrame = Part.CFrame * Cframe.new(0,1,0) |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 10:13 PM |
CFrame value's/Tables change 0, 4.5, 25.5, 1, 0, 0, 0, 1, 0, 0, 0, 1 0, 4.5, 35.5, 1, 0, 0, 0, 1, 0, 0, 0, 1
but the brick doesn't
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 10:36 PM |
| Post the part that is breaking? Like the part of the script that is breaking? |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 10:41 PM |
Nothings breaking this is whats annoying me, no errors the script just runs but doesnt reposition it
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 10:43 PM |
Post your script if it isn't 100 lines long.
xD |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 10:44 PM |
I've posted it all
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 11:38 PM |
local part = game.Workspace.Part for i = 1,50 do part.CFrame = part.CFrame * CFrame.new(i,0,0) |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 29 May 2015 11:40 PM |
Erh.. No, I've redone it now.
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 May 2015 11:42 PM |
Part.CFrame = Part.CFrame + Vector3.new(0,0,10) You forgot that uhh, wizard person |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 12:03 AM |
| mummy he called me wizard porsen ;( |
|
|
| Report Abuse |
|
|