#gun is on the floor but hand and gun animation is playing

70 messages · Page 1 of 1 (latest)

mossy talon
#

welp

#

so basically

mossy talon
# mossy talon

may not be visible but the bolt of the gun is moving as well as part of the animation

sleek root
#

those remotes probably not necessary, put them in a server script in the tool and connect to the tool's equipped/unequipped events

mossy talon
sleek root
#

is this the first thing you've worked on in studio?

mossy talon
sleek root
mossy talon
#

untill i decided to script guns

mossy talon
#

i have 2 scripts

#

in the game

#

local script which is in the tool

#

and a normal script in the serverscriptservice

#

the first one is the normal script

#

and the 2nd one is the local script

sleek root
#

in a nutshell this is probably going to be way out of your league

sleek root
#

i would expect your script to pretty much work as-is because of the motor6d, so i must assume your gun model isn't configured properly

mossy talon
#

but by configured you mean like not rigged?

sleek root
#

like not welded

mossy talon
#

i welded it correctly

#

i tried this same thing a 2nd time

#

same result

#

for animatable parts i did new motor6d

#

and for non animatable parts i just did new weld

#

all attached to a "bodyattach"

sleek root
#

i suggest looking through it in explorer in play mode and see how things are looking

mossy talon
#

sure

#

i will update u tomorrow cuz i cant rn

sleek root
#

most important thing you need to understand about code is basically all it does is copy what you can do manually in the explorer while the game is running, just automated and very fast

mossy talon
#

k

sleek root
#

so if you're ever stuck like this, figure out what it takes to make it work in a single session, then put what you did into the code

mossy talon
#

aight

#

lets say the welding turns different in the explorer while playing

#

how should i fix it

sleek root
#

well you'd want to figure out where and how the welds aren't right

#

i suggest you be asking questions when you have studio open

mossy talon
#

gtg

glass edgeBOT
#

studio** You are now Level 8! **studio

sleek root
#

kinda pointless doing this now when you're theorizing only

mossy talon
#

aight

mossy talon
#

@sleek root

#

update

#

im in roblox studio

#

and i re did everything

#

and the hand animation plays

#

but the gun just falls off from the place it was animated before

#

i checked welding and nothing wrong

#

why cant this ever work 😭

#

HELp

mossy talon
#

@sleek root

#

I FIND THE PROBLEM

#

basically

#

whenever we play the game i have to manually make a motor 6d on the torso of the player

#

so how do i make it so that everyone who spawns always has a motor 6d with those parts

#

like part0 and part1

#

so what is the code?

#

to make one spawn with it

sleek root
#

make sure to check your output window for errors

#

coz it means this code isn't working ```lua
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)

    local M6D = Instance.new("Motor6D")
    M6D.Name = "ToolGrip"
    M6D.Parent = char.Torso
end)

end)```

mossy talon
#

it works now

#

ty

#

but the idle animation isnt working but the shooting animation works

#

i set the idle animation to action 3 and published it to roblox