#Fire events not working

17 messages · Page 1 of 1 (latest)

gilded pulsar
#

my fire event aint working

#
local RS = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local part = game.Workspace.Part
local deletePart = RS:WaitForChild("RemoteEvent")

UIS.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.R then
        deletePart:FireServer()
        print("Part destroyed!")
    end
end)
#
local RS = game:GetService("ReplicatedStorage")
local deletePart = RS:WaitForChild("RemoteEvent")
deletePart.OnServerEvent:Connect(function(player, part)
    print("ran")
    part:Destroy()
end)
urban wasp
#

what does it print

#

you gave us barely any context

mossy radish
#

deletePart:FireServer(part)

lapis coral
#

You may need to enable remote events

#

Have you allowed them within game settings?

urban wasp
lapis coral
urban wasp
#

that's http

#

???

lapis coral
#

@gilded pulsar do you have the console open

gilded pulsar
feral vaporBOT
#

studio** You are now Level 5! **studio