Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- town gun modifications script (this will probably lag, most exploiter's pcs are potatoes so brace for impact)
- -- idk who would even use this script welp here it is
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- -- RENAME TOOLS
- local function renameAndUpdateTool(tool)
- -- RENAME HK416 TO HK500 (why not)
- if tool:IsA("Tool") and tool.Name == "HK416" then
- tool.Name = "HK500"
- print("Tool renamed to HK500")
- end
- -- RENAME DESERT EAGLE TO PEW PEW GUN WOWWW
- if tool:IsA("Tool") and tool.Name == "Desert Eagle" then
- tool.Name = "Pew-Pew Gun"
- print("Tool renamed to Pew-Pew Gun")
- end
- end
- -- UPDATE FIREOSUND D
- local function updateSounds(tool)
- if tool:IsA("Tool") then
- local handle = tool:FindFirstChild("Handle")
- if handle and handle:IsA("BasePart") then
- local fireSound = handle:FindFirstChild("FireSound")
- local magInSound = handle:FindFirstChild("MagIn")
- -- UPDATE FIRESOUND HK
- if tool.Name == "HK500" and fireSound and fireSound:IsA("Sound") then
- fireSound.SoundId = "rbxassetid://8234107515"
- print("FireSound updated for HK500")
- end
- -- UPDATE FIRESOUND DEAGLE
- if tool.Name == "Pew-Pew Gun" then
- if fireSound and fireSound:IsA("Sound") then
- fireSound.SoundId = "rbxassetid://2216910282"
- print("FireSound updated for Pew-Pew Gun")
- end
- if magInSound and magInSound:IsA("Sound") then
- magInSound.SoundId = "rbxassetid://8230941788"
- print("MagIn sound updated for Pew-Pew Gun")
- end
- end
- else
- warn("Handle not found or invalid for tool:", tool.Name)
- end
- end
- end
- -- UPDATE VIREWMODELOFFSET AND GUNS WEIGHTS
- local function updateItemProperties(tool)
- if tool:IsA("Tool") and tool.Name == "HK500" then
- -- GUNSCRIPT CHECK!!
- local gunScript = tool:FindFirstChild("GunScript")
- if gunScript and gunScript:IsA("LocalScript") then
- -- VIEWMODELOFFSET HANDLING
- local viewModelOffset = tool:FindFirstChild("ViewModelOffset")
- if viewModelOffset and viewModelOffset:IsA("Vector3Value") then
- -- MAKE SURE VIMWODELOFFSET STAYS AT 0,0,0V VECTOR
- viewModelOffset.Changed:Connect(function()
- if viewModelOffset.Value ~= Vector3.new(0, 0, 0) then
- viewModelOffset.Value = Vector3.new(0, 0, 0)
- print("ViewModelOffset reset for HK500")
- end
- end)
- if viewModelOffset.Value ~= Vector3.new(0, 0, 0) then
- viewModelOffset.Value = Vector3.new(0, 0, 0)
- print("ViewModelOffset initially set for HK500")
- end
- else
- warn("ViewModelOffset system not found or invalid on tool:", tool.Name)
- end
- -- HANDLE WTHE WEIGHT
- local weight = tool:FindFirstChild("Weight")
- if weight and weight:IsA("NumberValue") then
- -- WEIGHT STAY AT 0
- weight.Changed:Connect(function()
- if weight.Value ~= 0 then
- weight.Value = 0
- print("Weight reset for HK500")
- end
- end)
- if weight.Value ~= 0 then
- weight.Value = 0
- print("Weight initially set for HK500")
- end
- else
- warn("Weight system not found or invalid on tool:", tool.Name)
- end
- else
- warn("GunScript not found or invalid on tool:", tool.Name)
- end
- end
- end
- -- UPDAT LASOR COLOR those typos are NOT INTENTIONAL. I'M RUSHING THISS
- local function updateLaserColor(tool)
- if tool:FindFirstChild("AttachmentFolder") then
- local attachmentFolder = tool.AttachmentFolder
- local redLaser = attachmentFolder:FindFirstChild("Red Laser")
- if redLaser and redLaser:FindFirstChild("Laser") then
- local laser = redLaser.Laser
- if laser:IsA("BasePart") then
- laser.BrickColor = BrickColor.new("Institutional white")
- laser.Color = Color3.new(248/255, 248/255, 248/255)
- print("Laser color updated to white for", tool.Name)
- end
- end
- end
- end
- -- UPDATE TOOLSSSS
- local function processTool(tool)
- renameAndUpdateTool(tool)
- updateSounds(tool)
- updateItemProperties(tool)
- updateLaserColor(tool)
- end
- -- MONITOR TOOLS BACKPACK N CHARACTER
- local function monitorTools()
- local backpack = player:FindFirstChild("Backpack")
- local character = player.Character or player.CharacterAdded:Wait()
- -- BAKPACK
- for _, tool in ipairs(backpack:GetChildren()) do
- processTool(tool)
- end
- -- EXISTING TOOLSCX
- for _, tool in ipairs(character:GetChildren()) do
- processTool(tool)
- end
- -- MINITOR BACKPASKC TOOLS FOR
- backpack.ChildAdded:Connect(function(tool)
- task.wait(0.1) -- Wait for tool to fully load
- processTool(tool)
- end)
- -- MONITOR CHARACTER NEW TOL
- character.ChildAdded:Connect(function(tool)
- task.wait(0.1) -- Wait for tool to fully load
- processTool(tool)
- end)
- end
- -- MONITORING REPAWN
- player.CharacterAdded:Connect(function(newCharacter)
- monitorTools()
- end)
- -- bro one j*b had
- monitorTools()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement