Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a fortnite build system?

Imma just show one build, a wall if they pressed q -- I also want to make the wall place infront of the player and oriented correctly and i dont want the players to be able to put a bunch of walls together i tried using part.Position and part.Orientation but it didnt work

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(key)
	if key == "q" then
		game.ReplicatedStorage.Wall:Clone()
	end
end)

Hope someone can help!

3 comments

0

Try usingYourBrain(). I think that will work.

0

Well if you tried usingYourBrain() i dont think you would need this website mister

1 answer

Insert Script into game.StarterPlayer.StarterPlayerScripts

local mouse = script.Parent:GetMouse()

mouse.KeyDown:connect(function(key)
    if key == "q" then
        local clone = game.ReplicatedStorage.Wall:Clone()
	clone.Parent = workspace
	clone.Position = script.Parent.Character.HumanoidRootPart.Position + script.ParentCharacter.HumanoidRootPart.CFrame.LookVector
	clone.Orientation = game.Players.LocalPlayer.Character.HumanoidRootPart.Orientation
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.