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 = player.PlayerGui.FinallyFire gui.Enabled = true end end)
Whats wrong with it?
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) :)