so.. i tried this and as soon as i was done copying down my script my safezone disappeared. like it was there but when i spawned into game it wasnt. i triple checked and im doing everything right. any idea whats wrong?
Keep doing a amazing job! In all honesty you inspired me to be a developer. You make amazing content roblox and TH-cam! Only a matter of time until you blow up ;)
Scripts: local event = game.ReplicatedStorage.Safezone
script.Parent.Touched:Connect(function(hit) if(part.name ~= "HumanoidRootPart") then return end
local character = part.Parent local forceField = Instance.new("ForceField") forceField.Name = "Safezone" ForceField.Visible = false forceField.Parent = character
local player = game.Players:GetPlayerFromCharacter(character)
if(player) then event:FireClient(player, "In") end end)
script.Parent.TouchEnded:Connect(function(part) if(part.name ~= "HumanoidRootPart") then return end
local character = part.Parent local forcefield = character:FindFirstChild("Safezone")
if(forcefield) then forcefield:Destroy() end end) Local scripts: local event= game.ReplicatedStorage:WaitForChild("Safezone") local UI = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui") local indicator = UI.TextLabel event.OnClientEvent:Connect(function(inOrOut) if(inOrOut == "In") then indicator.Visible = true
function onTouch(hit) if not hit.Parent:findFirstChild("Humanoid") then return end if hit.Parent:findFirstChild("ForceField") then return end local ff = Instance.new("ForceField", hit.Parent) script.Parent.Part.TouchEnded:connect(function() if hit.Parent:findFirstChild("ForceField") then ff:Destroy() end end) end script.Parent.Part.Touched:connect(onTouch)
well no safe zone really works for my game since i use serverside scripts (Star glitchers for example) and they just go through the safe zone so unless theres a way to disable the keybinds for the attacks i dont have a way to stop the glitchers from killing in it
I'm confused, this safe zone is serverside meaning no damage can be taken to the player inside unless the weapons directly set the players health instead of using humanoid:TakeDamage()
@@Pyxrien im not too familiar with scripts and all but star glitchers or other scripts i use in my game usually like erase the player and kill them that way. take for example a glitcher i often use its X move is an Aoe bubble that once the startup finishes it lifts any player near me up and basically erases them or with the Z move its kills them like a thanos snap so they dont respawn normally and i gotta use the refresh command from hd admin to fix that
really thanks! your admin adventures game player retry spamming and your discord not joining im give spamming with me player name: Noob_YT (this player display name)
Thanks for watching!
Use this comment for video ideas/feedback ;)
when i leave the forcefield doesnt Destroy
so.. i tried this and as soon as i was done copying down my script my safezone disappeared. like it was there but when i spawned into game it wasnt. i triple checked and im doing everything right. any idea whats wrong?
@@miniolas8293 yea same happening to me
@@NiNER0NiN Check if you anchor it this also happend to me
Is there a model for this?
Keep doing a amazing job! In all honesty you inspired me to be a developer. You make amazing content roblox and TH-cam! Only a matter of time until you blow up ;)
Thankyou Lyrax! only issue is I've ran out of video ideas😭
@@Pyxrien py please forgive me and spidey we wont abuse from now on :( we r sorry
@@Pyxrien forgive us :(
THANK YOU SO MUCH ! I've been struggling for hours, finally one that works
i didnt think it was going to tell me if i could do the word safe zone when your in it but you did and your goated for that you didnt even need to
Scripts: local event = game.ReplicatedStorage.Safezone
script.Parent.Touched:Connect(function(hit)
if(part.name ~= "HumanoidRootPart") then return end
local character = part.Parent
local forceField = Instance.new("ForceField")
forceField.Name = "Safezone"
ForceField.Visible = false
forceField.Parent = character
local player = game.Players:GetPlayerFromCharacter(character)
if(player) then
event:FireClient(player, "In")
end
end)
script.Parent.TouchEnded:Connect(function(part)
if(part.name ~= "HumanoidRootPart") then return end
local character = part.Parent
local forcefield = character:FindFirstChild("Safezone")
if(forcefield) then
forcefield:Destroy()
end
end)
Local scripts:
local event= game.ReplicatedStorage:WaitForChild("Safezone")
local UI = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui")
local indicator = UI.TextLabel
event.OnClientEvent:Connect(function(inOrOut)
if(inOrOut == "In") then
indicator.Visible = true
else
indicator.Visible = false
end
end)
thank you
tysm man!
u made this script have errors on purpose not the same as video shame on you
@@Azroid-qv3wi yeah this guy is a bitch for putting errors
Very easy to follow, definitely subscribing.
function onTouch(hit)
if not hit.Parent:findFirstChild("Humanoid") then return end
if hit.Parent:findFirstChild("ForceField") then return end
local ff = Instance.new("ForceField", hit.Parent)
script.Parent.Part.TouchEnded:connect(function()
if hit.Parent:findFirstChild("ForceField") then
ff:Destroy()
end
end)
end
script.Parent.Part.Touched:connect(onTouch)
you make great content this helped me out a lot keep up the great work
Really appreciate that, it means a lot!
Thanks! Really helped a lot!
Nice bro and i miss the admin adventure 2 i play that game all day but one day the game died no one playing admin adventure 2 now :c
Constantly working on new projects!
Ok
Love ur channel
tyy u helped me make my first safezone ;D
This video amazing I hope you play my game in a month
everything works fine but as soon as i die (no matter where) the text wont appear anymore as soon as i respawn
everything else works except the text which won't appear when i go inside of the safe zone. help?
And how to rewrite this script so that the player does not receive damage, but the monsters do.
Thanks for making me type all that for nothing :(
Pyxrien can you make a video where you make a overhead gui for a time counter please?
can u make it so that players inside the safezone cant hit player outside the zone
Love it!!
Seth x py
Is there a way to make it that the players inside the safe zone also can't damage people outside the safe zone?
Doesn't work correctly when I'm in the UI disappears
We are sorry py and seth -rocky and spidey
Py………………seth…………………both of you sined talk to me on discord!!!!!
Idea: How to make shift to sprint concept.
doesnt work bruh
Bro exsactly
Can you add the script somewhere in your description so we can copy and paste it?
Yea
Did everything and still didn't work.
I always remember what you did to me.............
what did bro do 💀
didn't work and there is no errors or warnings
Why do you keep forgeting about me...
WONT WORK BRO WHY
you should make a tutorial on how to make other stuff
Epic thx
When ever I enter the safe zone it works but when I leave it stays on my screen please send me GUI script
coding is really careful work check his and work script again
You said your account get hacked lets me know were i can talk to you
well no safe zone really works for my game since i use serverside scripts (Star glitchers for example) and they just go through the safe zone so unless theres a way to disable the keybinds for the attacks i dont have a way to stop the glitchers from killing in it
I'm confused, this safe zone is serverside meaning no damage can be taken to the player inside unless the weapons directly set the players health instead of using humanoid:TakeDamage()
@@Pyxrien im not too familiar with scripts and all but star glitchers or other scripts i use in my game usually like erase the player and kill them that way. take for example a glitcher i often use its X move is an Aoe bubble that once the startup finishes it lifts any player near me up and basically erases them or with the Z move its kills them like a thanos snap so they dont respawn normally and i gotta use the refresh command from hd admin to fix that
im looking for a kind of safe zone that disables specific key uses for example i press Z and nothing happens
CAN YOU JUST COPY PASTE THE LINK HERE
Thanks
The force field destroy doesn’t work for me for some reason ….
Go to the View tab on studio, open output then test it and tell me what it says, I will try help based off the error :)
can u give me the script?
pls add a the safezone script in the description to copy and paste
bro take the time and do it yourself how lazy are you?
POG
So I became a god abuser for revenge...
shut yo goofy
what he do to you??
it doesnt work for some reason!
spent 20 minutes watching this :(
How do i make that it only works in a specified team and if your not in that team it wont work
I will hire u can i ? To help to script for a fps game ?
yes you can its at his description
spent 40 mins copying and it didnt work
Check for errors in output :)
@@Pyxrien ok thank you for helping
@@Pyxrien i made a video for you check it out if you dont mind helping a little bit more, its been uploaded on my channel :)
You dont learn by copying
@@dailyquestions who?
Script Pls
really thanks!
your admin adventures game player retry spamming
and your discord not joining im give spamming with me player name: Noob_YT (this player display name)
Hi I’m trying to reach you on discord put I couldn’t i need your help with my game and i will pay for it❤️
whats the game about? do you have a discord tag i could contact you on? :)
@@Pyxrien i texted you on discord
pls script
EPIC TY