i made this script to handle a remote event:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RevengeEvent = ReplicatedStorage:WaitForChild("RevengeEvent")
RevengeEvent.OnServerEvent:Connect(function(player)
-- Add your logic here to handle the revenge event
print(player.Name .. " triggered the revenge event!")
local frametext = game.StarterGui.DialogGui.DialogFrame.text
if frametext then
frametext.Text = "yoo"
end
end)
and it only prints that i triggered the revenge event but it doesnt change the text of the text label, am i doing something wrong? like can server scripts change texts of guis?