Right now I have an animation that works! Except when I join in game with myself (from another acc) and play the animation, the other account doesn't see it. Which means its only playing from the client side and not the server. I tried a remote event but that's just too confusing for me right now. This is a localscript inside of StarterCharacterScripts
--LocalPlayer's Camera
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local character = player.Character
--Crouch Animation
local mouse = player:GetMouse()
local Animate
local Humanoid = player.Character:FindFirstChild('Humanoid')
local CrouchAnimation = game.StarterPlayer.StarterPlayerScripts.Animate
:WaitForChild("crouch"):FindFirstChild("CrouchAnim")
local AlreadyCrouched = false
mouse.KeyDown:Connect(function(Key)
if Key == "c" and AlreadyCrouched == false then
Animate = Humanoid:LoadAnimation(CrouchAnimation)
Humanoid.CameraOffset = Vector3.new(0, -1.2, -1.5)
Animate:Play()
AlreadyCrouched = true
print("Crouched")
elseif Key == "c" and AlreadyCrouched == true then
Humanoid.CameraOffset = Vector3.new(0, 0.2, -1.5)
Animate:Stop()
AlreadyCrouched = false
print("unCrouched")
end
end)

3 comments
How would I do this?I already have the animation in starterplayerscripts.Animate
Remote functions
*remote event