How To Make A SAFE ZONE in ROBLOX STUDIO

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 19

  • @jimoyig
    @jimoyig 28 วันที่ผ่านมา

    yo ty i needed this

  • @bandito-159
    @bandito-159 28 วันที่ผ่านมา

    Nice video!

  • @DavaRavaGamer
    @DavaRavaGamer 28 วันที่ผ่านมา

    Thanks for the vid !

  • @Roxonform
    @Roxonform 28 วันที่ผ่านมา +1

    W Channel !

  • @FloppyFD_2
    @FloppyFD_2 20 วันที่ผ่านมา

    how long did it take for u to understand scripting? because im currently learning lua rn and its so confusing

    • @Swervy2K
      @Swervy2K 20 วันที่ผ่านมา

      depends on how long you put in a day.
      I put in like 8 hours a day, so it took me 2 weeks to be able to make my own modules and write code on my own.
      2 months to be able to make anything I wanted

    • @FloppyFD_2
      @FloppyFD_2 20 วันที่ผ่านมา

      @@Swervy2K oh nah, it's gonna take me 1 year

  • @Lern_evything_games_and_more
    @Lern_evything_games_and_more 21 วันที่ผ่านมา

    when i play the game the zone disappears.Can you help me to see whats the problem ?

    • @swampy.horror
      @swampy.horror 15 วันที่ผ่านมา

      anchor the part

  • @GrikGroockFirez
    @GrikGroockFirez 28 วันที่ผ่านมา

    can u make a gamepass shop in game 1 that if u buy it , it will appear in game 2 or you have that feature in game 2 (like x2 health)

    • @LennertDevelops
      @LennertDevelops  28 วันที่ผ่านมา

      @@GrikGroockFirez :UserOwnsGamepassAsync() should work with gamepasses from other games :)

  • @Halanbaby25
    @Halanbaby25 26 วันที่ผ่านมา

    thank you

  • @swampy.horror
    @swampy.horror 15 วันที่ผ่านมา +1

    local Zone = game.Workspace:WaitForChild("Zone")
    local charactersInZone = {}
    while true do

    local parts = game.Workspace:GetPartsInPart(Zone)
    local charactersChecked = {}

    for i, part in pairs(part) do
    local humanoid = part.parent:FindFirstChild("Humanoid")

    if humanoid then
    charactersChecked[part.parent] = true
    end
    end
    end
    for character, v in pairs(charactersChecked) do
    if not charactersInZone[character] then
    local forceField = Instance.new("ForceField")
    forceField.Parent = character
    forceField.Visible = false

    local highlight = Instance.new("Highlight")
    highlight.Parent = character
    highlight.OutlineColor = Color3.new(1, 1, 1)
    highlight.FillTransparency = 1

    charactersInZone[character] = true
    end
    end
    for character, v in pairs(charactersInZone) do
    if not characterChecked [character] then
    local forceField = character: FindFirstChildOfClass("ForceField")
    forceField: Destroy()

    local highlight = character:FindFirstChildOfClass("Highlight")
    highlight: Destroy()

    charactersInZone[character] = nil
    end
    end
    task.wait(0.1)
    end

  • @chrisandhisfriends9875
    @chrisandhisfriends9875 28 วันที่ผ่านมา

    How to make it so that npcs don't attack you while in zone?

    • @LennertDevelops
      @LennertDevelops  28 วันที่ผ่านมา

      @@chrisandhisfriends9875 This would require modifying the code of the NPC’s themselves to check if the player has a force field. You can check this by using if character:FindFirstChildOfClass(“ForceField”) then

  • @jimoyig
    @jimoyig 28 วันที่ผ่านมา

    do weapons kill you in the safe zone?

    • @LennertDevelops
      @LennertDevelops  28 วันที่ผ่านมา

      No they don’t damage you as most weapons use the :TakeDamage() function