Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't my remote EVENT work? the code is below

Asked by 2 years ago
Edited 2 years ago

I am doing a commission from another Roblox player for a Party system, and I need some assistance. So I have some scripts I need asstnace with here they are. This first one fires a remote event.

script.Parent.MouseButton1Down:Connect(function(plr)
    game.ReplicatedStorage.RemoteEvents.HostParty:FireServer(plr)
end)

This next one receives the event, self-explanatory.

script.Parent.OnServerEvent:Connect(function(plr)
    local host = Instance.new("Part")
    host.Parent = game.ReplicatedStorage.Hosts
    host.Name = plr.Name.."'s Party"
end)

For more context, the part is not put anywhere. I dont even know if the event ws fired. I hope y'all can help me! Peace.

0
Try Host.Parent = game.ReplicatedStorage horvathmf 10 — 2y
0
I did LeoPlaysGames_RBX 26 — 2y
0
I don't understand why you send the player over to the server when it is fired. The player is automatically sent to the server when you use :FireServer(). SpiritualSonicdash 67 — 2y

Answer this question