Whenever i press x it doesnt print worked?? I also have a Remote event called LightStart in ReplicatedStorage.
local repstore = game:WaitForChild("ReplicatedStorage") local Remote = repstore:WaitForChild("LightStart") local player = game.Players.LocalPlayer mouse = player:GetMouse() Cool = true mouse.KeyDown:Connect(function(key) key = key:lower() if key == "x" then if Cool == true then return end Cool = false Remote:FireServer(mouse.Hit) print("Worked") wait(1) Cool = true end end)