Writing an FPS framework (2020)

I’m not sure whether you’re asking for a way to make the camera move inside an animation plugin or when running the game now

In-game,

Suppose I make a reloading animation where the camera part moves how would i make the player camera move with that camera part

1 Like

In all honesty I can’t find what I’m looking for, Months, hours, days of researching I still can’t find it. All the FPS framework tutorials did not work at all for me and I don’t know if I should even bother to try this one with the reasons of:

  1. I never used Moon animator.
  2. How would I make a reload animation with Moon animator.
  3. I know the ROBLOX animation editor way more.
  4. I’ve tried other Viewmodel tutorials (they didn’t work and I lost 2 hours which is very valuable now that school’s open.)

Sure, there are tutorials on how to use it but It’ll take me atleast a month to learn it and I’m halfway through a project. I know how to make guns and weapons but my biggest problem which has been here for months is welding the gun.

I’ve also seen Part 2.

This might be alot of what I’m asking for but could you please make a tutorial on how to weld the left and right arm to a gun?, you could dm me it or post it here in Community tutorials. Or could you just tell me how I could weld both the left and right arm to a gun without a viewmodel.

After post and post in Scripting Support I’ve never found what I was looking for.

I’m really struggling here, but its fine if you can’t.

Have you tried actually animating a copied rig with the default plugin? It seems to work for me If I remove the welds it complains about. My experience with animation plugins is sparse at best because the plugin I used to use (Moon animator as hinted by the original thread) was retired, and I switched to blender since

Second thing, have you read how the rig is acquired for animation? Welding the arms to the weapon is done via a few lines of code when you equip it. You’re not supposed to do it yourself.

Wdym copied rig?, I’ve tried animating with the default Animation editor as I followed these tutorials: How to animate a tool/object with a Dummy in the Animation Editor - Resources / Community Tutorials - DevForum | Roblox

How to animate Tool Parts (Guns, Knifes etc.) - Resources / Community Tutorials - DevForum | Roblox

Also, what am I not supposed to do myself?. In these tutorials I did the Motor6d stuff then straight closed the Animation editor and started scripting. I didn’t actually export it if I’m sure.

how can i make an ammo count gui for this

1 Like

Hello,

I recommend you to get a basic knowledge of scripting in LuaU first before making a fps framework…

Though you can just copy paste the code and call it a day it won’t increase your knowledge and it would make it difficult for you to add something on this framework(Ammo count UI in this case).

1 Like

what’s the difference between luau and normal lua?
I’m just having trouble reading through to find where I can get the ammo count so i can display it on the gui

how did you get a custom explorer?
Also, gr8 tutorial

1 Like

i want to ask how i would add on more offsets to the system. i want a position for sprinting and added a cframevalue based on idle.
in update i did this:

local sprintOffset = equipOffset:Lerp(self.viewmodel.offsets.sprint.Value, self.lerpValues.sprint.Value)

in initialization:

self.lerpValues.sprint = Instance.new("NumberValue") self.lerpValues.sprint.Value = 1

and everytime i sprint:

local lowerWeapon = tweenService:Create(self.lerpValues.sprint, TweenInfo.new(0.8, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Value = 0})
lowerWeapon:Play()

but for some reason it’s not lowering the weapon, not sure what im doing wrong, if you can help then it would be appreciated

its after all the default tweens that came with your code. and im just copying what you did for the equip offset

For people who are reading this tutorial,
I have a question

Is the rootPart the same place with the other parts like the Viewmodel arms and guns for you?

Well, as for me this is how it looks like,

image

Edit: I just want to know if i am doing this right

set the anchor on the rootpart to false

1 Like

can anyone tell me how to get the current ammo count

  13:53:09.111  ReplicatedStorage.modules.fps:242: 'Value' is not a member of NumberSequence  -  Client - fps:242
  13:53:09.112  Stack Begin  -  Studio
  13:53:09.112  Script 'ReplicatedStorage.modules.fps', Line 242 - function fire  -  Studio - fps:242
  13:53:09.113  Script 'ReplicatedStorage.modules.fps', Line 272 - function fire  -  Studio - fps:272
  13:53:09.113  Script 'Workspace.DRIFT_NINJA06.InputController', Line 104  -  Studio - InputController:104
  13:53:09.113  Script 'ReplicatedStorage.modules.Velocity.Services.InputService', Line 16 - function on  -  Studio - InputService:16

That is the error I get whenever I click the LMB.
Someone pls help me out here

All good now,
Just a spelling problem.

Hey There! I am in the middle of your tutorial (End of part 7, to be exact) and am having trouble getting to have the gun ‘implanted straight in my face’. When I play, the gun spawns on the ground where I was configuring it, as well as the viewmodel. Why?

I have no way to know without your code. If it is not moving, you can safely assume the CFrame of the rootPart is not getting set, which means either the :update() function isn’t running, or an if statement doesn’t pass

edit: (that, or the equip function fails somewhere)