|
| 24 Dec 2015 11:34 AM |
local p = game.Players.LocalPlayer repeat wait() until p.Character local c = p.Character
local x = game.Lighting.Block:Clone() x.Parent = game.Workspace x.CFrame = c.Torso.CFrame + (c.Torso.CFrame.lookVector * Vector3.new(0, 0, 5))
even if I turn the block still spawns in same spot
The Legend of Heroes |
|
|
| Report Abuse |
|
|
| 24 Dec 2015 11:38 AM |
Because you're adding a vector, which uses an axis, it will always move the same way. Try this:
local p = game.Players.LocalPlayer repeat wait() until p.Character local c = p.Character
local x = game.Lighting.Block:Clone() x.Parent = game.Workspace x.CFrame = c.Torso.CFrame + (c.Torso.CFrame.lookVector * 5) |
|
|
| Report Abuse |
|