I made a radar system

I used my new scripting skills (yes, I have finally learned scripting) and made a radar system.
(I also made a placement system too if you see at 0:40)
code:


local beep=script.Parent.Handle.Beep
local radar=script.Parent.Handle
local tool=script.Parent
local beepallowed=false
local longbeep=script.Parent.Handle.Longbeep
tool.Equipped:Connect(function()
	beepallowed=true
while wait()and beepallowed==true do
for i, v in pairs(workspace.Nextbots:GetChildren()) do
			local timebeep= (v.HumanoidRootPart.Position - radar.Position).Magnitude*0.0025
			
				wait(timebeep)
				beep:Play()

	end
	end
end)

tool.Unequipped:Connect(function()
	beepallowed=false
	beep:Stop()
	--longbeep:Stop()
end)

I might consider downloading obs because the roblox studio screen capture is absolute garbage

8 Likes

Wow, this is very cool and good! Nice job on this!

1 Like

Pretty decent for someone beginning to Script, so good job!

1 Like

That’s really good for a beginner scripter! Well done!

1 Like