Hello, I’m trying to make an ending system similar to get a snack at 4 am’s. But I’m having trouble with sending data such as the ending name and description through the remote event. Any help?
Server script: (In Proximity Prompt)
script.Parent.Triggered:Connect(function()
local Player = game.Players:FindFirstChildWhichIsA("Player")
local EndingName = "Test Ending"
local EndingDesc = "Test Description"
game.ReplicatedStorage.Events.Ending:FireClient(Player, EndingName, EndingDesc)
end)
Local Script: (In ScreenGui)
EndingEvent.OnClientEvent:Connect(function(EndingName, EndingDesc)
Gui.EndingName = EndingName
Gui.EndingDesc = EndingDesc
end)
It’s giving me an error saying: “EndingName is not a valid member of Frame”
I’m having a lot of trouble so any help works. Thx!