Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- Script2 = Instance.new("Script")
- Script3 = Instance.new("Script")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Sound6 = Instance.new("Sound")
- LocalScript7 = Instance.new("LocalScript")
- Tool8 = Instance.new("Tool")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- LocalScript11 = Instance.new("LocalScript")
- Sound12 = Instance.new("Sound")
- Sound13 = Instance.new("Sound")
- Script14 = Instance.new("Script")
- LocalScript15 = Instance.new("LocalScript")
- Tool16 = Instance.new("Tool")
- Script17 = Instance.new("Script")
- Script18 = Instance.new("Script")
- Part19 = Instance.new("Part")
- SpecialMesh20 = Instance.new("SpecialMesh")
- Sound21 = Instance.new("Sound")
- LocalScript22 = Instance.new("LocalScript")
- Tool0.Name = "ClassicPaintballGun"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxasset://Textures/PaintballIcon.png"
- Tool0.GripForward = Vector3.new(0, -1, 0)
- Tool0.GripPos = Vector3.new(0, 0.400000006, 0.5)
- Tool0.GripUp = Vector3.new(0, 0, -1)
- Script1.Name = "Paintball"
- Script1.Parent = Tool0
- Script1.Disabled = true
- table.insert(cors,sandbox(Script1,function()
- ball = script.Parent
- damage =34
- SummonMaterialTypes = {"Neon","Granite","Glass","Plastic"}
- SummonMaterialChooser = SummonMaterialTypes[math.random(1,#SummonMaterialTypes)]
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if hit:getMass() < 1.2 * 200 then
- hit.BrickColor = ball.BrickColor
- end
- -- make a splat
- for i=1,3 do
- local s = Instance.new("Part")
- s.Shape = 1 -- block
- s.formFactor = 2 -- plate
- s.Size = Vector3.new(1,.4,1)
- s.BrickColor = ball.BrickColor
- local v = Vector3.new(math.random(-1,1), math.random(0,1), math.random(-1,1))
- s.Velocity = 15 * v
- s.CFrame = CFrame.new(ball.Position + v, v)
- s.Parent = game.Workspace
- while true do
- wait(0.5)
- s.Material = SummonMaterialChooser
- end
- end
- if humanoid ~= nil then
- tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- wait(2)
- untagHumanoid(humanoid)
- end
- connection:disconnect()
- ball.Parent = nil
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- wait(8)
- ball.Parent = nil
- end))
- Script2.Name = "PaintballShooter"
- Script2.Parent = Tool0
- table.insert(cors,sandbox(Script2,function()
- Tool = script.Parent
- colors = {45, 119, 21, 24, 23, 105, 104}
- SummonMaterialTypes = {"Neon","Granite","Glass","Plastic"}--You can add more
- SummonMaterialChooser = SummonMaterialTypes[math.random(1,#SummonMaterialTypes)]
- function fire(v)
- Tool.Handle.Fire:play()
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- local spawnPos = vCharacter.PrimaryPart.Position
- spawnPos = spawnPos + (v * 8)
- missile.Position = spawnPos
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v * 100
- missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
- missile.Material = SummonMaterialChooser
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Paintball"
- missile.Elasticity = 0
- missile.Reflectance = 0
- missile.Friction = .9
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,90 * missile:GetMass(),0)
- force.Parent = missile
- Script3:clone().Parent = missile
- local new_script = script.Parent.Paintball:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = humanoid.TargetPoint
- local lookAt = (targetPos - character.Head.Position).unit
- fire(lookAt)
- wait(.5)
- Tool.Enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end))
- Script3.Name = "BrickCleanup"
- Script3.Parent = Tool0
- Script3.Disabled = true
- table.insert(cors,sandbox(Script3,function()
- -- this script removes its parent from the workspace after 120 seconds
- end))
- Part4.Name = "Handle"
- Part4.Parent = Tool0
- Part4.Rotation = Vector3.new(90, 0, -90)
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(1, 3, 2)
- Part4.CFrame = CFrame.new(31.8999977, 0.500001013, -83.3999939, -0, 1, -0, -0, 0, -1, -1, 0, -0)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Position = Vector3.new(31.8999977, 0.500001013, -83.3999939)
- Part4.Orientation = Vector3.new(90, 90, 0)
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxasset://fonts/PaintballGun.mesh"
- SpecialMesh5.TextureId = "rbxasset://textures/PaintballGunTex128.png"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Sound6.Name = "Fire"
- Sound6.Parent = Part4
- Sound6.SoundId = "rbxasset://sounds//paintball.wav"
- Sound6.Volume = 1
- LocalScript7.Name = "MouseIcon"
- LocalScript7.Parent = Tool0
- table.insert(cors,sandbox(LocalScript7,function()
- local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
- local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
- local Tool = script.Parent
- local Mouse = nil
- local function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
- end
- end
- local function OnEquipped(mouse)
- Mouse = mouse
- UpdateIcon()
- end
- local function OnChanged(property)
- if property == 'Enabled' then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- Tool8.Name = "RocketLauncher"
- Tool8.Parent = mas
- Tool8.TextureId = "http://www.roblox.com/asset/?id=90021376"
- Tool8.GripForward = Vector3.new(1, -0, -0)
- Tool8.GripPos = Vector3.new(0.699999988, 0, -0.5)
- Tool8.GripRight = Vector3.new(0, -1, 0)
- Tool8.GripUp = Vector3.new(0, 0, 1)
- Tool8.CanBeDropped = false
- Part9.Name = "Handle"
- Part9.Parent = Tool8
- Part9.Rotation = Vector3.new(-90, 0, 0)
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.Size = Vector3.new(4.92000628, 0.740000546, 0.839999795)
- Part9.CFrame = CFrame.new(12.1399984, 0.420035988, -89.1699982, 1, 0, 0, 0, 6.30170107e-05, 1.00000024, 0, -1.00000024, 6.30170107e-05)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Position = Vector3.new(12.1399984, 0.420035988, -89.1699982)
- Part9.Orientation = Vector3.new(-90, 0, 0)
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshId = "rbxasset://fonts/rocketlauncher.mesh"
- SpecialMesh10.Scale = Vector3.new(0.75, 0.75, 0.75)
- SpecialMesh10.TextureId = "rbxasset://textures/rocketlaunchertex.png"
- SpecialMesh10.MeshType = Enum.MeshType.FileMesh
- SpecialMesh10.Scale = Vector3.new(0.75, 0.75, 0.75)
- LocalScript11.Name = "Launcher"
- LocalScript11.Parent = Tool8
- table.insert(cors,sandbox(LocalScript11,function()
- -----------------
- --| Constants |--
- -----------------
- SummonMaterialTypes2 = {"Neon","Granite","Glass","Plastic"}--You can add more
- SummonMaterialChooser2 = SummonMaterialTypes2[math.random(1,#SummonMaterialTypes2)]
- SizeChooser = {1,0.1,0.3,0.4,0.5,0.7,5,6,2}
- SizeChooser2 = SizeChooser[math.random(1,#SizeChooser)]
- local GRAVITY_ACCELERATION = 196.2
- local RELOAD_TIME = 3 -- Seconds until tool can be used again
- local ROCKET_SPEED = 60 -- Speed of the projectile
- local MISSILE_MESH_ID = 'http://www.roblox.com/asset/?id=2251534'
- local MISSILE_MESH_SCALE = Vector3.new(0.35, 0.35, 0.25)
- local ROCKET_PART_SIZE = Vector3.new(SizeChooser2,SizeChooser2,SizeChooser2)
- -----------------
- --| Variables |--
- -----------------
- local DebrisService = Game:GetService('Debris')
- local PlayersService = Game:GetService('Players')
- local MyPlayer = PlayersService.LocalPlayer
- local Tool = script.Parent
- local ToolHandle = Tool.Handle
- local RocketScript = script:WaitForChild('Rocket')
- local SwooshSound = script:WaitForChild('Swoosh')
- local BoomSound = script:WaitForChild('Boom')
- --NOTE: We create the rocket once and then clone it when the player fires
- local Rocket = Instance.new('Part') do
- -- Set up the rocket part
- Rocket.Name = 'Rocket'
- Rocket.FormFactor = Enum.FormFactor.Custom --NOTE: This must be done before changing Size
- Rocket.Size = ROCKET_PART_SIZE
- Rocket.CanCollide = false
- Rocket.Material = SummonMaterialChooser2
- -- Add the mesh
- local mesh = Instance.new('SpecialMesh', Rocket)
- mesh.MeshType = "Brick"
- mesh.Scale = MISSILE_MESH_SCALE
- -- Add fire
- local fire = Instance.new('Fire', Rocket)
- fire.Heat = 5
- fire.Size = 2
- -- Add a force to counteract gravity
- local bodyForce = Instance.new('BodyForce', Rocket)
- bodyForce.Name = 'Antigravity'
- bodyForce.force = Vector3.new(0, Rocket:GetMass() * GRAVITY_ACCELERATION, 0)
- -- Clone the sounds and set Boom to PlayOnRemove
- local swooshSoundClone = SwooshSound:Clone()
- swooshSoundClone.Parent = Rocket
- local boomSoundClone = BoomSound:Clone()
- boomSoundClone.PlayOnRemove = true
- boomSoundClone.Parent = Rocket
- -- Attach creator tags to the rocket early on
- local creatorTag = Instance.new('ObjectValue', Rocket)
- creatorTag.Value = MyPlayer
- creatorTag.Name = 'creator' --NOTE: Must be called 'creator' for website stats
- local iconTag = Instance.new('StringValue', creatorTag)
- iconTag.Value = Tool.TextureId
- iconTag.Name = 'icon'
- -- Finally, clone the rocket script and enable it
- local rocketScriptClone = RocketScript:Clone()
- rocketScriptClone.Parent = Rocket
- rocketScriptClone.Disabled = false
- end
- -----------------
- --| Functions |--
- -----------------
- local function OnActivated()
- local myModel = MyPlayer.Character
- if Tool.Enabled and myModel and myModel:FindFirstChild('Humanoid') and myModel.Humanoid.Health > 0 then
- Tool.Enabled = false
- -- Create a clone of Rocket and set its color
- local rocketClone = Rocket:Clone()
- DebrisService:AddItem(rocketClone, 30)
- rocketClone.BrickColor = MyPlayer.TeamColor
- -- Position the rocket clone and launch!
- local spawnPosition = (ToolHandle.CFrame * CFrame.new(2, 0, 0)).p
- rocketClone.CFrame = CFrame.new(spawnPosition, myModel.Humanoid.TargetPoint) --NOTE: This must be done before assigning Parent
- rocketClone.Velocity = rocketClone.CFrame.lookVector * ROCKET_SPEED --NOTE: This should be done before assigning Parent
- rocketClone.Parent = Workspace
- wait(RELOAD_TIME)
- Tool.Enabled = true
- end
- end
- --------------------
- --| Script Logic |--
- --------------------
- Tool.Activated:connect(OnActivated)
- end))
- Sound12.Name = "Swoosh"
- Sound12.Parent = LocalScript11
- Sound12.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound12.Volume = 0.69999998807907
- Sound12.Looped = true
- Sound13.Name = "Boom"
- Sound13.Parent = LocalScript11
- Sound13.SoundId = "rbxasset://sounds/collide.wav"
- Sound13.Volume = 1
- Script14.Name = "Rocket"
- Script14.Parent = LocalScript11
- Script14.Disabled = true
- table.insert(cors,sandbox(Script14,function()
- -----------------
- --| Constants |--
- -----------------
- local BLAST_RADIUS = 8 -- Blast radius of the explosion
- local BLAST_DAMAGE = 60 -- Amount of damage done to players
- local BLAST_FORCE = 1000 -- Amount of force applied to parts
- local IGNORE_LIST = {rocket = 1, handle = 1, effect = 1, water = 1} -- Rocket will fly through things named these
- --NOTE: Keys must be lowercase, values must evaluate to true
- -----------------
- --| Variables |--
- -----------------
- local DebrisService = Game:GetService('Debris')
- local PlayersService = Game:GetService('Players')
- local Rocket = script.Parent
- local CreatorTag = Rocket:WaitForChild('creator')
- local SwooshSound = Rocket:WaitForChild('Swoosh')
- -----------------
- --| Functions |--
- -----------------
- -- Removes any old creator tags and applies a new one to the target
- local function ApplyTags(target)
- while target:FindFirstChild('creator') do
- target.creator:Destroy()
- end
- local creatorTagClone = CreatorTag:Clone()
- DebrisService:AddItem(creatorTagClone, 1.5)
- creatorTagClone.Parent = target
- end
- -- Returns the ancestor that contains a Humanoid, if it exists
- local function FindCharacterAncestor(subject)
- if subject and subject ~= Workspace then
- local humanoid = subject:FindFirstChild('Humanoid')
- if humanoid then
- return subject, humanoid
- else
- return FindCharacterAncestor(subject.Parent)
- end
- end
- return nil
- end
- -- Customized explosive effect that doesn't affect teammates and only breaks joints on dead parts
- local function OnExplosionHit(hitPart, hitDistance, blastCenter)
- if hitPart and hitDistance then
- local character, humanoid = FindCharacterAncestor(hitPart.Parent)
- if character then
- local myPlayer = CreatorTag.Value
- if myPlayer and not myPlayer.Neutral then -- Ignore friendlies caught in the blast
- local player = PlayersService:GetPlayerFromCharacter(character)
- if player and player ~= myPlayer and player.TeamColor == Rocket.BrickColor then
- return
- end
- end
- end
- if humanoid and humanoid.Health > 0 then -- Humanoids are tagged and damaged
- if hitPart.Name == 'Torso' then
- ApplyTags(humanoid)
- humanoid:TakeDamage(BLAST_DAMAGE)
- end
- else -- Loose parts and dead parts are blasted
- if hitPart.Name ~= 'Handle' then
- hitPart:BreakJoints()
- local blastForce = Instance.new('BodyForce', hitPart) --NOTE: We will multiply by mass so bigger parts get blasted more
- blastForce.force = (hitPart.Position - blastCenter).unit * BLAST_FORCE * hitPart:GetMass()
- DebrisService:AddItem(blastForce, 0.1)
- end
- end
- end
- end
- local function OnTouched(otherPart)
- if Rocket and otherPart then
- -- Fly through anything in the ignore list
- if IGNORE_LIST[string.lower(otherPart.Name)] then
- return
- end
- local myPlayer = CreatorTag.Value
- if myPlayer then
- -- Fly through the creator
- if myPlayer.Character and myPlayer.Character:IsAncestorOf(otherPart) then
- return
- end
- -- Fly through friendlies
- if not myPlayer.Neutral then
- local character = FindCharacterAncestor(otherPart.Parent)
- local player = PlayersService:GetPlayerFromCharacter(character)
- if player and player ~= myPlayer and player.TeamColor == Rocket.BrickColor then
- return
- end
- end
- end
- -- Fly through terrain water
- if otherPart == Workspace.Terrain then
- --NOTE: If the rocket is large, then the simplifications made here will cause it to fly through terrain in some cases
- local frontOfRocket = Rocket.Position + (Rocket.CFrame.lookVector * (Rocket.Size.Z / 2))
- local cellLocation = Workspace.Terrain:WorldToCellPreferSolid(frontOfRocket)
- local cellMaterial = Workspace.Terrain:GetCell(cellLocation.X, cellLocation.Y, cellLocation.Z)
- if cellMaterial == Enum.CellMaterial.Water or cellMaterial == Enum.CellMaterial.Empty then
- return
- end
- end
- -- Create the explosion
- local explosion = Instance.new('Explosion')
- explosion.BlastPressure = 0 -- Completely safe explosion
- explosion.BlastRadius = BLAST_RADIUS
- explosion.ExplosionType = Enum.ExplosionType.NoCraters
- explosion.Position = Rocket.Position
- explosion.Parent = Workspace
- -- Connect custom logic for the explosion
- explosion.Hit:connect(function(hitPart, hitDistance) OnExplosionHit(hitPart, hitDistance, explosion.Position) end)
- -- Move this script and the creator tag (so our custom logic can execute), then destroy the rocket
- script.Parent = explosion
- CreatorTag.Parent = script
- Rocket:Destroy()
- end
- end
- --------------------
- --| Script Logic |--
- --------------------
- SwooshSound:Play()
- Rocket.Touched:connect(OnTouched)
- end))
- LocalScript15.Name = "MouseIcon"
- LocalScript15.Parent = Tool8
- table.insert(cors,sandbox(LocalScript15,function()
- local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
- local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
- local Tool = script.Parent
- local Mouse = nil
- local function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
- end
- end
- local function OnEquipped(mouse)
- Mouse = mouse
- UpdateIcon()
- end
- local function OnChanged(property)
- if property == 'Enabled' then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- Tool16.Name = "Trowl"
- Tool16.Parent = mas
- Tool16.GripPos = Vector3.new(0, -1.29999995, 0)
- Script17.Name = "WallMaker"
- Script17.Parent = Tool16
- table.insert(cors,sandbox(Script17,function()
- num = {12,43,21,54,34,100,36,78,99}
- number = num[math.random(1,#num)]
- num2 = {43,67,89,12,89,34}
- numbe2r = num2[math.random(1,#num2)]
- range = {3,5,8,9,6,10,15,11,12}
- rangechooser = range[math.random(1,#range)]
- local wallHeight = numbe2r
- local wallWidth = number
- local Tool = script.Parent
- random = {"Neon","Granite","Plastic","Cobblestone","Marble","Glass"}
- randomizer = random[math.random(1,#random)]
- -- places a brick at pos and returns the position of the brick's opposite corner
- function placeBrick(cf, pos, color,material)
- local brick = Instance.new("Part")
- brick.BrickColor = BrickColor.Random()
- brick.Material = randomizer
- brick.Transparency = 0.7
- brick.CFrame = cf * CFrame.new(pos + brick.Size / 2)
- Script18:Clone().Parent = brick -- attach cleanup script to this brick
- brick.Parent = game.Workspace
- brick:MakeJoints()
- light = Instance.new("PointLight")
- light.Brightness = 0.3
- light.Range = rangechooser
- light.Color = brick.Color
- light.Parent = brick
- light.Shadows = true
- sound = Instance.new("Sound")
- sound.Volume = 10
- sound.Pitch = 1
- sound.SoundId = "rbxassetid://1210272936"
- sound.Looped = false
- sound.Parent = brick
- sound:Play()
- return brick, pos + brick.Size
- end
- function buildWall(cf)
- local color = BrickColor.Random()
- local material = randomizer
- local bricks = {}
- assert(wallWidth>0)
- local y = 0
- while y < wallHeight do
- local p
- local x = -wallWidth/2
- while x < wallWidth/2 do
- local brick
- brick, p = placeBrick(cf, Vector3.new(x, y, 0), color)
- brick.Material = material
- x = p.x
- table.insert(bricks, brick)
- wait()
- end
- y = p.y
- end
- return bricks
- end
- function snap(v)
- if math.abs(v.x)>math.abs(v.z) then
- if v.x>0 then
- return Vector3.new(1,0,0)
- else
- return Vector3.new(-1,0,0)
- end
- else
- if v.z>0 then
- return Vector3.new(0,0,1)
- else
- return Vector3.new(0,0,-1)
- end
- end
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = humanoid.TargetPoint
- local lookAt = snap( (targetPos - character.Head.Position).unit )
- local cf = CFrame.new(targetPos, targetPos + lookAt)
- Tool.Handle.BuildSound:play()
- buildWall(cf)
- wait()
- Tool.Enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end))
- Script18.Name = "BrickCleanup"
- Script18.Parent = Tool16
- Script18.Disabled = true
- table.insert(cors,sandbox(Script18,function()
- -- this script removes its parent from the workspace after 24 seconds
- end))
- Part19.Name = "Handle"
- Part19.Parent = Tool16
- Part19.BrickColor = BrickColor.new("Brick yellow")
- Part19.Rotation = Vector3.new(-90, 0, 0)
- Part19.FormFactor = Enum.FormFactor.Plate
- Part19.Size = Vector3.new(1, 4.4000001, 1)
- Part19.CFrame = CFrame.new(11.04, 0.500001013, -88.2899933, 1, -0, 0, 0, -0, 1, 0, -1, 0)
- Part19.BackSurface = Enum.SurfaceType.Weld
- Part19.FrontSurface = Enum.SurfaceType.Weld
- Part19.Color = Color3.new(0.843137, 0.772549, 0.603922)
- Part19.Position = Vector3.new(11.04, 0.500001013, -88.2899933)
- Part19.Orientation = Vector3.new(-90, 0, 0)
- Part19.Color = Color3.new(0.843137, 0.772549, 0.603922)
- SpecialMesh20.Parent = Part19
- SpecialMesh20.MeshId = "rbxasset://fonts/trowel.mesh"
- SpecialMesh20.TextureId = "rbxasset://textures/TrowelTexture.png"
- SpecialMesh20.MeshType = Enum.MeshType.FileMesh
- Sound21.Name = "BuildSound"
- Sound21.Parent = Part19
- Sound21.SoundId = "rbxasset://sounds//bass.wav"
- Sound21.Volume = 1
- LocalScript22.Name = "MouseIcon"
- LocalScript22.Parent = Tool16
- table.insert(cors,sandbox(LocalScript22,function()
- local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
- local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
- local Tool = script.Parent
- local Mouse = nil
- local function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
- end
- end
- local function OnEquipped(mouse)
- Mouse = mouse
- UpdateIcon()
- end
- local function OnChanged(property)
- if property == 'Enabled' then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement