|
| 09 Apr 2015 11:19 AM |
I have a script that spawns a brick (a sphere) at the position of someone's torso
Cancollide = false
it spawns where it is supposed to.. but then I have a script inside the brick that does
repeat wait(.1) script.Parent.Size = script.Parent.Size + Vector3.new(1,1,1) until script.Parent.Size.X >= 10
obviously this makes the brick teleport above the player because it is changing size...
i have thought and thouguht about it, but idk how to prevent that w/o using another loop
Mewo. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2015 11:20 AM |
So I guess I just need suggestions on how to get it to stay in place
Mewo. |
|
|
| Report Abuse |
|
|
iJava
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 29914 |
|
| |
|
| |
|
iJava
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 29914 |
|
|
| 09 Apr 2015 11:34 AM |
local sphere = [your sphere] local weld = Instance.new("ManualWeld", sphere) weld.Part0 = sphere weld.Part1 = player.Character.Torso weld.C0 = CFrame.new() weld.C1 = player.Character.Torso.CFrame:inverse() * sphere.CFrame weld.Parent = sphere
-Widths |
|
|
| Report Abuse |
|
|
iJava
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 29914 |
|
|
| 09 Apr 2015 11:35 AM |
oops try this instead
local sphere = [your sphere] local weld = Instance.new("ManualWeld") weld.Part0 = sphere weld.Part1 = player.Character.Torso weld.C0 = CFrame.new() weld.C1 = player.Character.Torso.CFrame:inverse() * sphere.CFrame weld.Parent = sphere
-Widths |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2015 11:43 AM |
Hmm..That should work but it isn't for me...
Unless I did something wrong...But I used exactly what you wrote
Mewo. |
|
|
| Report Abuse |
|
|