Local script :
local Player = game:GetService("Players")
local rp = game:GetService("ReplicatedStorage")
local KiritosSword = rp:WaitForChild("KiritosSword")
local tool = script.Parent
local UIS = game:GetService("UserInputService")
local debounce = false
local cooldown = 1
UIS.InputBegan:Connect(function(input,isTyping)
if isTyping then
return
elseif input.KeyCode == Enum.KeyCode.F and debounce == false then
debounce = true
KiritosSword:FireServer()
end
end)
KiritosSword.OnClientEvent:Connect(function()
wait(cooldown)
debounce = false
end)
And Script
local rp = game:GetService("ReplicatedStorage")
local KiritosSword = rp:WaitForChild("KiritosSword")
local Animation = game.Workspace.Animations:WaitForChild("Swing") -- Find the
animation
local tool = script.Parent
local Blade = script.Parent:WaitForChild("Blade")
local Particle1 = Blade:WaitForChild("Lightning1")
local Particle2 = Blade:WaitForChild("Lightning2")
local Particle3 = Blade:WaitForChild("ParticleEmitter")
KiritosSword.OnServerEvent:Connect(function(Player)
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
local Swing = Humanoid:LoadAnimation(Animation)
Swing:Play()
KiritosSword:FireClient(Player)
wait(1)
Particle1.Enabled = true
Particle2.Enabled = true
Particle3.Enabled = true
end)

6 comments
do i put this in the local script
Yeah.
so i put the code in but its not working can you have the look at it https://gyazo.com/154433dafd112bfe01f48f9ca49ad9e8
https://gyazo.com/e15299a6b6e9850e0d92478c10e1b9e4
https://gyazo.com/eae10d470de0fa15fa31f10c4e94ce64
What exactly isn't working?