3D Workspace
Home
Assets
Affiliate Program
Creator Program
Sign up/Log in
?
Upgrade
DCC Bridge
Anonymous1782634089
06-28 09:04
Model Name
tower weapon 3d model
Tags
firing
game asset
game asset realistic
machine
machine game asset
machine game asset realistic
machine realistic
muzzle
realistic
Prompt
local Tower = script.Parent local Range = 20 local Damage = 8 local BurnDamage = 2 local BurnTime = 5 local Cooldown = 1.2 local function FindTarget() local Target local Distance = Range for _, Enemy in ipairs(workspace.Enemies:GetChildren()) do local Humanoid = Enemy:FindFirstChild("Humanoid") local Root = Enemy:FindFirstChild("HumanoidRootPart") if Humanoid and Root and Humanoid.Health > 0 then local d = (Tower.PrimaryPart.Position - Root.Position).Magnitude if d < Distance then Distance = d Target = Enemy end end end return Target end while true do task.wait(Cooldown) local Target = FindTarget() if Target then local Humanoid = Target:FindFirstChild("Humanoid") local Root = Target:FindFirstChild("HumanoidRootPart") if Humanoid and Root then Humanoid:TakeDamage(Damage) local Fire = Instance.new("Fire") Fire.Color = Color3.fromRGB(255, 70, 180) Fire.SecondaryColor = Color3.fromRGB(255, 180, 220) Fire.Size = 6 Fire.Heat
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!