|
| 19 Aug 2013 04:42 PM |
Player = script.Parent.Parent mouse = Player:GetMouse() key = script.Key.Value
function pressed(hit) hit = hit:lower() if hit == key then Player.Character.Torso.Anchored = true for i = 1, 30, 5 do part = Instance.new("Part", workspace) part.Anchored = true part.Size = Vector3.new(5,5,5) Part.Position = Player.Character.Torso.Position + Positition.new(0,0,i) end Player.Character.Torso.Anchored = false end end
mouse.KeyDown:connect(pressed)
so this works fine but how do I get it so the spawned bricks are infront of the character and at the exact same angle
and also can someone change .position for me to .CFrame because when I wrote .CFrame instead of position it errored in the output saying "excpected Vector3" so I replaced the cframes with .positions |
|
|
| Report Abuse |
|
|
| 19 Aug 2013 04:47 PM |
| did someone f5 bomb this or did I seriously get 101 views and no replys? |
|
|
| Report Abuse |
|
| |