Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Where to start on a FPS System?

Asked by 6 years ago

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.

0
A great way to start is making guns saSlol2436 716 — 6y
0
I have some made KinqAustinn 293 — 6y
0
Start making the actual base, using runservice to make the gun's cframe at the player's lookVector Corexty 15 — 6y

2 answers

Log in to vote
1
Answered by 6 years ago

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.

Ad
Log in to vote
0
Answered by 6 years ago

https://blog.roblox.com/2012/06/how-to-build-a-fps-in-15-minutes-with-roblox/

Answer this question