local re = script.Parent:WaitForChild("RemoteEvent")
local Animation = script:WaitForChild("Animation")
local an
local Attacked = false
local cooldown = 8
local Range = 100
local pause = function() an:AdjustSpeed(0)end
function windBlast(player,actionName, userInputState, inputObject)
local char = player.Character
local hum = char.Humanoid
if userInputState == Enum.UserInputState.Begin and Attacked == false then
Attacked = true
an = hum:LoadAnimation(Animation)
an:AdjustSpeed(0.2)
an:GetMarkerReachedSignal("In").Connect(pause)
an:Play()
elseif userInputState == Enum.UserInputState.End and Attacked == true then
an:AdjustSpeed(1)
wait(cooldown)
Attacked = false
end
end
re.OnServerEvent:connect(windBlast)
So basically i am getting an weird error its this part here an:GetMarkerReachedSignal("In").Connect(pause) the Parameter is a "Strings" and returns RBXScriptSignal
at first i thought it was the server script so i tried a localscript but still got the same error.
I am unsure whats happening here any sugestions?
