What is wrong with my client sided part of my skill?

You can write your topic however you want, but you need to answer these questions:

  1. 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

  2. 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)

what is the code trying to do? are there any errors in the output??

Please include the expected behaviour and actual behaviour. We do not know what the problem is and therefore cannot help.

What are the errors?

It’s fine it was no output errors I figuired it out had to mess around with animation:Play()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.