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

Why Wont Remote Event Fire From Click Detector?

player = game.Players.LocalPlayer
game.Workspace.Part.ClickDetector.MouseClick:Connect(function()
	game.ReplicatedStorage.Button1:FireServer()
	player:Kick("E")
end)

the event wont fire from local script

1 answer

✓ Accepted answer

CODE:

workspace.Part.ClickDetector.MouseClick:Connect(function(player)
	-- whatever happens in the server receiving event put in here
	player:Kick("E")
end)

Explanation: all of this can be handled on the server without the use of remote events. ClickDetector.MouseClick's first parameter is the player that clicked it, so you don't need for it to be clicked in local.

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