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

Where to start on a FPS System?

I don't have code 'cause honestly i don't even know where to start on a FPS System (First Person Shooter System), Honestly all i need to know is how to get a part to face same way as a players camera. I'm not asking you to write out the code, do that if you want but what i'm asking is to just tell me what i need to know to get started on that. Please and thank you.

3 comments

0

A great way to start is making guns

0

I have some made

0

Start making the actual base, using runservice to make the gun's cframe at the player's lookVector

2 answers

✓ Accepted answer

https://m.youtube.com/watch?t=1183s&v=yPOK8Mo2-2M
This is just one example. You're going to need to use renderstepped and setprimarypartcframe and welds. e.g

local model = game.ReplicatedStorage.model --make sure it has a primary part
local cam = workspace.CurrentCamera 

model.Parent = cam

game:GetService("RunService").RenderStepped:Connect (function()
    model:SetPrimaryPartCFrame(cam.CFrame * CFrame.new(-2,-2,-2)
end)

Make sure the model is welded.

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