how can i make the animation play when you are holding the tool only?
Asked by
4 years ago Edited 4 years ago
heres the local script
so i want it to fire the server only if player is holding the tool
help
its a local script btw
tell me if you want the script
////////////////////////////
01 | local Player = game:GetService( "Players" ) |
02 | local rp = game:GetService( "ReplicatedStorage" ) |
04 | local MaxKobosRemotes = rp:WaitForChild( "MaxKobosRemotes" ) |
05 | local KiritoJumpSlash = MaxKobosRemotes:WaitForChild( "KiritoJumpSlash" ) |
06 | local tool = script.Parent |
07 | local UIS = game:GetService( "UserInputService" ) |
12 | UIS.InputBegan:Connect( function (input,isTyping) |
19 | elseif input.KeyCode = = Enum.KeyCode.E and debounce = = false then |
22 | KiritoJumpSlash:FireServer() |
29 | KiritoJumpSlash.OnClientEvent:Connect( function () |