✓ Accepted answer
This has nothing to do with the playergui failing xD. Inside the server the playergui doesn't even exist. So you cannot access it...
This is the solution
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local playercharacter = hit.Parent.Name
local player = game.Players:FindFirstChild(playercharacter)
local gui = script.Parent:WaitForChild('FinallyFire'):Clone()
gui.Parent = player:WaitForChild('PlayerGui')
end
end)
So you'll have to put the gui next to the script.
If you have any questions, just ask (please set this as best answer) :)
3 comments
Best answer.
but i have a problem, the script and gui is in a group and that group is inside ANOTHER group, does that change anything?
I don't really understand what you mean with group? a Folder? If it is, it doesn't matter as long as you update the gui variable too (line 5)