#RemoteEvent not firing from client

20 messages · Page 1 of 1 (latest)

lunar jay
#

client (since everything else in the listener works, i will only provide this)

        elseif input.KeyCode == Enum.KeyCode.Q and CanDash and DashDirection ~= "" then
            CoreEvent:FireServer("Dash", DashDirection)
            print("DashFired")
            CanDash = false
            task.wait(4)
            CanDash = true
lunar jay
sullen axle
#

Then it should pick it up, mind showing the receiving script?

lunar jay
#
        elseif eventtype == "Dash" then
            local CombatStatusTable = {"Cutscene", "Attacked", "Attacking"}
            
            if table.find(CombatStatusTable, char.CombatStatus.Value) then
                return
            end
            
            local DashDirection = arg1
            local Attachment = Instance.new("Attachment", char.HumanoidRootPart)
            local LinearVelocity = Instance.new("LinearVelocity", Attachment)
            local Part = Instance.new("Part", workspace)
            Part.Anchored = true
            Part.Transparency = 1
            Part.CanCollide = false
            
            local Multiplier
            
            if DashDirection == "W" then
                Multiplier = CFrame.new(-1,-1,-20)
                task.delay(0.5, function()
                    combatmod.FrontDash(plr)
                    print("FrontDash")
                    
                end)
            elseif DashDirection == "A" then
                Multiplier = CFrame.new(-20,-1,-1)
            elseif DashDirection == "S" then
                Multiplier = CFrame.new(-1,-1,20)
            elseif DashDirection == "D" then
                Multiplier = CFrame.new(20,-1,-1)
            end
            
            local AT = char.Humanoid.Animator:LoadAnimation(animFolder[plr.CurrentCharacter.Value][DashDirection].."Dash")
            
            AT:Play()
            ss.dash:Play()
            
            Part.CFrame = char.HumanoidRootPart.CFrame * Multiplier
            
            LinearVelocity.MaxForce = 99999
            LinearVelocity.VectorVelocity = (Part.Position - char.HumanoidRootPart.Position).Unit * Vector3.new(100,0,100)
            LinearVelocity.Attachment0 = Attachment
            
            ds:AddItem(Attachment, 0.1)

sullen axle
#

You left out the line that received the event

lunar jay
#

i tried adding a print("DashServer") to the beginning of this and it doesnt print

lunar jay
lunar jay
sullen axle
#

It’s better if you were to split up your REs, saves on processing

lunar jay
#

kk

neat boltBOT
#

studio** You are now Level 2! **studio

sullen axle
lunar jay
#

wait

#

now that you said that

#
elseif eventtype == "Combat" and char.CombatStatus.Value == "" then
#

shi

#

thank you for reminding

#

yeah now it does stuff