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
To make the solution easier to see after a long comment conversation I just decided to make an answer:
Add this under line 5:
game:GetService("Players"):GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Unsafed.Visible = false game:GetService("Players"):GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Safed.Visible = true
And add this under line 13
game:GetService("Players"):GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Unsafed.Visible = true game:GetService("Players"):GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Safed.Visible = false