My animations suddenly stopped working

Suddenly my gun animations in my place stopped working. I say “in my place” because i have a backup one in my profile and it works properly. I reverted version before it broke but stills, i have the same problem so it’s not the code.
I thought it was because i was owner of the animations and the group wasn’t so i gave myself owner of the group and i still have the same problem! i don’t know if i should reanimate everything since i don’t have backup animations to publish again… and if i keep having the same problem? what do i do?

Note: i’m using FE guns kit so the script is open sourced!!

3 Likes

Are you certain it is the a coding problem?

2 Likes

Well… maybe. I edited the code and suddenly stopped working… then i reverted the version and i keep having the same problem

1 Like

Ok. What is the code you believe is leading to the problem? Are you able to post it here?

1 Like

Sure, i have three possible scripts that are causing the bug.

First one is the whole FE gun system which is open sourced, here i didnt edit any script but i tried changing the ids since the others script were a bit more confusing

Second one is Arms/Head movement from this post: How would I make a players arm move depending on the y axis of the mouse? (R6) - #8 by ToxicalGamer2006

And the third one is a script i’ve made that shiftlocks when certain tool is equipped

local players = game:GetService("Players")
local runservice = game:GetService("RunService")
local CAS = game:GetService("ContextActionService")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local humanoid = character.Humanoid
local camera = workspace.CurrentCamera

local CanShiftlock = true

--Visiblity
uis = game:GetService("UserInputService")
--ismobile = uis.TouchEnabled

--if not ismobile then script.Parent:Destroy() end

local states = {
	OFF = "rbxasset://textures/ui/mouseLock_off@2x.png",
	ON = "rbxasset://textures/ui/mouseLock_on@2x.png"
}
local MAX_LENGTH = 900000
local active = false
local ENABLED_OFFSET = CFrame.new(1.7, 0, 0)
local DISABLED_OFFSET = CFrame.new(-1.7, 0, 0)
local function UpdateAutoRotate(BOOL)
	humanoid.AutoRotate = BOOL
end
local function GetUpdatedCameraCFrame(ROOT, CAMERA)
	return CFrame.new(root.Position, Vector3.new(CAMERA.CFrame.LookVector.X * MAX_LENGTH, root.Position.Y, CAMERA.CFrame.LookVector.Z * MAX_LENGTH))
end
local function EnableShiftlock()
	UpdateAutoRotate(false)
	if not humanoid.Sit then
		root.CFrame = GetUpdatedCameraCFrame(root, camera)
		camera.CFrame = camera.CFrame * ENABLED_OFFSET
		uis.MouseBehavior = Enum.MouseBehavior.LockCenter

	end
end
local function DisableShiftlock()
	UpdateAutoRotate(true)
	camera.CFrame = camera.CFrame * DISABLED_OFFSET
	uis.MouseBehavior = Enum.MouseBehavior.Default
	pcall(function()
		active:Disconnect()
		active = nil
	end)
end
active = false

local Tools = {
	'Glock17',
	'Spas12',
	'Model76', 
}

function ShiftLock()
	for _, tool in pairs(player.Backpack:GetChildren()) do
		if tool:IsA('Tool') then
			tool.Equipped:Connect(function()
				if table.find(Tools, tool.Name) then
					CanShiftlock = false;
					if not active then
						active = runservice.RenderStepped:Connect(function()
							EnableShiftlock()
						end)
					end
				end
			end)
			tool.Unequipped:Connect(function()
				if table.find(Tools, tool.Name) then
					CanShiftlock = true;
					DisableShiftlock()
				end
			end)
		end
	end

end

player.Backpack.ChildAdded:Connect(ShiftLock)
ShiftLock()

I’m telling you before you ask: the output isn’t giving me any error.

1 Like

If your game is group owned, the asset must be under the group itself in order to work.
Otherwise if you own the game, you must have the asset under your account.

1 Like

I did, i had an animation and i posted it as the group, but i keep having the same problem…

  1. The output shows you some error
  2. create a control print(Something) for each function
  3. where the problem is you need to find out the progress step.
1 Like

Try disabling the unnecessary scripts, so only the 1 script or 2 scripts that you need to test out the gun animations.

2 Likes

Well i began to think that the scripts aren’t certainly the problem since i disables arms/head movement and shiftlock and i kept having the problem. I also restored the place to an older version before it stopped working and stills! maybe it’s a website problem or something?

Creating a game from Friday afternoon to Sunday evening, sometimes it causes problems and it is better to wait.
Slow Roblox SERVER

1 Like