RemoteEvent firing Twice

Hello,

I am trying to make when a GUI Button is clicked, a RemoteEvent Fires, but i have a problem.
For some reason, it is firing twice, and i have no idea why, anyone know why?

My localscript:

local BuyButton = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ToolRequest = ReplicatedStorage:WaitForChild("ToolRequest")

BuyButton.MouseButton1Click:Connect(function()
ToolRequest:FireServer()
end)

My ServerScript:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ToolRequest = ReplicatedStorage:WaitForChild("ToolRequest")

ToolRequest.OnServerEvent:Connect(function()
	
	print("event fired")
	
end)

Output when button is clicked once:
image

Add a print in the mouse click function and see if it fires twice. If it does then maybe it could be your mouse.

image

Interesting, I am not able to replicate this behavior at all!

Can you try receiving the event from some other script?

I found the Solution with this script:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.