I am scripting something, but it is becoming an issue since the function is running itself twice, it is basically cancelling itself out (irrelevant). Here is the code:
local player = game:GetService("Players").LocalPlayer
local car = script.Parent.Value.Value
local Revent = car.RBlinker
local Levent = car.LBlinker
local Head = car.HeadLights
player:GetMouse().KeyDown:connect(function(key)
key = string.upper(key)
if key == "E" then
Revent:FireServer()
print("fired")
end
end)
When the key "E" is pressed once on my keyboard, the output shows that the function has been fired twice, as "fired" appears twice. I also put a print on the server script waiting for the remote event to be fire, it is printing it twice as it is being fried twice. Anyone know why this is happening, and how to fix it?

2 comments
@Radstar1 That does not seem to work, as the function is still being ran twice.
i just edited the script I sent you,try that instead.