#Gun system script

24 messages · Page 1 of 1 (latest)

odd nacelle
#

Well, I’ve been trying to script working gun system with animations and working shooting and stuff like that, ofc I am new to scripting so I made 0 progress, except I got animation of reloading, idling, firing, equiping gun, but I just can’t put it together so it works… animations are made using Motor6D, my game is topview perspective, anybody who could please Help? I’ve been trying for 2 days now…

sour ember
#

look up a tutorial if u r new to scripting theres no way you’ll be able to make it yourself

odd nacelle
soft shale
#

are you new to scripting

#

try something simpler first

odd nacelle
#

Well I chose to make a game with guns xd

gleaming pineBOT
#

studio** You are now Level 2! **studio

odd nacelle
#

And I really wanna make it

#

🥲🥲

#

I figured it out somehow, but I would need one thing, how do I script that animation will play when I want to, reload or something?

arctic helm
#

You can use UserInputService for that

#

It would be something like

#
    if gameProcessesEvent then return end
    if input = Enum.KeyCode.E then
        … your code here for reloading etc
    end
end) ```
#

GameProcessesEvent basically is when you type in chat

odd nacelle
#

But I need to put an animation there

#

The ID of the animation

#

Not a code

sour ember
odd nacelle
sour ember
#

then watch a tut

#

its not hard to follow

#

and it will help u understand

odd nacelle
#

Well, I will try, Thanks