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
don't forget to like and subcribe next part i will release the full version [this video from your request]
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
more of like its own thing y'know? like your game
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..
@@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
My God O_o
where do i place the second script
and what type of script is it
Try finding it yourself you might have to put it on the engineer tower