-- Services local Players = game:GetService("Players") local UserInputService =…
- User
-- Services local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local SoundService = game:GetService("SoundService")
local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid")
-- GUI elements local playerGui = player:WaitForChild("PlayerGui") local fireAttackGui = playerGui:WaitForChild("FireAttackGui") local heatFrame = fireAttackGui:WaitForChild("HeatFrame") local currentHeat = heatFrame:WaitForChild("CurrentHeat")
-- Get the existing Hold button local holdButton = fireAttackGui:WaitForChild("Hold")
-- GUI elements to hide/show based on arena status local guisToHideInArena = { playerGui:WaitForChild("OverheatGui"), playerGui:WaitForChild("PetGui"), playerGui:WaitForChild("SHUDisplayer"), playerGui:WaitForChild("CodeGui") }
-- Store removed tools local removedTools = {}
-- Constants local DAMAGE_INTERVAL = 0.4 local FIRE_PARTICLE_LIFETIME = 1 local FIRE_PARTICLE_SPEED = 50 local FIRE_PARTICLE_RATE = 60 local FIRE_PARTICLE_SIZE = Vector3.new(2, 2, 2) local FIRE_PARTICLE_SPREAD = 15 local FIRE_PARTICLE_ROTATION_SPEED = 720 local MIN_HEAT_REQUIRED = 0.01 local MIN_STAMINA_REQUIRED = 0.01 local INDICATOR_COOLDOWN = 0.5
-- Remote events local fireAbilityEvent = ReplicatedStorage:WaitForChild("FireAbilityEvent") local dealDamageEvent = ReplicatedStorage:WaitForChild("DealDamageEvent") local createFireParticleEvent = ReplicatedStorage:WaitForChild("CreateFireParticleEvent")
-- Variables local isUsingAbility = false local fireParticles = {} local isKeyHeld = false local isMobileButtonHeld = false local lastIndicatorTime = 0 local isPlayerAlive = true
-- Sound effect local fireSound = Instance.new("Sound") fireSound.SoundId = "rbxassetid://9068935533" fireSound.Parent = SoundService
-- Damage indicator template local damageIndicatorTemplate = ReplicatedStorage:WaitForChild("DMGIndicator")
-- Function to check if player is in arena local function isPlayerInArena() local isInArena = player:FindFirstChild("IsInArena") if isInArena then return isInArena.Value else return false -- Assume player is not in arena if value doesn't exist end end
-- Function to update GUI visibility based on arena status local function updateGuiVisibility() local inArena = isPlayerInArena() fireAttackGui.Enabled = inArena for _, gui in ipairs(guisToHideInArena) do gui.Enabled = not inArena end end
-- Function to format damage numbers with suffixes local function formatNumber(number) local suffixes = { "K", "M", "B", "T", "Qa", "Qi", "Sx", "Sp", "Oc", "No", "Dc", "Ud", "Dd", "Td", "Qad", "Qid", "Sxd", "Spd", "Ocd", "Nod", "Vg" } local suffixIndex = 0 while number >= 1000 and suffixIndex < #suffixes do number = number / 1000 suffixIndex = suffixIndex + 1 end if suffixIndex == 0 then return tostring(number) else return string.format("%.3f%s", number, suffixes[suffixIndex]):gsub("%.?0+$", "") end end
- Assistant