null nil true 0 -0.200000003 0 0.999200881 0.0399680398 0 -0.0399680361 0.999201 0 0 -0 1 Shotgun rbxasset://../../../shareddata/RiseOfTheKillbots/textures/shotgun_icon.png true true Paintball ball = script.Parent function onTouched(hit) wait(0.001) --[[ 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.Name = "Shrapnel" 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) ball.BrickCleanup:clone().Parent = s s.BrickCleanup.Disabled = false s.Parent = game.Workspace 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 true false Mouselcon 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) true false PaintballShooter Tool = script.Parent function fire(v) Tool.Handle.Fire:play() for i=1,5 do local vCharacter = Tool.Parent local vPlayer = game.Players:playerFromCharacter(vCharacter) local missile = Instance.new("Part") local spawnPos = vCharacter.PrimaryPart.Position spawnPos = spawnPos + (v * 8) local spreadamount = 3 local spread = Vector3.new(math.random(-spreadamount,spreadamount), math.random(-spreadamount,spreadamount), math.random(-spreadamount,spreadamount)) missile.Position = spawnPos missile.Size = Vector3.new(1,1,1) missile.Velocity = v * 350 missile.CFrame = CFrame.new(missile.Position + spread, spread) missile.BrickColor = BrickColor.new(26) missile.Shape = 0 missile.BottomSurface = 0 missile.TopSurface = 0 missile.Name = "Pellet" missile.Elasticity = 0 missile.Reflectance = 0 missile.Friction = 1 missile.CanCollide = false local force = Instance.new("BodyForce") force.force = Vector3.new(0,220,0) force.Parent = missile local damage = Instance.new("NumberValue") damage.Name = "Damage" damage.Value = 20 + math.random(0,4) damage.Parent = missile Tool.BrickCleanup:clone().Parent = missile missile.BrickCleanup.Disabled = false --[[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 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(1) Tool.Enabled = true end script.Parent.Activated:connect(onActivated) true true BrickCleanup -- this script removes its parent from the workspace after 120 seconds wait(15) script.Parent.Parent = nil true false -0.5 0.5 0 0 -0.5 0.5 0 0 194 -15.9256659 9.59772396 1.19227958 0.594869494 -0.023100093 -0.803491294 0.0400263518 0.999198258 0.000907145499 0.802825987 -0.0327004492 0.595317185 false false 0.5 0 0.300000012 -0.5 0.5 0 0 -0.5 0.5 0 0 false 256 Handle 0 -0.5 0.5 0 0 0 0 0 -0.5 0.5 0 0 0 0 0 0 true 1 1 1 2 2 2 rbxasset://../../../shareddata/RiseOfTheKillbots/fonts/Shotgun.mesh 5 Mesh 0 0 0 5 2 5 rbxasset://../../../shareddata/RiseOfTheKillbots/textures/Shotgun.png 97 97 97 true false Fire 1 11 false rbxasset://../../../shareddata/RiseOfTheKillbots/sounds/shotgun_fire.wav 0.5 true