FireServer not doing anything?

it’s a bit hard to explain in words, so i’ll send the script:

--CLIENT/LOCAL SCRIPT--
uis.InputBegan:Connect(function(k,istyping)
	if istyping then
		return
	elseif uis:IsKeyDown(Enum.KeyCode.W) and k.KeyCode == Enum.KeyCode.Q then
		if debr == false then
			if c:FindFirstChild("Stunned") then return end
			cm:FireServer(p,"TP")
		end
	end
end)
--SERVER SCRIPT--
CM.OnServerEvent:Connect(function(p,Move)
	if Move == "TP" then
		print('teleport')
		local c = p.Character
		local hum = c:WaitForChild("Humanoid")
		local hrp = c:FindFirstChild("HumanoidRootPart")
		
		local sound = sounds.GlitchTeleport:Clone()
		sound.Parent = c.Head
		sound:Destroy()
		
		CM:FireClient(p,"TP")
	end
end)

its not printing or doing anything, not even any errors, i dont see any problem, unless im blind, can anyone help me out?

1 Like

are you ussing remote events or bindable events if remote than it should work if bindable than not

1 Like

What is “p” that your sending? If it’s the player, remove it. You don’t have to send the server the player, the RemoteEvent will do that for you. Keep the “p” on the server side, but remove it on the client side. If that was the issue, it should subside after.

2 Likes

replcae

cm:FireServer(p,"TP")

with

cm:FireServer("TP")

The player argument is automatically sent, so you don’t have to!

2 Likes