Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Will this output crash my game eventually? or should i leave it be?

Asked by 5 years ago
Edited 5 years ago

Its coming from a "press shift to run" script. it doesnt break the script but im questioning if eventually it will disturb the game?

13:25:35.448 - Remote event invocation queue exhausted for Workspace.DemonsEmperor.Head.Running.CharacterSoundEvent; did you forget to implement OnServerEvent? (x117)

local mouse = game.Players.LocalPlayer:GetMouse()
local running = false
local RunSpeed = 30

function getTool()  
    for _, kid in ipairs(script.Parent:GetChildren()) do
        if kid.className == "Tool" then return kid end
    end
    return nil
end


mouse.KeyDown:connect(function (key)
    key = string.lower(key)
    if string.byte(key) == 48 then
        running = true
        local keyConnection = mouse.KeyUp:connect(function (key)
            if string.byte(key) == 48 then
                running = false
            end
        end)
        for i = 1,5 do
            game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
            wait()
        end
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + RunSpeed
        repeat wait () until running == false
        keyConnection:disconnect()
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed - RunSpeed
        for i = 1,5 do
            game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
            wait()
        end
    end
end)
0
p.s. if i stand it says the same thing except change Head.Running for Head.FreeFalling DemonsEmperor 26 — 5y
0
i now see its not even coming from my script. it will start at random and once it starts it doesnt stop DemonsEmperor 26 — 5y
1
provide us your script BashGuy10 384 — 5y
0
i disabled the script and still recieved the output DemonsEmperor 26 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

For all who may stumble across this, script doesn't matter. My problem was i had a StarterCharacter, inside that player i had sounds, giving a spawned player duplicates of sounds. simply remove sounds from StarterCharacter, or craft a script deleting the standard sounds.

Ad

Answer this question