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

Could someone help me with "The First Person Element Of A First Person Shooter" blog?

Asked by 6 years ago
Edited 6 years ago

So I am trying to make an FPS game using "The First Person Element Of A First Person Shooter" blog, but I am having trouble on the first step of making the gun appear in front of the camera.

01--LocalScript in StarterPack
02 
03local Players = game:GetService("Players")
04local player = Players.LocalPlayer
05 
06local rsStorage = game:GetService("ReplicatedStorage")
07 
08local camera = game.Workspace.CurrentCamera
09local humanoid = player.CharacterAdded:Wait():WaitForChild("Humanoid")
10 
11local viewModel = rsStorage:WaitForChild("viewModel"):Clone()
12 
13local function onDied()
14    viewModel.Parent = nil
15end
View all 36 lines...

It prints "Done" and keeps printing "hi". There are no errors in the output. Also, sorry that the script is kind of long. Another thing is that I can see the viewModel and the FAMAS in random positions in the workspace.

1 answer

Log in to vote
-5
Answered by 6 years ago
Edited 6 years ago

Put the camera max zoom distance value to as low as it goes, start making the player shoot and win!

I understand your frustration in getting to work a semi-auto hand pistol shooter. Tough hurdles are going to come your way and now you can do something:

Yes I did read it and it seems you're trying to make your guns go in front of your camera in 1st Person perspective and make it greet you or something along the lines of realistic interactive communication with an object such as a Desert Eagle.

I'm your friend believe it, or not and I'm working by your side every step of the journey...

0
Did you even read it... Endergenius100 12 — 6y
0
Screenshot what it looks like when youf are in First-Person mode ASAP... Jan14th2019 -53 — 6y
Ad

Answer this question