Can someone help me with a RenderStepped trouble?
So...basically i created a tool that makes your arms visible (even in 1st person) while equipped,but i'm having a trouble with it. The RenderStepped event won't disconnect.
This is my first script (local script)
03 | tool.Equipped:connect( function () |
04 | renderStepped = game:GetService( 'RunService' ).RenderStepped:connect( function () |
05 | tool.Parent [ 'Right Arm' ] .LocalTransparencyModifier = 0 |
06 | tool.Parent [ 'Left Arm' ] .LocalTransparencyModifier = 0 |
10 | tool.Unequipped:connect( function () |
11 | renderStepped:disconnect() |
then i tried to make a server script fire a remote event when it's unequipped
06 | tool.Unequipped:connect( function () |
07 | unequip:FireClient(game.Players:GetPlayerFromCharacter(tool.Parent)) |
13 | unequipEvent = tool.Unequip |
15 | tool.Equipped:connect( function () |
16 | renderStepped = game:GetService( 'RunService' ).RenderStepped:connect( function () |
17 | tool.Parent [ 'Right Arm' ] .LocalTransparencyModifier = 0 |
18 | tool.Parent [ 'Left Arm' ] .LocalTransparencyModifier = 0 |
22 | unequipEvent.OnClientEvent:connect( function () |
23 | renderStepped:disconnect() |
none of this worked.