I made the both scripts but they didnt work ? asked it before understand it now its cause cant do 2 things with 1 scrits but how do do that basicaly
local Model = script.Parent
local SafeZoneDetector = Model
SafeZoneDetector.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild ("SafeZone Protection") == nil then
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
local Forcefield = Instance.new("ForceField")
Forcefield.Name = "SafeZone Protection"
Forcefield.Visible = false
Forcefield.Parent = hit.Parent
end
end)
SafeZoneDetector.TouchEnded:Connect(function(hit)
wait (60)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild ("SafeZone Protection") == nil then
hit.Parent:FindFirstChild("SafeZoneProtection"):Destroy()
end
end)
But ? also need a gui to get shown too help

9 comments
I don't see the problem yet, please explain more.
? need a gui to pop up with the same function on this script
Does the gui disappear when you leave the safezone and where is this gui located and what is it called?
Add the gui
There's the problem, he can't.
1.StarterGui.ScreenGui.Frame.Unsafed+Bar and ? need a 2nd entering safe zone will also make StarterGui.ScreenGui.Frame.Safed visible
So Unsafed is visible at the start and Safed isn't?
They both arent when you touch the script.Parent 1st gui gets visible and when you get out 2nd gui gets visible and it shrinks
I made it pretty simple as I did not see the comment while I made the answer.