Here is my issue. This script is in a Local Script. I know you're supposed to put it in a script, but if I do that then the script doesn't even register. So I need help. Also I CANNOT use FireServer(), because im changing guis in the other script. If you know how to fix this, please help. Thanks!
Player = game.Players.LocalPlayer
script.Parent.Text=tostring(script.Parent.ItemName.Value)..": Gamepass"
script.Parent.MouseButton1Click:connect(function()
game.ReplicatedStorage.Events.Trails.CustomTrailEvent:FireClient(Player, script.Parent.Parent.Parent.Parent.Parent.Parent.Name)
end)
PS: Trying to make my game FE compatible.
OnEvent Code For icapaz:
game.ReplicatedStorage:WaitForChild("Events").Trails.CustomTrailEvent.OnClientEvent:Connect(function(guiname)
local Player = game.Players.LocalPlayer
local playerid = Player.UserId
local id = 4785126
print(guiname)

2 comments
So you're trying to have one GUI change another GUI on the same client?
#Confusing