gnomecode td : engineer Addon (getposition from distance)

Поділитися
Вставка
  • Опубліковано 7 жов 2024
  • the script :
    local path = {}
    function path:RandomPosition(rig)
    local Config = rig:WaitForChild("Configuration")
    local SentryFolder = Config:WaitForChild("Sentry")
    local minDistance = SentryFolder:WaitForChild("Min").Value
    local maxDistance = SentryFolder:WaitForChild("Max").Value
    local angle = math.random() * 2 * math.pi
    local distance = math.random() * (maxDistance - minDistance) + minDistance
    local position = rig.PrimaryPart.Position + Vector3.new(math.cos(angle), 0, math.sin(angle)) * distance
    -- // like and subcribe for the the cool placement on sentry
    return position
    end
    return path

КОМЕНТАРІ • 9

  • @SYTRBLX
    @SYTRBLX  Рік тому +2

    don't forget to like and subcribe next part i will release the full version [this video from your request]

    • @bettytheokaydeveloper
      @bettytheokaydeveloper 10 місяців тому

      yo bro its me remember? I asked for that like MONTHS ago I was wondering if you could help me out. I am tryna make my game not look like a gnomecode

    • @bettytheokaydeveloper
      @bettytheokaydeveloper 10 місяців тому

      more of like its own thing y'know? like your game

    • @SYTRBLX
      @SYTRBLX  10 місяців тому

      I have delay it because school and the bug could happend on their game i keep finding an easy way and working itself for em..

    • @KmartinkIDFK
      @KmartinkIDFK 4 місяці тому

      @@SYTRBLX Where do i put
      local path = require(script.Parent.Path)
      local SpawnPosition = path:RandomPosition(workspace.Engineer)
      local newpart = Instance.new("Part")
      newpart.Parent = workspace
      newpart.Position = SpawnPosition
      newpart.Anchored = true

  • @uatdowner
    @uatdowner Рік тому +1

    My God O_o

  • @ARandomTrafficCone
    @ARandomTrafficCone 6 місяців тому

    where do i place the second script
    and what type of script is it

    • @JustCarl-u9h
      @JustCarl-u9h 5 місяців тому

      Try finding it yourself you might have to put it on the engineer tower