Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------
- --YOU SEE IVAN, IF HOLD PEESTOL LIKE THIS--
- -------------------------------------------
- --By CKbackup--
- ---------------
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- chara = player.Character
- equipped = false
- del = false
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.03333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num*30 do
- ArtificialHB.Event:wait()
- end
- end
- end
- idleweldc0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388)
- equipweldc0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Pistol = New("Model",chara,"Pistol",{})
- PistolPart = New("Part",Pistol,"PistolPart",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.600000024, 1.39999998, 1),CFrame = CFrame.new(-11.6999979, 0.700000286, 0.299999952, 1, 0, 0, 0, -0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",PistolPart,"Mesh",{Scale = Vector3.new(2, 2, 2),VertexColor = Vector3.new(0.100000001, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=72012879",TextureId = "http://www.roblox.com/asset/?id=72012859",MeshType = Enum.MeshType.FileMesh,})
- HandleWeld = New("ManualWeld",PistolPart,"HandleWeld",{Part0 = PistolPart,Part1 = chara.Torso,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388),C1 = CFrame.new(-1.09999752, -1.10000038, -0.199999988, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
- MuzzleFlash = New("Part",Pistol,"MuzzleFlash",{Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.199999973, 0.200000033),CFrame = CFrame.new(-11.6999989, 1.10000026, -0.699999928, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Weld = New("ManualWeld",MuzzleFlash,"Weld",{Part0 = MuzzleFlash,Part1 = PistolPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(-9.53674316e-07, 0.999999881, 0.399999976, 1, 0, 0, -0, -0, -1, 0, 1, 0),})
- local li = Instance.new("PointLight",MuzzleFlash)
- li.Enabled = false
- li.Range = 3
- li.Color = Color3.new(1,.5,0)
- flash = Instance.new("BillboardGui",MuzzleFlash)
- flash.Size = UDim2.new(.5,0,.5,0)
- flash.Adornee = MuzzleFlash
- simgl = Instance.new("ImageLabel",flash)
- simgl.Position = UDim2.new(0,0,0,0)
- simgl.Size = UDim2.new(1,0,1,0)
- simgl.Image = "http://www.roblox.com/asset/?id=386535299"
- simgl.BackgroundTransparency = 1
- simgl.ImageTransparency = 1
- --Sounds--
- function LoadSnd(id,loop,vol,pit)
- local snd = New("Sound",PistolPart,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
- return snd
- end
- EquipSnd = LoadSnd(169799883,false,1,1)
- ReloadSnd = LoadSnd(147323220,false,1,1)
- ShootSnd = LoadSnd(846233576,false,1,1)
- --Play Sound in Part--
- function PlaySnd(snd,part)
- local sound = snd:Clone()
- sound.PlayOnRemove = true
- sound.Parent = part
- sound:Destroy()
- end
- --Damage Function--
- function dealdmg(dude,damage,env,toim,kby,kbx)
- coroutine.resume(coroutine.create(function()
- if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
- finaldmg = damage + math.random(-env,env)
- dudehum = dude:FindFirstChildOfClass("Humanoid")
- dudehum.MaxHealth = 100
- dudehum.Health = dudehum.Health - finaldmg
- local vall = Instance.new("ObjectValue",dude)
- vall.Name = "IsHit"
- game.Debris:AddItem(vall,toim)
- local bfos = Instance.new("BodyVelocity",dude.Head)
- bfos.P = 20000
- bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
- bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
- game.Debris:AddItem(bfos,.1)
- local naeeym2 = Instance.new("BillboardGui",dude)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- if chara.Name == "CKbackup" then
- dude:BreakJoints()
- tecks2.Text = "DEATH"
- tecks2.TextColor3 = Color3.new(1,0,0)
- else
- tecks2.Text = "-"..finaldmg
- tecks2.TextColor3 = Color3.new(1,0.6,0)
- end
- for i = 1, 5 do
- wait(.1)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end
- end))
- end
- --Explode Hitbox--
- function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
- local E = Instance.new("Explosion")
- E.Position = pos
- E.Parent = game.Workspace
- E.BlastRadius = rad
- E.BlastPressure = 0
- E.Visible = false
- E.Hit:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- dealdmg(hit.Parent,damage,env,toim,kby,kbx)
- end
- end)
- end
- --Chat Function--
- function chatfunc(text)
- coroutine.resume(coroutine.create(function()
- if chara:FindFirstChild("TalkingBillBoard")~= nil then
- chara:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",chara)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = chara.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,1,1)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- swait(.01)
- end
- swait(1)
- for i = 1, 10 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.025,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.1
- tecks2.TextTransparency = tecks2.TextTransparency + .1
- end
- naeeym2:Destroy()
- end))
- end
- function onChatted(msg)
- --chatfunc(msg)
- end
- player.Chatted:connect(onChatted)
- --Clerp Animations--
- TC = chara.HumanoidRootPart.RootJoint
- HC = chara.Torso.Neck
- RAC = chara.Torso["Right Shoulder"]
- LAC = chara.Torso["Left Shoulder"]
- RLC = chara.Torso["Right Hip"]
- LLC = chara.Torso["Left Hip"]
- TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RW = nil
- LW = nil
- RLW = nil
- LLW = nil
- function DestroyLegWelds()
- RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
- LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
- RLW:Destroy()
- LLW:Destroy()
- end
- function clerp(a,b,c)
- return a:lerp(b,c)
- end
- ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
- IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- IRWF = (RWF + Vector3.new(1,1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-90))
- local motor6dm = Instance.new("Model",chara)
- function equip()
- if equipped == false then
- del = true
- equipped = true
- EquipSnd:Play()
- LAC.Parent = motor6dm
- RAC.Parent = motor6dm
- RW = Instance.new("Weld",HC.Parent)
- RW.Part1 = HC.Parent
- RW.Part0 = chara["Right Arm"]
- RW.C0 = RWF
- LW = Instance.new("Weld",HC.Parent)
- LW.Part1 = HC.Parent
- LW.Part0 = chara["Left Arm"]
- LW.C0 = LWF
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(TCF,ITCF,.4+i)
- HC.C0 = clerp(HCF,IHCF,.4+i)
- RW.C0 = clerp(RWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(-70),0),.4+i)
- end
- HandleWeld:Destroy()
- HandleWeld = New("ManualWeld",PistolPart,"HandleWeld",{Part0 = PistolPart,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0),C1 = CFrame.new(-0.199997902, -1.70000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
- for i = 0,.6,.1 do
- swait()
- RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(-70),0),IRWF,.4+i)
- end
- elseif equipped == true then
- equipped = false
- for i = 0,.6,.1 do
- swait()
- RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(-70),0),IRWF,.6-i)
- end
- HandleWeld:Destroy()
- HandleWeld = New("ManualWeld",PistolPart,"HandleWeld",{Part0 = PistolPart,Part1 = chara.Torso,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388),C1 = CFrame.new(-1.09999752, -1.10000038, -0.199999988, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(TCF,ITCF,.6-i)
- HC.C0 = clerp(HCF,IHCF,.6-i)
- RW.C0 = clerp(RWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(-70),0),.6-i)
- end
- RW:Destroy()
- LW:Destroy()
- LAC.Parent = chara["Left Arm"]
- RAC.Parent = chara["Right Arm"]
- end
- del = false
- end
- function reload()
- if ammo < 7 and del == false and equipped == true then
- del = true
- ReloadSnd:Play()
- local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- MagPartt.CFrame = PistolPart.CFrame
- coroutine.resume(coroutine.create(function()
- swait(3)
- for i = 0,1.1 do
- swait()
- MagPartt.Transparency = i
- end
- MagPartt:Destroy()
- end))
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),0),.4+i)
- end
- local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
- for i = 0,.6,.1 do
- swait()
- LW.C0 = clerp(LWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
- end
- swait(.5)
- MagPart:Destroy()
- for i = 0,.6,.1 do
- swait()
- LW.C0 = clerp(LWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.6-i)
- end
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF,.6-i)
- HC.C0 = clerp(IHCF,HCF,.6-i)
- RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),0),.6-i)
- end
- ammo = 7
- del = false
- end
- end
- --Keys--
- ammo = 7
- function onKeyDown(key)
- if del == false then
- if key == "f" then
- equip()
- elseif key == "r" then
- reload()
- end
- end
- end
- function onButton1Down()
- if del == false and equipped == true then
- del = true
- ammo = ammo - 1
- local EffectPart = Instance.new("Part",chara)
- EffectPart.Size = Vector3.new(1,1,1)
- EffectPart.Anchored = true
- EffectPart.BrickColor = BrickColor.new("Bright yellow")
- EffectPart.Material = "Neon"
- EffectPart.Position = mouse.Hit.p
- local mehs1 = Instance.new("SpecialMesh",EffectPart)
- mehs1.MeshType = "Sphere"
- mehs1.Scale = Vector3.new(.2,.2,.2)
- local P = Instance.new("Part")
- local Place0 = MuzzleFlash.CFrame
- local Place1 = EffectPart.CFrame
- local meshla = Instance.new("BlockMesh", P)
- meshla.Scale = Vector3.new(.2,.2,1)
- P.formFactor = 0
- P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.new("Bright yellow")
- P.Material = "Neon"
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- ExHitbox(1,EffectPart.Position,16,3,.1,0,0)
- ShootSnd:Play()
- coroutine.resume(coroutine.create(function()
- for i = 0,1,.2 do
- swait(.001)
- local Place0 = MuzzleFlash.CFrame
- local Place1 = EffectPart.CFrame
- P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
- P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
- mehs1.Scale = Vector3.new(.2+.3*i,.2+.3*i,.2+.3*i)
- meshla.Scale = Vector3.new(.1+.3*i,.1+.3*i,1)
- EffectPart.Transparency = i
- P.Transparency = i
- end
- P:Destroy()
- EffectPart:Destroy()
- end))
- local hitpt = Instance.new("Part",game.Workspace)
- hitpt.Size = Vector3.new(0,0,1)
- hitpt.TopSurface = 0
- hitpt.BottomSurface = 0
- local bf = Instance.new("BodyVelocity",hitpt)
- bf.P = 10000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- game.Debris:AddItem(bf,.1)
- hitpt.Position = PistolPart.Position
- hitpt.CFrame = PistolPart.CFrame
- bf.Velocity = Vector3.new(0,5,0) + PistolPart.CFrame.rightVector*10
- local hitm = Instance.new("SpecialMesh",hitpt)
- hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
- hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
- hitm.Scale = Vector3.new(3,3,4)
- coroutine.resume(coroutine.create(function()
- swait(3)
- for i = 0,1.1 do
- swait(.001)
- hitpt.Transparency = i
- end
- hitpt:Destroy()
- end))
- simgl.ImageTransparency = 0
- li.Enabled = true
- for i = 0,1,.2 do
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(1,1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-120)),i)
- simgl.ImageTransparency = i
- li.Range = 5 - 5*i
- swait()
- end
- li.Enabled = false
- simgl.ImageTransparency = 1
- for i = 0,1,.2 do
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(1,1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-120)),1-i)
- swait()
- end
- if ammo == 0 then
- ReloadSnd:Play()
- local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- MagPartt.CFrame = PistolPart.CFrame
- coroutine.resume(coroutine.create(function()
- swait(3)
- for i = 0,1.1 do
- swait()
- MagPartt.Transparency = i
- end
- MagPartt:Destroy()
- end))
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),0),.4+i)
- end
- local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
- for i = 0,.6,.1 do
- swait()
- LW.C0 = clerp(LWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
- end
- swait(.5)
- MagPart:Destroy()
- for i = 0,.6,.1 do
- swait()
- LW.C0 = clerp(LWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.6-i)
- end
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF,.6-i)
- HC.C0 = clerp(IHCF,HCF,.6-i)
- RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),0),.6-i)
- end
- ammo = 7
- end
- del = false
- end
- end
- if mouse then
- mouse.Button1Down:connect(onButton1Down)
- mouse.KeyDown:connect(onKeyDown)
- end
Add Comment
Please, Sign In to add comment