Hey all!
So I've been making a server script where a bunch of conditions are checked, and if true, it fires a remote event on the client. There are no errors in the output. It says all the conditions are checked. But in the LocalScript where there's the OnClientEvent that's supposed to receive it, nothing happens when it is fired. Here's a snippet from the server script that fires it:
if part:FindFirstChild("BodyPosition") == nil then bp = Instance.new("BodyPosition", part) bp.position = hole.Position bp.maxForce = Vector3.new(9001, 9001, 9001) print(part.Name) if part.Name == "HumanoidRootPart" then print("HumanoidRootPart Located.") print(part.Parent.Name) if game.Players:FindFirstChild(part.Parent.Name) then -- Player exists print("Actual Player Located.") player = game.Players:FindFirstChild(part.Parent.Name) print(player.Name) game.ReplicatedStorage.AntiAirBubble:FireClient(player, part) print("Firing process complete") end end end -- End if
Aaand here's the LocalScript that is supposed to receive it. It doesn't print like it is supposed to do or anything else.
game.ReplicatedStorage.AntiAirBubble.OnClientEvent:Connect(function(part) print("fired") end)
It's simple and I've looked all over the internet for answers. Please help!
Thanks!