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!!
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
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.
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.
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?