Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- --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"))
- Model0 = Instance.new("Model")
- Tool1 = Instance.new("Tool")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Sound4 = Instance.new("Sound")
- NumberValue5 = Instance.new("NumberValue")
- LocalScript6 = Instance.new("LocalScript")
- Script7 = Instance.new("Script")
- Model0.Parent = mas
- Tool1.Name = "Cappy"
- Tool1.Parent = Model0
- Tool1.TextureId = "rbxassetid://36086685"
- Tool1.GripPos = Vector3.new(1.5, -1.89999998, -1.45000005)
- Tool1.ToolTip = "Toss a hat to it."
- Part2.Name = "Handle"
- Part2.Parent = Tool1
- Part2.BrickColor = BrickColor.new("Really red")
- Part2.Reflectance = 0.20000000298023
- Part2.Rotation = Vector3.new(0, -90, 0)
- Part2.Locked = true
- Part2.FormFactor = Enum.FormFactor.Custom
- Part2.Size = Vector3.new(1.79999995, 0.800000012, 1.79999995)
- Part2.CFrame = CFrame.new(-7.5, 4.80000019, -4.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(1, 0, 0)
- Part2.Position = Vector3.new(-7.5, 4.80000019, -4.5)
- Part2.Orientation = Vector3.new(0, -90, 0)
- Part2.Color = Color3.new(1, 0, 0)
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxassetid://430169690"
- SpecialMesh3.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
- SpecialMesh3.TextureId = "rbxassetid://253853307"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpecialMesh3.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
- Sound4.Name = "FlyingSound"
- Sound4.Parent = Part2
- Sound4.SoundId = "http://www.roblox.com/asset/?id=18478970"
- Sound4.Volume = 1
- NumberValue5.Name = "LastUse"
- NumberValue5.Parent = Tool1
- LocalScript6.Parent = Tool1
- table.insert(cors,sandbox(LocalScript6,function()
- --Made by Stickmasterluke
- sp=script.Parent
- cooldown=4
- power=74
- rate=1/30
- local debris=game:GetService("Debris")
- equipped=false
- check=true
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- wait()
- end
- return a:FindFirstChild(b)
- end
- lastuse=waitfor(sp,"LastUse")
- function onEquipped(mouse)
- equipped=true
- if mouse~=nil then
- sp.Handle.Transparency=1
- if tick()-cooldown<lastuse.Value then
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- wait(lastuse.Value-(tick()-cooldown))
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- else
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- end
- sp.Handle.Transparency=0
- mouse.Button1Down:connect(function()
- local h=sp.Parent:FindFirstChild("Humanoid")
- local t=sp.Parent:FindFirstChild("Torso")
- if check and h and h.Health>0 and t then
- check=false
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- local h=sp.Parent:FindFirstChild("Humanoid")
- local t=sp.Parent:FindFirstChild("Torso")
- if equipped and h and h.Health>0 and t then
- local sound=sp.Handle:FindFirstChild("ThrowSound")
- if sound~=nil then
- sound:Play()
- end
- local shoulder=t:FindFirstChild("Right Shoulder")
- if shoulder~=nil then
- shoulder.CurrentAngle=math.pi
- end
- local p=sp.Handle:clone()
- p.Name="Saw Hat"
- p.CanCollide=true
- p.Transparency=0
- p.Friction=0
- local vec=(mouse.Hit.p-sp.Handle.Position).unit
- p.CFrame=CFrame.new(sp.Handle.Position,mouse.Hit.p)*CFrame.new(0,0,-6)
- p.Velocity=vec*power
- p.RotVelocity=Vector3.new(0,30,0)
- local c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game.Players.LocalPlayer
- c.Parent=p
- local bf=Instance.new("BodyForce")
- bf.force=Vector3.new(0,p:GetMass()*196.2,0)
- bf.Parent=p
- local s=script.Script:clone()
- s.Parent=p
- s.Disabled=false
- debris:AddItem(p,10)
- p.Parent=game.Workspace
- sp.Handle.Transparency=1
- lastuse.Value=tick()
- wait(cooldown)
- sp.Handle.Transparency=0
- end
- if mouse~=nil then
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- end
- check=true
- end
- end)
- end
- end
- function onUnequipped()
- equipped=false
- end
- sp.Equipped:connect(onEquipped)
- sp.Unequipped:connect(onUnequipped)
- end))
- Script7.Parent = LocalScript6
- Script7.Disabled = true
- table.insert(cors,sandbox(Script7,function()
- --Stickmasterluke
- sp=script.Parent
- damage=40
- local creator=sp:FindFirstChild("creator")
- local debris=game:GetService("Debris")
- sp.Touched:connect(function(hit)
- if hit~=nil and hit.Parent~=nil then
- local h=hit.Parent:FindFirstChild("Humanoid")
- local ct=sp:FindFirstChild("creator")
- if h~=nil and ct~=nil then
- if ct.Value==game.Players:GetPlayerFromCharacter(hit.Parent) then
- return false
- end
- for _,v in pairs(h:GetChildren()) do
- if v~=nil then
- v:remove()
- end
- end
- ct:clone().Parent=h
- h:TakeDamage(damage)
- damage=damage*.5
- end
- end
- end)
- wait(4)
- sp:remove()
- 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
- game.Players.LocalPlayer.Backpack.Model.Cappy.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement