Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

4 comments

0

p.s. if i stand it says the same thing except change Head.Running for Head.FreeFalling

0

i now see its not even coming from my script. it will start at random and once it starts it doesnt stop

1

provide us your script

0

i disabled the script and still recieved the output

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.