You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I am trying to make a skill but the client side part of the script does not seem to work
-
What solutions have you tried so far? Youtube but it was no help.
local db = false
local dbtime = 4
local uis = game:GetService("UserInputService")
local Remote = script.Parent:WaitForChild("RemoteEvent")
script.Parent.Equipped:Connect(function()
uis.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == Enum.KeyCode.F then
if db == false then
db = true
local char = script.Parent.Parent
local humanoid = char:FindFirstChild("Humanoid")
local previousWS = humanoid.WalkSpeed
humanoid.WalkSpeed = 0
local anim = humanoid.Animator:LoadAnimation(script.Animation)
anim :Play()
anim:GetMarkerReachedSignal("Charging"):Connect(function(parameter)
print(parameter)
Remote:FireServer("Charging")
end)
anim:GetMarkerReachedSignal("Blast"):Connect(function(parameter)
print(parameter)
Remote:FireServer("Blast")
wait(2)
humanoid.WalkSpeed = previousWS
end)
wait(dbtime)
db = false
end
end
end)
end)