Hello!
This is my first time asking a question on here, so bare with me..;
I currently have an issue with a 'pose tool' that I have for my game. I recently updated my entire game to be FilteringEnabled compatible and everything works fine, except for the pose tool, sort of.
It works on your screen perfectly as intended, but it is not seen by others around you. For example, I could have an arm up on my screen, but on others, it's not visible at all.
Here is the code from one of the tools:
bin = script.Parent Tool = script.Parent; function getjoint() player = bin.Parent char = player if char ~= nil then torso = char:FindFirstChild("Torso") if torso~= nil then joint = torso:FindFirstChild("Left Shoulder") if joint~=nil then return joint end end end return nil end function getarm() player = bin.Parent char = player if torso~= nil then arm = char:FindFirstChild("Left Arm") if arm~=nil then return arm end end return nil end function pointarmto(t, a, p, c0, c1) mid = (t.CFrame*CFrame.new(c0)).p --offset position dir = (mid - p).unit rot = CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) rightangle = CFrame.fromEulerAnglesXYZ(0, 0, math.pi) off = CFrame.new(c1) a.CFrame = CFrame.new(mid, mid+dir)*rot*off*rightangle end function Bob(mouse) while sel do wait(0.01) joint = getjoint() local c0 = nil local c1 = nil if joint~= nil then c0 = joint.C0.p -- center of arm c1 = joint.C1.p arm = getarm() arm.Anchored = true torso = joint.Part0 joint.Part1 = nil -- detach arm pointing = true point = mouse.Hit.p pointarmto(torso, arm, point, c0, c1) end end end function FreddyBobson(mouse) sel = true Bob(mouse) end script.Parent.Equipped:connect(FreddyBobson) sel = true Bob() function Desel(mouse) joint = getjoint() arm = getarm() joint.Part1 = arm arm.Anchored = false sel = false end script.Parent.Deequipped:connect(Desel)
What am I missing? Should RemoteEvents/Functions be involved?
In FE games, actions done on the client is only visible to that client only, however, actions done on the server can be seen by all clients, so try and play the animation on the server instead. Use a RemoteEvent to assist you.