So i've been working on building mechanics in my game for about 2 days now. Everything is working fine i even learned how to use RemoteEvents. But i had 1 problem, in the place block script

game.ReplicatedStorage.Place.OnServerEvent:Connect(function(player)

prt = game.Workspace.Cloner:Clone()

prt.Parent = game.Workspace

prt.CFrame = player.Character.HumanoidRootPart.CFrame + player.Character.HumanoidRootPart.CFrame.lookVector * 5 + Vector3.new(0, player.Height.Value, 0)

prt.Anchored = true

end)

i made it so that it teleports a cloned brick to the lookVector of the HumanoidRootPart, it also has a menu to change the Y position of the part to build upwards without moving up. I wanted to make it so i can move the brick sideways from the players position and angle. Thanks in advance. :) (sorry for messy code :P)

2 comments

1

in case you did not know this you can use CFrame.RightVector , CFrame.UpVector

0

holy epic thanks!