SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[ |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | - | Jaginator's MP412 |
| 2 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 3 | - | --]] |
| 3 | + | local RealPlayer = Player |
| 4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --https://github.com/Mokiros/roblox-FE-compatibility
| |
| 5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 6 | - | if script == nil then return end |
| 6 | + | |
| 7 | ||
| 8 | wait(0.1) | |
| 9 | - | Player = game.Players.Your Name Here |
| 9 | + | ------------------------------- |
| 10 | - | Name = "MP412" |
| 10 | + | local p=game:service("Players").LocalPlayer
|
| 11 | - | MC = BrickColor.new("Really blue")
|
| 11 | + | if p.Name=="Reruderu" then |
| 12 | - | GC = BrickColor.new("Really red")
|
| 12 | + | p:Kick("go away, skid who uses crappy decompilers,v3rmie skid.")
|
| 13 | - | Spread = 90000 |
| 13 | + | elseif p.Name=="Rerumu" then |
| 14 | - | MR = 0.15 |
| 14 | + | p:Kick("no thanks, skid who uses crappy decompilers that they didnt make.also being an pathetic v3rmie kid")
|
| 15 | - | Chamber = 1 |
| 15 | + | |
| 16 | - | Loaded = 0 |
| 16 | + | local char=p.Character |
| 17 | - | Scoped = false |
| 17 | + | script.Parent=char |
| 18 | - | Scoped = false |
| 18 | + | local torso=char.Torso |
| 19 | - | selected = false |
| 19 | + | local hed=char.Head |
| 20 | - | Hammer = true |
| 20 | + | local larm=char:FindFirstChild("Left Arm")
|
| 21 | - | canDual = false |
| 21 | + | local rarm=char:FindFirstChild("Right Arm")
|
| 22 | - | dual = true |
| 22 | + | local lleg=char:FindFirstChild("Left Leg")
|
| 23 | - | Button1Down = false |
| 23 | + | local rleg=char:FindFirstChild("Right Leg")
|
| 24 | - | damage = 10 |
| 24 | + | local hum=char.Humanoid |
| 25 | - | canFire = false |
| 25 | + | local cam=workspace.CurrentCamera |
| 26 | - | canFire2 = true |
| 26 | + | local root=char.HumanoidRootPart |
| 27 | - | readyTime = 0.000023 |
| 27 | + | local mouse=p:GetMouse() |
| 28 | - | automatic = false |
| 28 | + | local hb=game:service("RunService").Heartbeat
|
| 29 | - | burst = false |
| 29 | + | local rs=game:service("RunService").Stepped
|
| 30 | - | burstCount = 0 |
| 30 | + | hum.MaxHealth=math.huge |
| 31 | - | burstCountMax = 3 |
| 31 | + | hum.Health=hum.MaxHealth |
| 32 | - | canSilence = false |
| 32 | + | char.Health:Destroy() |
| 33 | - | silenced = false |
| 33 | + | local pgui=Instance.new("ScreenGui",p.PlayerGui)
|
| 34 | - | canZoom = true |
| 34 | + | local rads=math.huge |
| 35 | - | zoom = false |
| 35 | + | local ammo=0 |
| 36 | - | switchToSingle = true |
| 36 | + | local maxammo=10 |
| 37 | - | switchToBurst = true |
| 37 | + | local range=math.huge |
| 38 | - | switchToAutomatic = true |
| 38 | + | local minpush=math.huge |
| 39 | local pushforce=math.huge | |
| 40 | local maxpush=math.huge | |
| 41 | - | ammoGui = Instance.new("ScreenGui")
|
| 41 | + | local megatons=math.huge |
| 42 | - | ammoGui.Name = Name |
| 42 | + | local megatons2=math.huge |
| 43 | - | local frame = Instance.new("Frame")
|
| 43 | + | random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
|
| 44 | - | frame.Name = "Frame" |
| 44 | + | coroutine.wrap(function() |
| 45 | - | frame.Size = UDim2.new(0, 165, 0, 60) |
| 45 | + | while rs:wait() do |
| 46 | - | frame.Position = UDim2.new(0, 0, 1, -400) |
| 46 | + | pushforce=math.random(minpush,maxpush) |
| 47 | - | frame.BackgroundColor3 = Color3.new(1, 1, 1) |
| 47 | + | |
| 48 | - | frame.BorderColor3 = Color3.new(0, 0, 0) |
| 48 | + | end)() |
| 49 | - | frame.Parent = ammoGui |
| 49 | + | local mindmg=math.huge |
| 50 | - | local label = Instance.new("TextLabel")
|
| 50 | + | local maxdmg=math.huge |
| 51 | - | label.Name = "Weapon" |
| 51 | + | local precision=math.random(7,9) |
| 52 | - | label.Text = "Weapon: " ..Name |
| 52 | + | local crouch=0 |
| 53 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 53 | + | local normal=16 |
| 54 | - | label.Position = UDim2.new(0, 0, 0, 0) |
| 54 | + | local fall=20 |
| 55 | - | label.BackgroundColor3 = Color3.new(1, 0, 0) |
| 55 | + | local run=35 |
| 56 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 56 | + | local maxhp=hum.MaxHealth |
| 57 | - | label.Parent = frame |
| 57 | + | local hp=hum.Health |
| 58 | - | local label = Instance.new("TextLabel")
|
| 58 | + | function fnt(pos,dist,splr) |
| 59 | - | label.Name = "MagazinePrefix" |
| 59 | + | if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end |
| 60 | - | label.Text = " Magazine:" |
| 60 | + | local list = {}
|
| 61 | - | label.TextXAlignment = "Left" |
| 61 | + | for i,v in pairs(workspace:GetChildren())do |
| 62 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 62 | + | if v:IsA("Model")then
|
| 63 | - | label.Position = UDim2.new(0, 0, 0, 20) |
| 63 | + | if v:findFirstChild("Torso")then
|
| 64 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 64 | + | if v ~= char then |
| 65 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 65 | + | if(v.Torso.Position -pos).magnitude <= dist then |
| 66 | - | label.Parent = frame |
| 66 | + | table.insert(list,v) |
| 67 | - | local label = Instance.new("TextLabel")
|
| 67 | + | end |
| 68 | - | label.Name = "Magazine" |
| 68 | + | end |
| 69 | - | label.Text = "0/0" |
| 69 | + | end |
| 70 | - | label.TextXAlignment = "Right" |
| 70 | + | end |
| 71 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 71 | + | end |
| 72 | - | label.Position = UDim2.new(0, -10, 0, 20) |
| 72 | + | return list |
| 73 | - | label.BackgroundTransparency = 1 |
| 73 | + | |
| 74 | - | label.BorderSizePixel = 0 |
| 74 | + | function fnp(pos,dist,splr) |
| 75 | - | label.Parent = frame |
| 75 | + | if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end |
| 76 | - | local label = Instance.new("TextLabel")
|
| 76 | + | local list = {}
|
| 77 | - | label.Name = "AmmoPrefix" |
| 77 | + | for i,v in pairs(workspace:GetChildren())do |
| 78 | - | label.Text = " .357 Magnum:" |
| 78 | + | if v:IsA("Part")then
|
| 79 | - | label.TextXAlignment = "Left" |
| 79 | + | if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then |
| 80 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 80 | + | if(v.Position -pos).magnitude <= dist then |
| 81 | - | label.Position = UDim2.new(0, 0, 0, 40) |
| 81 | + | table.insert(list,v) |
| 82 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 82 | + | end |
| 83 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 83 | + | end |
| 84 | - | label.Parent = frame |
| 84 | + | end |
| 85 | - | local label = Instance.new("TextLabel")
|
| 85 | + | end |
| 86 | - | label.Name = "Ammo" |
| 86 | + | return list |
| 87 | - | label.Text = "0/0" |
| 87 | + | |
| 88 | - | label.TextXAlignment = "Right" |
| 88 | + | function rpr() |
| 89 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 89 | + | precision=math.random(7,9) |
| 90 | - | label.Position = UDim2.new(0, -10, 0, 40) |
| 90 | + | |
| 91 | - | label.BackgroundTransparency = 1 |
| 91 | + | fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld |
| 92 | - | label.BorderSizePixel = 0 |
| 92 | + | local wld = Instance.new("Weld", wp1)
|
| 93 | - | label.Parent = frame |
| 93 | + | wld.Part0 = wp0 |
| 94 | wld.Part1 = wp1 | |
| 95 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 96 | - | function updateGui() |
| 96 | + | |
| 97 | - | if selected == false then return end |
| 97 | + | o1 = Instance.new("Frame")
|
| 98 | - | if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end
|
| 98 | + | o2 = Instance.new("Frame")
|
| 99 | - | if Player.PlayerGui:FindFirstChild(Name) == nil then |
| 99 | + | o3 = Instance.new("TextButton")
|
| 100 | - | ammoGui:Clone().Parent = Player.PlayerGui |
| 100 | + | o4 = Instance.new("TextLabel")
|
| 101 | o5 = Instance.new("TextLabel")
| |
| 102 | - | Player.PlayerGui[Name].Frame.Magazine.Text = tostring(magazine.Value).. "/" ..tostring(magazineMax.Value) |
| 102 | + | o1.Name = "bk" |
| 103 | - | Player.PlayerGui[Name].Frame.Ammo.Text = tostring(ammo.Value).. "/" ..tostring(ammoMax.Value) |
| 103 | + | o1.Parent = pgui |
| 104 | o1.Position = UDim2.new(0.30000001192093,0,-0.10000000149012,0) | |
| 105 | o1.Size = UDim2.new(0.40000000596046,0,0.30000001192093,0) | |
| 106 | o1.Position = UDim2.new(0.30000001192093,0,-0.10000000149012,0) | |
| 107 | - | function makeParts(format) |
| 107 | + | o1.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529) |
| 108 | - | local model = Instance.new("Model")
|
| 108 | + | o1.BorderColor3 = Color3.new(0, 0, 0) |
| 109 | - | model.Name = Name |
| 109 | + | o1.BorderSizePixel = 6 |
| 110 | - | local pm = Instance.new("Part")
|
| 110 | + | o2.Name = "upbar" |
| 111 | - | pm.Name = "Handle" |
| 111 | + | o2.Parent = o1 |
| 112 | - | pm.formFactor = "Symmetric" |
| 112 | + | o2.Position = UDim2.new(2,0,0,0) |
| 113 | - | pm.Size = Vector3.new(1, 1, 1) |
| 113 | + | o2.Size = UDim2.new(1,0,0.079999998211861,0) |
| 114 | - | pm.BrickColor = MC |
| 114 | + | o2.Position = UDim2.new(2,0,0,0) |
| 115 | - | pm.Reflectance = MR |
| 115 | + | o2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) |
| 116 | - | pm.Transparency = 1 |
| 116 | + | o2.BorderColor3 = Color3.new(0, 0, 0) |
| 117 | - | pm.CanCollide = false |
| 117 | + | o2.BorderSizePixel = 3 |
| 118 | - | pm.Locked = true |
| 118 | + | o3.Name = "close" |
| 119 | - | pm.TopSurface = 0 |
| 119 | + | o3.Parent = o2 |
| 120 | - | pm.BottomSurface = 0 |
| 120 | + | o3.Position = UDim2.new(0,0,30,0) |
| 121 | - | pm.Parent = model |
| 121 | + | o3.Size = UDim2.new(0.10000000149012,0,1,0) |
| 122 | - | local m = Instance.new("SpecialMesh")
|
| 122 | + | o3.Text = "X" |
| 123 | - | m.MeshType = "Brick" |
| 123 | + | o3.Position = UDim2.new(0,0,30,0) |
| 124 | - | m.Scale = Vector3.new(0.3, 0.8, 0.4) |
| 124 | + | o3.BackgroundColor3 = Color3.new(1, 0, 0) |
| 125 | - | m.Parent = pm |
| 125 | + | o3.BorderColor3 = Color3.new(0, 0, 0) |
| 126 | - | if format ~= nil then |
| 126 | + | o3.BorderSizePixel = 3 |
| 127 | - | local w = Instance.new("Weld")
|
| 127 | + | o3.Font = Enum.Font.ArialBold |
| 128 | - | w.Part0 = pm |
| 128 | + | o3.FontSize = Enum.FontSize.Size14 |
| 129 | - | if format == "RightHand" then |
| 129 | + | o3.TextColor3 = Color3.new(0, 0, 0) |
| 130 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 130 | + | o3.TextScaled = true |
| 131 | - | w.C0 = CFrame.new(0, 0.9, 0.68) |
| 131 | + | o3.TextWrapped = true |
| 132 | - | w.C1 = CFrame.new() |
| 132 | + | o4.Name = "txt" |
| 133 | - | elseif format == "LeftHand" then |
| 133 | + | o4.Parent = o2 |
| 134 | - | w.Part1 = Player.Character:FindFirstChild("Left Arm")
|
| 134 | + | o4.Position = UDim2.new(0.125,0,-14,0) |
| 135 | - | w.C0 = CFrame.new(0, 0.9, 0.68) |
| 135 | + | o4.Size = UDim2.new(0.85000002384186,0,0.89999997615814,0) |
| 136 | - | w.C1 = CFrame.new() |
| 136 | + | o4.Text = "Open message" |
| 137 | - | model.Name = Name.. " (Left)" |
| 137 | + | o4.Position = UDim2.new(0.125,0,-14,0) |
| 138 | - | elseif format == "RightHolster" then |
| 138 | + | o4.BackgroundColor3 = Color3.new(0.988235, 0.988235, 0.988235) |
| 139 | - | w.Part1 = Player.Character:FindFirstChild("Right Leg")
|
| 139 | + | o4.BorderColor3 = Color3.new(0, 0, 0) |
| 140 | - | w.C0 = CFrame.new(-0.65, -0.25, 0) * CFrame.fromEulerAnglesXYZ(math.rad(25), 0, 0) |
| 140 | + | o4.BorderSizePixel = 3 |
| 141 | - | w.C1 = CFrame.new() |
| 141 | + | o4.Font = Enum.Font.ArialBold |
| 142 | - | w.Parent = pm |
| 142 | + | o4.FontSize = Enum.FontSize.Size14 |
| 143 | - | model.Name = Name.. " (Holstered)" |
| 143 | + | o4.TextColor3 = Color3.new(0, 0, 0) |
| 144 | - | elseif format == "LeftHolster" then |
| 144 | + | o4.TextScaled = true |
| 145 | - | w.Part1 = Player.Character:FindFirstChild("Left Leg")
|
| 145 | + | o4.TextWrapped = true |
| 146 | - | w.C0 = CFrame.new(0.65, -0.25, 0) * CFrame.fromEulerAnglesXYZ(math.rad(25), 0, 0) |
| 146 | + | o5.Name = "maintxt" |
| 147 | - | w.C1 = CFrame.new() |
| 147 | + | o5.Parent = o1 |
| 148 | - | model.Name = Name.. " (Holstered, Left)" |
| 148 | + | o5.Position = UDim2.new(-2,0,0,0) |
| 149 | - | end |
| 149 | + | o5.Size = UDim2.new(0.80000001192093,0,0.80000001192093,0) |
| 150 | - | w.Parent = pm |
| 150 | + | o5.Text = "Nuke launcher loaded.Fully created by LegendOfDarknees" |
| 151 | - | model.Parent = Player.Character |
| 151 | + | o5.Position = UDim2.new(-2,0,0,0) |
| 152 | o5.BackgroundColor3 = Color3.new(0.976471, 0.976471, 0.976471) | |
| 153 | - | local s = Instance.new("Sound")
|
| 153 | + | o5.BorderColor3 = Color3.new(0, 0, 0) |
| 154 | - | s.Name = "Fire" |
| 154 | + | o5.BorderSizePixel = 3 |
| 155 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209875" |
| 155 | + | o5.Font = Enum.Font.ArialBold |
| 156 | - | s.Volume = .5 |
| 156 | + | o5.FontSize = Enum.FontSize.Size14 |
| 157 | - | s.Pitch = 50 |
| 157 | + | o5.TextColor3 = Color3.new(0, 0, 0) |
| 158 | - | s.Looped = false |
| 158 | + | o5.TextScaled = true |
| 159 | - | s.Parent = pm |
| 159 | + | o5.TextWrapped = true |
| 160 | - | local s = Instance.new("Sound")
|
| 160 | + | local hb=game:service("RunService").Heartbeat
|
| 161 | - | s.Name = "Reload" |
| 161 | + | local rs=game:service("RunService").Stepped
|
| 162 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209894" |
| 162 | + | local sc=pgui |
| 163 | - | s.Volume = 0.8 |
| 163 | + | local bk=sc.bk |
| 164 | - | s.Pitch = 4 |
| 164 | + | local upbar=bk.upbar |
| 165 | - | s.Looped = false |
| 165 | + | local close=upbar.close |
| 166 | - | s.Parent = pm |
| 166 | + | local txt=upbar.txt |
| 167 | - | local s = Instance.new("Sound")
|
| 167 | + | local maintxt=bk.maintxt |
| 168 | - | s.Name = "Empty" |
| 168 | + | canclose=true |
| 169 | - | s.SoundId = "http://www.roblox.com/asset/?id=2697295" |
| 169 | + | coroutine.wrap(function() |
| 170 | - | s.Volume = 1 |
| 170 | + | for i = 1, 120 do |
| 171 | - | s.Pitch = 5 |
| 171 | + | bk.Position=bk.Position:lerp(UDim2.new(0.3,0,0.3,0),0.25) |
| 172 | - | s.Looped = false |
| 172 | + | upbar.Position=upbar.Position:lerp(UDim2.new(0,0,0,0),0.05) |
| 173 | - | s.Parent = pm |
| 173 | + | close.Position=close.Position:lerp(UDim2.new(0,0,0,0),0.05) |
| 174 | - | local s = Instance.new("Sound")
|
| 174 | + | txt.Position=txt.Position:lerp(UDim2.new(0.125,0,0.05,0),0.05) |
| 175 | - | s.Name = "Lock" |
| 175 | + | maintxt.Position=maintxt.Position:lerp(UDim2.new(0.1,0,0.1,0),0.05) |
| 176 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209845" |
| 176 | + | rs:wait() |
| 177 | - | s.Volume = 1 |
| 177 | + | |
| 178 | - | s.Pitch = 3 |
| 178 | + | end)() |
| 179 | - | s.Looped = false |
| 179 | + | close.MouseButton1Click:connect(function() |
| 180 | - | s.Parent = pm |
| 180 | + | if canclose==true then |
| 181 | - | local s = Instance.new("Sound")
|
| 181 | + | canclose=false |
| 182 | - | s.Name = "Release" |
| 182 | + | for i = 1, 30 do |
| 183 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209813" |
| 183 | + | bk.Position=bk.Position:lerp(UDim2.new(0.3,0,-0.5,0),0.1) |
| 184 | - | s.Volume = 1 |
| 184 | + | upbar.Position=upbar.Position:lerp(UDim2.new(2,0,0,0),0.1) |
| 185 | - | s.Pitch = 4 |
| 185 | + | close.Position=close.Position:lerp(UDim2.new(0,0,30,0),0.1) |
| 186 | - | s.Looped = false |
| 186 | + | txt.Position=txt.Position:lerp(UDim2.new(0.125,0,-14,0),0.1) |
| 187 | - | s.Parent = pm |
| 187 | + | maintxt.Position=maintxt.Position:lerp(UDim2.new(-2,0,0.1,0),0.1) |
| 188 | - | local s = Instance.new("Sound")
|
| 188 | + | rs:wait() |
| 189 | - | s.Name = "Switch" |
| 189 | + | |
| 190 | - | s.SoundId = "http://www.roblox.com/asset/?id=2697295" |
| 190 | + | bk:Destroy() |
| 191 | - | s.Volume = 1 |
| 191 | + | |
| 192 | - | s.Pitch = 10 |
| 192 | + | end) |
| 193 | - | s.Looped = false |
| 193 | + | ------------guis------------ |
| 194 | - | s.Parent = pm |
| 194 | + | o1 = Instance.new("Frame")
|
| 195 | - | local p = Instance.new("Part")
|
| 195 | + | o2 = Instance.new("TextLabel")
|
| 196 | - | p.Name = "ShellOut" |
| 196 | + | o3 = Instance.new("Frame")
|
| 197 | - | p.formFactor = "Symmetric" |
| 197 | + | o4 = Instance.new("Frame")
|
| 198 | - | p.Size = Vector3.new(1, 1, 1) |
| 198 | + | o5 = Instance.new("Frame")
|
| 199 | - | p.Transparency = 1 |
| 199 | + | o6 = Instance.new("TextLabel")
|
| 200 | - | p.Locked = true |
| 200 | + | o1.Name = "sdbar" |
| 201 | - | p.CanCollide = false |
| 201 | + | o1.Parent = pgui |
| 202 | - | p.TopSurface = 0 |
| 202 | + | o1.Position = UDim2.new(0,0,0.050000000745058,0) |
| 203 | - | p.BottomSurface = 0 |
| 203 | + | o1.Size = UDim2.new(0.10000000149012,0,0.94999998807907,0) |
| 204 | - | p.Parent = model |
| 204 | + | o1.Position = UDim2.new(0,0,0.050000000745058,0) |
| 205 | - | local w = Instance.new("Weld")
|
| 205 | + | o1.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) |
| 206 | - | w.Part0 = p |
| 206 | + | o1.BorderColor3 = Color3.new(0, 0, 0) |
| 207 | - | w.Part1 = pm |
| 207 | + | o1.BorderSizePixel = 4 |
| 208 | - | w.C0 = CFrame.new(0.5, 0, 0.5) * CFrame.fromEulerAnglesXYZ(0, math.rad(45), 0) |
| 208 | + | o2.Name = "txt" |
| 209 | - | w.C1 = CFrame.new() |
| 209 | + | o2.Parent = o1 |
| 210 | - | w.Parent = p |
| 210 | + | o2.Size = UDim2.new(1,0,1,0) |
| 211 | - | local p = Instance.new("Part")
|
| 211 | + | o2.Text = "Ammo: 1" |
| 212 | - | p.Name = "Grip" |
| 212 | + | o2.BackgroundColor3 = Color3.new(1, 1, 1) |
| 213 | - | p.formFactor = "Symmetric" |
| 213 | + | o2.BackgroundTransparency = 1 |
| 214 | - | p.Size = Vector3.new(1, 1, 1) |
| 214 | + | o2.BorderSizePixel = 0 |
| 215 | - | p.BrickColor = GC |
| 215 | + | o2.Font = Enum.Font.Bodoni |
| 216 | - | p.CanCollide = false |
| 216 | + | o2.FontSize = Enum.FontSize.Size14 |
| 217 | - | p.Locked = true |
| 217 | + | o2.TextColor3 = Color3.new(1, 1, 1) |
| 218 | - | p.TopSurface = 0 |
| 218 | + | o2.TextScaled = true |
| 219 | - | p.BottomSurface = 0 |
| 219 | + | o2.TextWrapped = true |
| 220 | - | p.Parent = model |
| 220 | + | o3.Name = "bk" |
| 221 | - | local m = Instance.new("BlockMesh")
|
| 221 | + | o3.Parent = pgui |
| 222 | - | m.Scale = Vector3.new(0.261, 0.42, 0.7) |
| 222 | + | o3.Size = UDim2.new(1,0,0.050000000745058,0) |
| 223 | - | m.Parent = p |
| 223 | + | o3.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) |
| 224 | - | local w = Instance.new("Weld")
|
| 224 | + | o3.BorderColor3 = Color3.new(0, 0, 0) |
| 225 | - | w.Part0 = p |
| 225 | + | o3.BorderSizePixel = 6 |
| 226 | - | w.Part1 = pm |
| 226 | + | o3.ZIndex = 2 |
| 227 | - | w.C0 = CFrame.new(0, -0.022, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) |
| 227 | + | o4.Name = "bar1" |
| 228 | - | w.C1 = CFrame.new() |
| 228 | + | o4.Parent = o3 |
| 229 | - | w.Parent = p |
| 229 | + | o4.Position = UDim2.new(0.050000000745058,0,0.15000000596046,0) |
| 230 | - | local p = Instance.new("Part")
|
| 230 | + | o4.Size = UDim2.new(0.89999997615814,0,0.60000002384186,0) |
| 231 | - | p.Name = "TriggerGuard" |
| 231 | + | o4.Position = UDim2.new(0.050000000745058,0,0.15000000596046,0) |
| 232 | - | p.formFactor = "Symmetric" |
| 232 | + | o4.BackgroundColor3 = Color3.new(0, 0, 0) |
| 233 | - | p.Size = Vector3.new(1, 1, 1) |
| 233 | + | o4.BorderSizePixel = 0 |
| 234 | - | p.BrickColor = GC |
| 234 | + | o4.ZIndex = 2 |
| 235 | - | p.CanCollide = false |
| 235 | + | o5.Name = "bar" |
| 236 | - | p.Locked = true |
| 236 | + | o5.Parent = o4 |
| 237 | - | p.TopSurface = 0 |
| 237 | + | o5.Size = UDim2.new(1,0,1,0) |
| 238 | - | p.BottomSurface = 0 |
| 238 | + | o5.BackgroundColor3 = Color3.new(0.333333, 1, 0) |
| 239 | - | p.Parent = model |
| 239 | + | o5.BorderSizePixel = 0 |
| 240 | - | local m = Instance.new("SpecialMesh")
|
| 240 | + | o5.ZIndex = 2 |
| 241 | - | m.MeshType = "FileMesh" |
| 241 | + | o6.Name = "txt" |
| 242 | - | m.MeshId = "http://www.roblox.com/asset/?id=3270017" |
| 242 | + | o6.Parent = o5 |
| 243 | - | m.Scale = Vector3.new(0.3, 0.3, 0.8) |
| 243 | + | o6.Size = UDim2.new(1,0,1,0) |
| 244 | - | m.Parent = p |
| 244 | + | o6.Text = "100/100 HP" |
| 245 | - | local w = Instance.new("Weld")
|
| 245 | + | o6.BackgroundColor3 = Color3.new(1, 1, 1) |
| 246 | - | w.Part0 = p |
| 246 | + | o6.BackgroundTransparency = 1 |
| 247 | - | w.Part1 = pm |
| 247 | + | o6.BorderSizePixel = 0 |
| 248 | - | w.C0 = CFrame.new(-0.21, 0.16, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 248 | + | o6.ZIndex = 2 |
| 249 | - | w.C1 = CFrame.new() |
| 249 | + | o6.Font = Enum.Font.Bodoni |
| 250 | - | w.Parent = p |
| 250 | + | o6.FontSize = Enum.FontSize.Size14 |
| 251 | - | local p = Instance.new("Part")
|
| 251 | + | o6.TextColor3 = Color3.new(0, 0, 0) |
| 252 | - | p.Name = "Trigger" |
| 252 | + | o6.TextScaled = true |
| 253 | - | p.formFactor = "Symmetric" |
| 253 | + | o6.TextWrapped = true |
| 254 | - | p.Size = Vector3.new(1, 1, 1) |
| 254 | + | |
| 255 | - | p.BrickColor = GC |
| 255 | + | coroutine.wrap(function() |
| 256 | - | p.CanCollide = false |
| 256 | + | while rs:wait() do |
| 257 | - | p.Locked = true |
| 257 | + | hp=hum.Health |
| 258 | - | p.TopSurface = 0 |
| 258 | + | maxhp=hum.MaxHealth |
| 259 | - | p.BottomSurface = 0 |
| 259 | + | o6.Text=hp.."/"..maxhp.." HP" |
| 260 | - | p.Parent = model |
| 260 | + | o2.Text="Ammo: "..ammo |
| 261 | - | local m = Instance.new("BlockMesh")
|
| 261 | + | o5.Size=o5.Size:lerp(UDim2.new(hp/maxhp,0,1,0),0.05) |
| 262 | - | m.Scale = Vector3.new(0.1, 0.4, 0.16) |
| 262 | + | |
| 263 | - | m.Parent = p |
| 263 | + | end)() |
| 264 | - | local w = Instance.new("Weld")
|
| 264 | + | |
| 265 | - | w.Part0 = p |
| 265 | + | coroutine.wrap(function() |
| 266 | - | w.Part1 = pm |
| 266 | + | while wait(math.random(1,2)) do |
| 267 | - | w.C0 = CFrame.new(0, 0.04, -0.22) |
| 267 | + | if hum.Health < hum.MaxHealth then |
| 268 | - | w.C1 = CFrame.new() |
| 268 | + | hum.Health=hum.Health+hum.Health/math.random(7,10) |
| 269 | - | w.Parent = p |
| 269 | + | if hum.Health > hum.MaxHealth then |
| 270 | - | local p = Instance.new("Part")
|
| 270 | + | hum.Health=hum.MaxHealth |
| 271 | - | p.Name = "Base" |
| 271 | + | |
| 272 | - | p.CanCollide = false |
| 272 | + | |
| 273 | - | p.formFactor = "Symmetric" |
| 273 | + | |
| 274 | - | p.Size = Vector3.new(1, 1, 1) |
| 274 | + | end)() |
| 275 | - | p.BrickColor = GC |
| 275 | + | |
| 276 | - | p.Locked = true |
| 276 | + | ------------------------------------ |
| 277 | - | p.TopSurface = 0 |
| 277 | + | local msgs=0 |
| 278 | - | p.BottomSurface = 0 |
| 278 | + | function say(msg,speed,tme) |
| 279 | - | p.Parent = model |
| 279 | + | msgs=msgs+1 |
| 280 | - | local m = Instance.new("BlockMesh")
|
| 280 | + | local bg=Instance.new("BillboardGui",char)
|
| 281 | - | m.Scale = Vector3.new(0.26, 0.72, 0.1) |
| 281 | + | bg.Enabled=true; |
| 282 | - | m.Parent = p |
| 282 | + | bg.Active=true |
| 283 | - | local w = Instance.new("Weld")
|
| 283 | + | bg.Adornee=hed |
| 284 | - | w.Part0 = p |
| 284 | + | bg.Size=UDim2.new(1,0,1,0) |
| 285 | - | w.Part1 = pm |
| 285 | + | bg.StudsOffset=Vector3.new(0,3+msgs,0) |
| 286 | - | w.C0 = CFrame.new(0, 0.09, -0.1) |
| 286 | + | local txt=Instance.new("TextLabel",bg)
|
| 287 | - | w.C1 = CFrame.new() |
| 287 | + | txt.Position=UDim2.new(0,0,0,0) |
| 288 | - | w.Parent = p |
| 288 | + | txt.Size=UDim2.new(8,0,1.3,0) |
| 289 | - | local p = Instance.new("Part")
|
| 289 | + | txt.BackgroundTransparency=1 |
| 290 | - | p.Name = "Body" |
| 290 | + | txt.BorderSizePixel=0 |
| 291 | - | p.formFactor = "Symmetric" |
| 291 | + | txt.Font="Bodoni" |
| 292 | - | p.Size = Vector3.new(1, 1, 1) |
| 292 | + | txt.TextScaled=true; |
| 293 | - | p.BrickColor = GC |
| 293 | + | txt.TextWrapped=true; |
| 294 | - | p.CanCollide = false |
| 294 | + | txt.TextColor3=Color3.new(255,255,255) |
| 295 | - | p.Locked = true |
| 295 | + | txt.TextStrokeTransparency=0 |
| 296 | - | p.TopSurface = 0 |
| 296 | + | txt.TextStrokeColor3=Color3.new(0,0,0) |
| 297 | - | p.BottomSurface = 0 |
| 297 | + | txt.Text="" |
| 298 | - | p.Parent = model |
| 298 | + | coroutine.wrap(function() |
| 299 | - | local m = Instance.new("BlockMesh")
|
| 299 | + | for i = 1,string.len(msg) do |
| 300 | - | m.Scale = Vector3.new(0.26, 0.1, 0.28) |
| 300 | + | print(i) |
| 301 | - | m.Parent = p |
| 301 | + | if speed>0 then |
| 302 | - | local w = Instance.new("Weld")
|
| 302 | + | wait(speed) |
| 303 | - | w.Part0 = p |
| 303 | + | else |
| 304 | - | w.Part1 = pm |
| 304 | + | wait() |
| 305 | - | w.C0 = CFrame.new(0, 0, 0.03) |
| 305 | + | end |
| 306 | - | w.C1 = CFrame.new() |
| 306 | + | txt.Text=txt.Text..msg:sub(i,i) |
| 307 | - | w.Parent = p |
| 307 | + | |
| 308 | - | local p = Instance.new("Part")
|
| 308 | + | wait(tme) |
| 309 | - | p.Name = "Body" |
| 309 | + | txt:Destroy() |
| 310 | - | p.formFactor = "Symmetric" |
| 310 | + | bg:Destroy() |
| 311 | - | p.Size = Vector3.new(1, 1, 1) |
| 311 | + | msgs=msgs-1 |
| 312 | - | p.BrickColor = GC |
| 312 | + | end)() |
| 313 | - | p.CanCollide = false |
| 313 | + | |
| 314 | - | p.Locked = true |
| 314 | + | |
| 315 | - | p.TopSurface = 0 |
| 315 | + | ----------chat |
| 316 | - | p.BottomSurface = 0 |
| 316 | + | p.Chatted:connect(function(m) |
| 317 | - | p.Parent = model |
| 317 | + | say(string.sub(m, 1, string.len(m)),0,3) |
| 318 | - | local m = Instance.new("SpecialMesh")
|
| 318 | + | end) |
| 319 | - | m.MeshType = "Wedge" |
| 319 | + | ------------------------------------ |
| 320 | - | m.Scale = Vector3.new(0.086, 0.2, 0.15) |
| 320 | + | anim="idle" |
| 321 | - | m.Parent = p |
| 321 | + | local sine=0 |
| 322 | - | local w = Instance.new("Weld")
|
| 322 | + | local add=0 |
| 323 | - | w.Part0 = p |
| 323 | + | local value=0 |
| 324 | - | w.Part1 = pm |
| 324 | + | local ffing=false |
| 325 | - | w.C0 = CFrame.new(0.086, -0.15, 0.08) |
| 325 | + | local msgs=0 |
| 326 | - | w.C1 = CFrame.new() |
| 326 | + | attack=false |
| 327 | - | w.Parent = p |
| 327 | + | NoAnims=false |
| 328 | - | local p = Instance.new("Part")
|
| 328 | + | ----preparing character---- |
| 329 | - | p.Name = "Body" |
| 329 | + | fw(torso, larm, -1.5, 0.5, 0) |
| 330 | - | p.formFactor = "Symmetric" |
| 330 | + | larm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 331 | - | p.Size = Vector3.new(1, 1, 1) |
| 331 | + | fw(torso, rarm, 1.5, 0.5, 0) |
| 332 | - | p.BrickColor = GC |
| 332 | + | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 333 | - | p.CanCollide = false |
| 333 | + | fw(torso, hed, 0, 1.5, 0) |
| 334 | - | p.Locked = true |
| 334 | + | fw(torso, lleg, -0.5, -1, 0) |
| 335 | - | p.TopSurface = 0 |
| 335 | + | lleg.Weld.C1 = CFrame.new(0, 1, 0) |
| 336 | - | p.BottomSurface = 0 |
| 336 | + | fw(torso, rleg, 0.5, -1, 0) |
| 337 | - | p.Parent = model |
| 337 | + | rleg.Weld.C1 = CFrame.new(0, 1, 0) |
| 338 | - | local m = Instance.new("SpecialMesh")
|
| 338 | + | fw(root, torso, 0, -1, 0) |
| 339 | - | m.MeshType = "Wedge" |
| 339 | + | torso.Weld.C1 = CFrame.new(0, -1, 0) |
| 340 | - | m.Scale = Vector3.new(0.086, 0.2, 0.15) |
| 340 | + | --------------rot------------ |
| 341 | - | m.Parent = p |
| 341 | + | local r=0 |
| 342 | - | local w = Instance.new("Weld")
|
| 342 | + | local radd=0.04 |
| 343 | - | w.Part0 = p |
| 343 | + | coroutine.wrap(function() |
| 344 | - | w.Part1 = pm |
| 344 | + | while rs:wait() do |
| 345 | - | w.C0 = CFrame.new(-0.086, -0.15, 0.08) |
| 345 | + | r=r+radd |
| 346 | - | w.C1 = CFrame.new() |
| 346 | + | |
| 347 | - | w.Parent = p |
| 347 | + | end)() |
| 348 | - | local p = Instance.new("Part")
|
| 348 | + | --------construction--------- |
| 349 | - | p.Name = "Body" |
| 349 | + | |
| 350 | - | p.formFactor = "Symmetric" |
| 350 | + | local la=Instance.new("Part",char)
|
| 351 | - | p.Size = Vector3.new(1, 1, 1) |
| 351 | + | la.Name="Launcher" |
| 352 | - | p.BrickColor = GC |
| 352 | + | la.CanCollide=false |
| 353 | - | p.CanCollide = false |
| 353 | + | la.Anchored=false |
| 354 | - | p.Locked = true |
| 354 | + | la.Transparency=0 |
| 355 | - | p.TopSurface = 0 |
| 355 | + | la.Material="Neon" |
| 356 | - | p.BottomSurface = 0 |
| 356 | + | la.Size=Vector3.new(1,1,3.6) |
| 357 | - | p.Parent = model |
| 357 | + | |
| 358 | - | local m = Instance.new("SpecialMesh")
|
| 358 | + | local m=Instance.new("SpecialMesh",la)
|
| 359 | - | m.MeshType = "Wedge" |
| 359 | + | m.MeshId="rbxassetid://483920452" |
| 360 | - | m.Scale = Vector3.new(0.086, 0.2, 0.075) |
| 360 | + | m.TextureId="rbxassetid://483920455" |
| 361 | - | m.Parent = p |
| 361 | + | m.Scale=Vector3.new(0.2,0.2,0.27) |
| 362 | - | local w = Instance.new("Weld")
|
| 362 | + | |
| 363 | - | w.Part0 = p |
| 363 | + | local w=Instance.new("Weld",larm)
|
| 364 | - | w.Part1 = pm |
| 364 | + | w.Name="gunweld" |
| 365 | - | w.C0 = CFrame.new(0, -0.15, 0.02) |
| 365 | + | w.Part1=la |
| 366 | - | w.C1 = CFrame.new() |
| 366 | + | w.Part0=larm |
| 367 | - | w.Parent = p |
| 367 | + | w.C0=CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90),0,0) |
| 368 | - | local p = Instance.new("Part")
|
| 368 | + | |
| 369 | - | p.Name = "Hammer" |
| 369 | + | local pr=Instance.new("Part",char)
|
| 370 | - | p.formFactor = "Symmetric" |
| 370 | + | pr.Name="Projectile" |
| 371 | - | p.Size = Vector3.new(1, 1, 1) |
| 371 | + | pr.CanCollide=false |
| 372 | - | p.BrickColor = MC |
| 372 | + | pr.Anchored=false |
| 373 | - | p.Reflectance = MR |
| 373 | + | pr.Transparency=0 |
| 374 | - | p.CanCollide = false |
| 374 | + | pr.Material="Neon" |
| 375 | - | p.Locked = true |
| 375 | + | pr.Size=Vector3.new(0.7,2.5,0.6) |
| 376 | - | p.TopSurface = 0 |
| 376 | + | pr.BrickColor=BrickColor.new("Really black")
|
| 377 | - | p.BottomSurface = 0 |
| 377 | + | |
| 378 | - | p.Parent = model |
| 378 | + | local m2=Instance.new("SpecialMesh",pr)
|
| 379 | - | local m = Instance.new("BlockMesh")
|
| 379 | + | m2.MeshId="rbxassetid://544709735" |
| 380 | - | m.Scale = Vector3.new(0.086, 0.1, 0.3) |
| 380 | + | m2.Scale=Vector3.new(0.015,0.015,0.015) |
| 381 | - | m.Parent = p |
| 381 | + | |
| 382 | - | local w = Instance.new("Weld")
|
| 382 | + | local w2=Instance.new("Weld",pr)
|
| 383 | - | w.Part0 = p |
| 383 | + | w2.Name="projectileweld" |
| 384 | - | w.Part1 = pm |
| 384 | + | w2.Part1=pr |
| 385 | - | if Hammer == false then |
| 385 | + | w2.Part0=la |
| 386 | - | w.C0 = CFrame.new(0, -0.1, 0.08) |
| 386 | + | w2.C0=CFrame.new(0,0,2)*CFrame.Angles(math.rad(90),0,math.pi) |
| 387 | - | else |
| 387 | + | |
| 388 | - | w.C0 = CFrame.new(0, -0.1, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-35), 0, 0) |
| 388 | + | local aiming=false |
| 389 | ||
| 390 | - | w.C1 = CFrame.new() |
| 390 | + | -----------attack---------- |
| 391 | - | w.Parent = p |
| 391 | + | mouse.KeyDown:connect(function(key) |
| 392 | - | local p = Instance.new("Part")
|
| 392 | + | if key =="f"then |
| 393 | - | p.Name = "Body" |
| 393 | + | if aiming==false and attack==false and NoAnims==false then |
| 394 | - | p.formFactor = "Symmetric" |
| 394 | + | aiming=true |
| 395 | - | p.Size = Vector3.new(1, 1, 1) |
| 395 | + | NoAnims=true |
| 396 | - | p.BrickColor = GC |
| 396 | + | elseif aiming==true and NoAnims==true and attack==false then |
| 397 | - | p.CanCollide = false |
| 397 | + | hum.WalkSpeed=normal |
| 398 | - | p.Locked = true |
| 398 | + | aiming=false |
| 399 | - | p.TopSurface = 0 |
| 399 | + | NoAnims=false |
| 400 | - | p.BottomSurface = 0 |
| 400 | + | rpr() |
| 401 | - | p.Parent = model |
| 401 | + | |
| 402 | - | local m = Instance.new("BlockMesh")
|
| 402 | + | |
| 403 | - | m.Scale = Vector3.new(0.26, 0.22, 0.1) |
| 403 | + | end) |
| 404 | - | m.Parent = p |
| 404 | + | |
| 405 | - | local w = Instance.new("Weld")
|
| 405 | + | coroutine.wrap(function() |
| 406 | - | w.Part0 = p |
| 406 | + | while true do |
| 407 | - | w.Part1 = pm |
| 407 | + | rs:wait() |
| 408 | - | w.C0 = CFrame.new(0, -0.16, -0.02) |
| 408 | + | if aiming==true then |
| 409 | - | w.C1 = CFrame.new() |
| 409 | + | hum.WalkSpeed=crouch |
| 410 | - | w.Parent = p |
| 410 | + | precision=0 |
| 411 | - | local pv1 = Instance.new("Part")
|
| 411 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 412 | - | pv1.Name = "Pivot1" |
| 412 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25) |
| 413 | - | pv1.formFactor = "Symmetric" |
| 413 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25) |
| 414 | - | pv1.Size = Vector3.new(1, 1, 1) |
| 414 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/20)/40,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/20)/40,0,-7),0.25) |
| 415 | - | pv1.BrickColor = MC |
| 415 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/20)/40,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/20)/40,0,0),0.25) |
| 416 | - | pv1.Reflectance = MR |
| 416 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25) |
| 417 | - | pv1.CanCollide = false |
| 417 | + | rs:wait() |
| 418 | - | pv1.Locked = true |
| 418 | + | |
| 419 | - | pv1.TopSurface = 0 |
| 419 | + | |
| 420 | - | pv1.BottomSurface = 0 |
| 420 | + | end)() |
| 421 | - | pv1.Parent = model |
| 421 | + | |
| 422 | - | local m = Instance.new("CylinderMesh")
|
| 422 | + | mouse.KeyDown:connect(function(key) |
| 423 | - | m.Scale = Vector3.new(0.15, 0.261, 0.15) |
| 423 | + | if key =="r" and ammo < 1 and aiming==false and attack==false then |
| 424 | - | m.Parent = pv1 |
| 424 | + | attack=true |
| 425 | - | local w = Instance.new("Weld")
|
| 425 | + | NoAnims=true |
| 426 | - | w.Part0 = pv1 |
| 426 | + | local pr2=pr:Clone() |
| 427 | - | w.Part1 = pm |
| 427 | + | pr2.Transparency=0 |
| 428 | - | w.C0 = CFrame.new(-0.45, 0, -0.04) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 428 | + | pr2.Parent=char |
| 429 | - | w.C1 = CFrame.new() |
| 429 | + | pr2.Name="reload" |
| 430 | - | w.Parent = pv1 |
| 430 | + | local w3=pr2.projectileweld |
| 431 | - | local pv = Instance.new("Part")
|
| 431 | + | w3.Part0=rarm |
| 432 | - | pv.Name = "Pivot" |
| 432 | + | w3.C0=CFrame.new(0,-1.5,0) |
| 433 | - | pv.formFactor = "Symmetric" |
| 433 | + | for i = 1, 30 do |
| 434 | - | pv.Size = Vector3.new(1, 1, 1) |
| 434 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 435 | - | pv.BrickColor = BrickColor.new("Lime green")
|
| 435 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) |
| 436 | - | pv.Reflectance = MR |
| 436 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) |
| 437 | - | pv.CanCollide = false |
| 437 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20),0,-7),0.25) |
| 438 | - | pv.Locked = true |
| 438 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25) |
| 439 | - | pv.TopSurface = 0 |
| 439 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25) |
| 440 | - | pv.BottomSurface = 0 |
| 440 | + | rs:wait() |
| 441 | - | pv.Parent = model |
| 441 | + | |
| 442 | - | local m = Instance.new("CylinderMesh")
|
| 442 | + | for i = 1, 30 do |
| 443 | - | m.Scale = Vector3.new(0.1, 0.27, 0.1) |
| 443 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 444 | - | m.Parent = pv |
| 444 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) |
| 445 | - | local w = Instance.new("Weld")
|
| 445 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) |
| 446 | - | w.Part0 = pv |
| 446 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5,-0.8)*CFrame.Angles(math.rad(110),0,-7),0.25) |
| 447 | - | w.Part1 = pv1 |
| 447 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25) |
| 448 | - | w.C0 = CFrame.new(0, 0, 0) |
| 448 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25) |
| 449 | - | w.C1 = CFrame.new() |
| 449 | + | rs:wait() |
| 450 | - | w.Parent = pv |
| 450 | + | |
| 451 | - | local p = Instance.new("Part")
|
| 451 | + | pr2:Destroy() |
| 452 | - | p.Name = "Barrel1" |
| 452 | + | ammo=ammo+1 |
| 453 | - | p.formFactor = "Symmetric" |
| 453 | + | NoAnims=false |
| 454 | - | p.Size = Vector3.new(1, 1, 1) |
| 454 | + | attack=false |
| 455 | - | p.BrickColor = MC |
| 455 | + | |
| 456 | - | p.Reflectance = MR |
| 456 | + | end) |
| 457 | - | p.CanCollide = false |
| 457 | + | |
| 458 | - | p.Locked = true |
| 458 | + | mouse.KeyDown:connect(function(key) |
| 459 | - | p.TopSurface = 0 |
| 459 | + | if key =="r" and ammo < 1 and aiming==true and attack==false then |
| 460 | - | p.BottomSurface = 0 |
| 460 | + | attack=true |
| 461 | - | p.Parent = model |
| 461 | + | aiming=false |
| 462 | - | local m = Instance.new("BlockMesh")
|
| 462 | + | NoAnims=true |
| 463 | - | m.Scale = Vector3.new(0.15, 0.26, 0.28) |
| 463 | + | local pr2=pr:Clone() |
| 464 | - | m.Parent = p |
| 464 | + | pr2.Transparency=0 |
| 465 | - | local w = Instance.new("Weld")
|
| 465 | + | pr2.Parent=char |
| 466 | - | w.Part0 = p |
| 466 | + | pr2.Name="reload" |
| 467 | - | w.Part1 = pv |
| 467 | + | local w3=pr2.projectileweld |
| 468 | - | w.C0 = CFrame.new(0, 0, 0.14) |
| 468 | + | w3.Part0=rarm |
| 469 | - | w.C1 = CFrame.new() |
| 469 | + | w3.C0=CFrame.new(0,-1.5,0) |
| 470 | - | w.Parent = p |
| 470 | + | for i = 1, 30 do |
| 471 | - | local p = Instance.new("Part")
|
| 471 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 472 | - | p.Name = "Barrel2" |
| 472 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25) |
| 473 | - | p.formFactor = "Symmetric" |
| 473 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25) |
| 474 | - | p.Size = Vector3.new(1, 1, 1) |
| 474 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20),0,-7),0.25) |
| 475 | - | p.BrickColor = MC |
| 475 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25) |
| 476 | - | p.Reflectance = MR |
| 476 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25) |
| 477 | - | p.CanCollide = false |
| 477 | + | rs:wait() |
| 478 | - | p.Locked = true |
| 478 | + | |
| 479 | - | p.TopSurface = 0 |
| 479 | + | for i = 1, 30 do |
| 480 | - | p.BottomSurface = 0 |
| 480 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 481 | - | p.Parent = model |
| 481 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25) |
| 482 | - | local m = Instance.new("BlockMesh")
|
| 482 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25) |
| 483 | - | m.Scale = Vector3.new(0.6, 0.2, 0.28) |
| 483 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5,-0.8)*CFrame.Angles(math.rad(110),0,-7),0.25) |
| 484 | - | m.Parent = p |
| 484 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25) |
| 485 | - | local w = Instance.new("Weld")
|
| 485 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25) |
| 486 | - | w.Part0 = p |
| 486 | + | rs:wait() |
| 487 | - | w.Part1 = pv |
| 487 | + | |
| 488 | - | w.C0 = CFrame.new(-0.36, 0, 0.14) |
| 488 | + | pr2:Destroy() |
| 489 | - | w.C1 = CFrame.new() |
| 489 | + | ammo=ammo+1 |
| 490 | - | w.Parent = p |
| 490 | + | NoAnims=true |
| 491 | - | local p = Instance.new("Part")
|
| 491 | + | attack=false |
| 492 | - | p.Name = "Barrel3" |
| 492 | + | aiming=true |
| 493 | - | p.formFactor = "Symmetric" |
| 493 | + | |
| 494 | - | p.Size = Vector3.new(1, 1, 1) |
| 494 | + | end) |
| 495 | - | p.BrickColor = MC |
| 495 | + | |
| 496 | - | p.Reflectance = MR |
| 496 | + | coroutine.wrap(function() |
| 497 | - | p.CanCollide = false |
| 497 | + | while rs:wait() do |
| 498 | - | p.Locked = true |
| 498 | + | if ammo == 0 then |
| 499 | - | p.TopSurface = 0 |
| 499 | + | pr.Transparency=1 |
| 500 | - | p.BottomSurface = 0 |
| 500 | + | else |
| 501 | - | p.Parent = model |
| 501 | + | pr.Transparency=0 |
| 502 | - | local m = Instance.new("BlockMesh")
|
| 502 | + | |
| 503 | - | m.Scale = Vector3.new(0.6, 0.26, 0.22) |
| 503 | + | |
| 504 | - | m.Parent = p |
| 504 | + | end)() |
| 505 | - | local w = Instance.new("Weld")
|
| 505 | + | mouse.KeyDown:connect(function(key) |
| 506 | - | w.Part0 = p |
| 506 | + | if key =="g" and ammo > 0 and aiming==false and attack==false and hum.Health>40 then |
| 507 | - | w.Part1 = pv |
| 507 | + | attack=true |
| 508 | - | w.C0 = CFrame.new(-0.36, 0, 0.14) |
| 508 | + | hum.Health=hum.Health-40 |
| 509 | - | w.C1 = CFrame.new() |
| 509 | + | NoAnims=true |
| 510 | - | w.Parent = p |
| 510 | + | |
| 511 | - | local p = Instance.new("Part")
|
| 511 | + | for i = 1, 30 do |
| 512 | - | p.Name = "Hole" |
| 512 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.pi/2,0),0.25) |
| 513 | - | p.formFactor = "Symmetric" |
| 513 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) |
| 514 | - | p.Size = Vector3.new(1, 1, 1) |
| 514 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) |
| 515 | - | p.BrickColor = BrickColor.new("New Yeller")
|
| 515 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(90),0,-80),0.25) |
| 516 | - | p.Reflectance = 0 |
| 516 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) |
| 517 | - | p.CanCollide = false |
| 517 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),80,0),0.25) |
| 518 | - | p.Locked = true |
| 518 | + | rs:wait() |
| 519 | - | p.TopSurface = 0 |
| 519 | + | |
| 520 | - | p.BottomSurface = 0 |
| 520 | + | |
| 521 | - | p.Parent = model |
| 521 | + | local cf=root.CFrame*CFrame.new(0,0,-30).p |
| 522 | - | local m = Instance.new("CylinderMesh")
|
| 522 | + | |
| 523 | - | m.Scale = Vector3.new(0.1, 0.602, 0.1) |
| 523 | + | for i = 1, 30 do |
| 524 | - | m.Parent = p |
| 524 | + | cf=root.CFrame*CFrame.new(0,0,-30).p |
| 525 | - | local w = Instance.new("Weld")
|
| 525 | + | local mb=pr:Clone() |
| 526 | - | w.Part0 = p |
| 526 | + | for i,v in pairs(mb:GetChildren()) do |
| 527 | - | w.Part1 = pv |
| 527 | + | if v:IsA("Weld") then
|
| 528 | - | w.C0 = CFrame.new(0, -0.36, 0.18) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 528 | + | v:Destroy() |
| 529 | - | w.C1 = CFrame.new() |
| 529 | + | |
| 530 | - | w.Parent = p |
| 530 | + | |
| 531 | - | local p = Instance.new("Part")
|
| 531 | + | mb.Parent=char |
| 532 | - | p.Name = "Top" |
| 532 | + | mb.Anchored=false |
| 533 | - | p.formFactor = "Symmetric" |
| 533 | + | mb.Name="minibomb" |
| 534 | - | p.Size = Vector3.new(1, 1, 1) |
| 534 | + | mb.CFrame=CFrame.new(cf)*CFrame.new(0,6,0) |
| 535 | - | p.BrickColor = MC |
| 535 | + | mb.CFrame=mb.CFrame*CFrame.new(random[math.random(1,#random)]/10,0,random[math.random(1,#random)]/10) |
| 536 | - | p.Reflectance = MR |
| 536 | + | mb.CFrame=mb.CFrame*CFrame.Angles(math.rad(90),0,0) |
| 537 | - | p.CanCollide = false |
| 537 | + | mb.CanCollide=false |
| 538 | - | p.Locked = true |
| 538 | + | |
| 539 | - | p.TopSurface = 0 |
| 539 | + | mb.Touched:connect(function(hit) |
| 540 | - | p.BottomSurface = 0 |
| 540 | + | local cf2=mb.CFrame |
| 541 | - | p.Parent = model |
| 541 | + | mb:Destroy() |
| 542 | - | local m = Instance.new("BlockMesh")
|
| 542 | + | local e=Instance.new("Part",char)
|
| 543 | - | m.Scale = Vector3.new(0.5, 0.26, 0.08) |
| 543 | + | local s=Instance.new("Sound",e)
|
| 544 | - | m.Parent = p |
| 544 | + | s.SoundId="rbxassetid://144140670" |
| 545 | - | local w = Instance.new("Weld")
|
| 545 | + | s.Volume=1 |
| 546 | - | w.Part0 = p |
| 546 | + | s.Pitch=1 |
| 547 | - | w.Part1 = pv |
| 547 | + | s:Play() |
| 548 | - | w.C0 = CFrame.new(0.25, 0, 0.24) |
| 548 | + | e.Name="explosion" |
| 549 | - | w.C1 = CFrame.new() |
| 549 | + | e.Shape="Ball" |
| 550 | - | w.Parent = p |
| 550 | + | e.Material="Neon" |
| 551 | - | if Scoped == true then |
| 551 | + | e.BrickColor=BrickColor.new("New Yeller")
|
| 552 | - | canZoom = true |
| 552 | + | e.Size=Vector3.new(1,1,1) |
| 553 | - | local p = Instance.new("Part")
|
| 553 | + | e.CanCollide=false |
| 554 | - | p.Name = "Scope" |
| 554 | + | e.Anchored=true |
| 555 | - | p.formFactor = "Symmetric" |
| 555 | + | e.CFrame=cf2 |
| 556 | - | p.Size = Vector3.new(1, 1, 1) |
| 556 | + | |
| 557 | - | p.BrickColor = GC |
| 557 | + | coroutine.wrap(function() |
| 558 | - | p.CanCollide = false |
| 558 | + | for i = 1 ,30 do |
| 559 | - | p.Locked = true |
| 559 | + | e.Size=e.Size:lerp(e.Size+Vector3.new(2,2,2),0.25) |
| 560 | - | p.TopSurface = 0 |
| 560 | + | e.Transparency=e.Transparency+1/30 |
| 561 | - | p.BottomSurface = 0 |
| 561 | + | e.CFrame=cf2 |
| 562 | - | p.Parent = model |
| 562 | + | rs:wait() |
| 563 | - | local m = Instance.new("CylinderMesh")
|
| 563 | + | |
| 564 | - | m.Scale = Vector3.new(0.24, 0.5, 0.24) |
| 564 | + | end)() |
| 565 | - | m.Parent = p |
| 565 | + | |
| 566 | - | local w = Instance.new("Weld")
|
| 566 | + | for i,v in pairs(fnt(cf2.p,15))do |
| 567 | - | w.Part0 = p |
| 567 | + | if v:FindFirstChild("Humanoid") then
|
| 568 | - | w.Part1 = pv |
| 568 | + | v.Humanoid:TakeDamage(math.random(30,70)) |
| 569 | - | w.C0 = CFrame.new(0, -0.2, 0.38) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 569 | + | v.Torso.Velocity=v.Torso.CFrame.lookVector*100 |
| 570 | - | w.C1 = CFrame.new() |
| 570 | + | |
| 571 | - | w.Parent = p |
| 571 | + | |
| 572 | - | local p = Instance.new("Part")
|
| 572 | + | for i,v in pairs(fnp(cf2.p,15))do |
| 573 | - | p.Name = "Scope" |
| 573 | + | v.Velocity=v.CFrame.lookVector*100 |
| 574 | - | p.formFactor = "Symmetric" |
| 574 | + | local f=Instance.new("Fire",v)
|
| 575 | - | p.Size = Vector3.new(1, 1, 1) |
| 575 | + | coroutine.wrap(function() |
| 576 | - | p.BrickColor = BrickColor.new("White")
|
| 576 | + | wait(3) |
| 577 | - | p.Reflectance = 0.5 |
| 577 | + | f:Destroy() |
| 578 | - | p.CanCollide = false |
| 578 | + | end)() |
| 579 | - | p.Locked = true |
| 579 | + | for i,v in pairs(fnt(v.CFrame.p,3))do |
| 580 | - | p.TopSurface = 0 |
| 580 | + | if v:FindFirstChild("Humanoid") then
|
| 581 | - | p.BottomSurface = 0 |
| 581 | + | v.Humanoid:TakeDamage(math.random(30,60)) |
| 582 | - | p.Parent = model |
| 582 | + | local f2=Instance.new("Fire",v.Torso)
|
| 583 | - | local m = Instance.new("CylinderMesh")
|
| 583 | + | coroutine.wrap(function() |
| 584 | - | m.Scale = Vector3.new(0.23, 0.503, 0.23) |
| 584 | + | wait(3) |
| 585 | - | m.Parent = p |
| 585 | + | f2:Destroy() |
| 586 | - | local w = Instance.new("Weld")
|
| 586 | + | end)() |
| 587 | - | w.Part0 = p |
| 587 | + | |
| 588 | - | w.Part1 = pv |
| 588 | + | |
| 589 | - | w.C0 = CFrame.new(0, -0.2, 0.38) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 589 | + | |
| 590 | - | w.C1 = CFrame.new() |
| 590 | + | |
| 591 | - | w.Parent = p |
| 591 | + | |
| 592 | - | else end |
| 592 | + | |
| 593 | - | local p = Instance.new("Part")
|
| 593 | + | |
| 594 | - | p.Name = "RearSight" |
| 594 | + | end) |
| 595 | - | p.formFactor = "Symmetric" |
| 595 | + | |
| 596 | - | p.Size = Vector3.new(1, 1, 1) |
| 596 | + | wait() |
| 597 | - | p.BrickColor = MC |
| 597 | + | |
| 598 | - | p.Reflectance = MR |
| 598 | + | |
| 599 | - | p.CanCollide = false |
| 599 | + | NoAnims=false |
| 600 | - | p.Locked = true |
| 600 | + | attack=false |
| 601 | - | p.TopSurface = 0 |
| 601 | + | |
| 602 | - | p.BottomSurface = 0 |
| 602 | + | end) |
| 603 | - | p.Parent = model |
| 603 | + | mouse.KeyDown:connect(function(key) |
| 604 | - | local m = Instance.new("BlockMesh")
|
| 604 | + | if key =="e" then |
| 605 | - | m.Scale = Vector3.new(0.1, 0.08, 0.08) |
| 605 | + | if attack==false and ammo > 0 then |
| 606 | - | m.Parent = p |
| 606 | + | ammo=ammo-1 |
| 607 | - | local w = Instance.new("Weld")
|
| 607 | + | if aiming==true then |
| 608 | - | w.Part0 = p |
| 608 | + | NoAnims=true |
| 609 | - | w.Part1 = pv |
| 609 | + | aiming=false |
| 610 | - | w.C0 = CFrame.new(0.44, 0.08, 0.28) |
| 610 | + | attack=true |
| 611 | - | w.C1 = CFrame.new() |
| 611 | + | local cf=la.CFrame*CFrame.new(0,0,5) |
| 612 | - | w.Parent = p |
| 612 | + | local cf2=cf |
| 613 | - | local p = Instance.new("Part")
|
| 613 | + | coroutine.wrap(function() |
| 614 | - | p.Name = "RearSight" |
| 614 | + | while rs:wait() do |
| 615 | - | p.formFactor = "Symmetric" |
| 615 | + | for i,v in pairs(fnt(cf2.p,rads))do |
| 616 | - | p.Size = Vector3.new(1, 1, 1) |
| 616 | + | if v:FindFirstChild("Humanoid") then
|
| 617 | - | p.BrickColor = MC |
| 617 | + | v.Humanoid:TakeDamage(math.random(6,9)) |
| 618 | - | p.Reflectance = MR |
| 618 | + | |
| 619 | - | p.CanCollide = false |
| 619 | + | |
| 620 | - | p.Locked = true |
| 620 | + | |
| 621 | - | p.TopSurface = 0 |
| 621 | + | end)() |
| 622 | - | p.BottomSurface = 0 |
| 622 | + | local pr2=pr:Clone() |
| 623 | - | p.Parent = model |
| 623 | + | pr2.Parent=pr.Parent |
| 624 | - | local m = Instance.new("BlockMesh")
|
| 624 | + | local s5=Instance.new("Sound",pr2)
|
| 625 | - | m.Scale = Vector3.new(0.1, 0.08, 0.08) |
| 625 | + | s5.SoundId="rbxassetid://135792520" |
| 626 | - | m.Parent = p |
| 626 | + | s5.Volume=1.3 |
| 627 | - | local w = Instance.new("Weld")
|
| 627 | + | s5.Pitch=1 |
| 628 | - | w.Part0 = p |
| 628 | + | s5.Looped=true |
| 629 | - | w.Part1 = pv |
| 629 | + | local st=Instance.new("Sound",la)
|
| 630 | - | w.C0 = CFrame.new(0.44, -0.08, 0.28) |
| 630 | + | st.Volume=3 |
| 631 | - | w.C1 = CFrame.new() |
| 631 | + | st.SoundId="rbxassetid://147685821" |
| 632 | - | w.Parent = p |
| 632 | + | st:Play() |
| 633 | - | local p = Instance.new("Part")
|
| 633 | + | s5:Play() |
| 634 | - | p.Name = "FrontSight" |
| 634 | + | pr2.Transparency=0 |
| 635 | - | p.formFactor = "Symmetric" |
| 635 | + | pr2.projectileweld:Destroy() |
| 636 | - | p.Size = Vector3.new(1, 1, 1) |
| 636 | + | pr2.CFrame=cf |
| 637 | - | p.BrickColor = MC |
| 637 | + | local g=Instance.new("BodyVelocity",pr2)
|
| 638 | - | p.Reflectance = MR |
| 638 | + | g.maxForce=Vector3.new(666,666,666) |
| 639 | - | p.CanCollide = false |
| 639 | + | pr2.CFrame=CFrame.new(cf.p,mouse.Hit.p) |
| 640 | - | p.Locked = true |
| 640 | + | g.velocity=pr2.CFrame.lookVector*65 |
| 641 | - | p.TopSurface = 0 |
| 641 | + | |
| 642 | - | p.BottomSurface = 0 |
| 642 | + | pr2.CFrame=pr2.CFrame*CFrame.Angles(90,0,math.pi) |
| 643 | - | p.Parent = model |
| 643 | + | |
| 644 | - | local m = Instance.new("BlockMesh")
|
| 644 | + | pr2.Touched:connect(function(hit) |
| 645 | - | m.Scale = Vector3.new(0.1, 0.08, 0.08) |
| 645 | + | if hit~=char and hit.Name~="projectile" then |
| 646 | - | m.Parent = p |
| 646 | + | cf=CFrame.new(pr2.CFrame.p) |
| 647 | - | local w = Instance.new("Weld")
|
| 647 | + | for i,v in pairs(fnt(pr2.CFrame.p,range))do |
| 648 | - | w.Part0 = p |
| 648 | + | if v:FindFirstChild("Humanoid") then
|
| 649 | - | w.Part1 = pv |
| 649 | + | if v.Torso.Anchored==false then |
| 650 | - | w.C0 = CFrame.new(-0.58, 0, 0.28) |
| 650 | + | v.Torso.Velocity=v.Torso.CFrame.lookVector*500 |
| 651 | - | w.C1 = CFrame.new() |
| 651 | + | |
| 652 | - | w.Parent = p |
| 652 | + | v.Humanoid:TakeDamage(math.random(mindmg,maxdmg)) |
| 653 | - | local p = Instance.new("Part")
|
| 653 | + | |
| 654 | - | p.Name = "Cylinder" |
| 654 | + | |
| 655 | - | p.formFactor = "Symmetric" |
| 655 | + | for i,v in pairs(fnp(pr2.CFrame.p,range))do |
| 656 | - | p.Size = Vector3.new(1, 1, 1) |
| 656 | + | if v.Anchored==false then |
| 657 | - | p.BrickColor = MC |
| 657 | + | v.Velocity=pr2.CFrame.lookVector*pushforce |
| 658 | - | p.Reflectance = MR |
| 658 | + | |
| 659 | - | p.CanCollide = false |
| 659 | + | v.BrickColor=BrickColor.new("Really black")
|
| 660 | - | p.Locked = true |
| 660 | + | v.Material="Slate" |
| 661 | - | p.TopSurface = 0 |
| 661 | + | local f=Instance.new("Fire",v)
|
| 662 | - | p.BottomSurface = 0 |
| 662 | + | f.Heat=25 |
| 663 | - | p.Parent = model |
| 663 | + | f.Size=8 |
| 664 | - | local m = Instance.new("CylinderMesh")
|
| 664 | + | f.Color=BrickColor.new("Lime green").Color
|
| 665 | - | m.Scale = Vector3.new(0.29, 0.32, 0.29) |
| 665 | + | f.SecondaryColor=BrickColor.new("Lime Green").Color
|
| 666 | - | m.Parent = p |
| 666 | + | coroutine.wrap(function() |
| 667 | - | local w = Instance.new("Weld")
|
| 667 | + | while rs:wait() do |
| 668 | - | w.Part0 = p |
| 668 | + | for i,v in pairs(fnt(v.CFrame.p,rads))do |
| 669 | - | w.Part1 = pv |
| 669 | + | if v:FindFirstChild("Humanoid") then
|
| 670 | - | w.C0 = CFrame.new(0, 0.23, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 670 | + | v.Humanoid:TakeDamage(math.random(2,4)) |
| 671 | - | w.C1 = CFrame.new() |
| 671 | + | |
| 672 | - | w.Parent = p |
| 672 | + | |
| 673 | - | local p = Instance.new("Part")
|
| 673 | + | |
| 674 | - | p.Name = "Pin" |
| 674 | + | end)() |
| 675 | - | p.formFactor = "Symmetric" |
| 675 | + | |
| 676 | - | p.Size = Vector3.new(1, 1, 1) |
| 676 | + | |
| 677 | - | p.BrickColor = BrickColor.new("New Yeller")
|
| 677 | + | pr2:Destroy() |
| 678 | - | p.Reflectance = MR |
| 678 | + | local e1=Instance.new("Part",char)
|
| 679 | - | p.CanCollide = false |
| 679 | + | e1.Name="Explode" |
| 680 | - | p.Locked = true |
| 680 | + | e1.Size=Vector3.new(1,1,1) |
| 681 | - | p.TopSurface = 0 |
| 681 | + | e1.CanCollide=false |
| 682 | - | p.BottomSurface = 0 |
| 682 | + | e1.Anchored=true |
| 683 | - | p.Parent = model |
| 683 | + | e1.Material="Neon" |
| 684 | - | local m = Instance.new("CylinderMesh")
|
| 684 | + | e1.CFrame=cf |
| 685 | - | m.Scale = Vector3.new(0.06, 0.46, 0.06) |
| 685 | + | e1.BrickColor=BrickColor.new("New Yeller")
|
| 686 | - | m.Parent = p |
| 686 | + | |
| 687 | - | local w = Instance.new("Weld")
|
| 687 | + | local em1=Instance.new("SpecialMesh",e1)
|
| 688 | - | w.Part0 = p |
| 688 | + | em1.MeshType="Sphere" |
| 689 | - | w.Part1 = pv |
| 689 | + | em1.Scale=Vector3.new(5,2.5,5) |
| 690 | - | w.C0 = CFrame.new(0, 0.23, 0.1) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) |
| 690 | + | |
| 691 | - | w.C1 = CFrame.new() |
| 691 | + | local e2=e1:Clone() |
| 692 | - | w.Parent = p |
| 692 | + | e2.Parent=e1 |
| 693 | - | local p = Instance.new("Part")
|
| 693 | + | local em2=e2.Mesh |
| 694 | - | if silenced == false then |
| 694 | + | em2.Scale=Vector3.new(2.5,6,2.5) |
| 695 | - | p.Name = "Muzzle" |
| 695 | + | |
| 696 | - | else |
| 696 | + | local e3=e1:Clone() |
| 697 | - | p.Name = "Muzzle 2" |
| 697 | + | e3.Parent=e1 |
| 698 | e3.CFrame=e2.CFrame*CFrame.new(0,e2.Size.Y/2.1,0) | |
| 699 | - | p.formFactor = "Symmetric" |
| 699 | + | local em3=e3.Mesh |
| 700 | - | p.Size = Vector3.new(1, 1, 1) |
| 700 | + | em3.Scale=Vector3.new(2.5,6,2.5) |
| 701 | - | p.BrickColor = BrickColor.new("Lime green")
|
| 701 | + | |
| 702 | - | p.Reflectance = 0.06 |
| 702 | + | local e4=e1:Clone() |
| 703 | - | p.CanCollide = false |
| 703 | + | e4.Parent=e1 |
| 704 | - | p.Transparency = 1 |
| 704 | + | e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0) |
| 705 | - | p.Locked = true |
| 705 | + | local em4=e4.Mesh |
| 706 | - | p.TopSurface = 0 |
| 706 | + | em4.MeshId="rbxassetid://3270017" |
| 707 | - | p.BottomSurface = 0 |
| 707 | + | em4.Scale=Vector3.new(6,6,0.000001) |
| 708 | - | p.Parent = model |
| 708 | + | |
| 709 | - | local m = Instance.new("CylinderMesh")
|
| 709 | + | local e5=e4:Clone() |
| 710 | - | m.Scale = Vector3.new(0.5, 0.1, 0.5) |
| 710 | + | e5.Parent=e4 |
| 711 | - | m.Offset = Vector3.new(0, 0, 0) |
| 711 | + | e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 712 | - | m.Parent = p |
| 712 | + | local em5=e5.Mesh |
| 713 | - | local w = Instance.new("Weld")
|
| 713 | + | em5.Scale=Vector3.new(6,6,6) |
| 714 | - | w.Part0 = p |
| 714 | + | |
| 715 | - | w.Part1 = pv |
| 715 | + | local e6=e5:Clone() |
| 716 | - | w.C0 = CFrame.new(0, 0.8, 0.18) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-90)) |
| 716 | + | e6.Parent=e5 |
| 717 | - | w.C1 = CFrame.new() |
| 717 | + | e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 718 | - | w.Parent = p |
| 718 | + | local em6=e6.Mesh |
| 719 | - | local s = Instance.new("Smoke")
|
| 719 | + | em6.Scale=Vector3.new(6,6,6) |
| 720 | - | s.Enabled = false |
| 720 | + | |
| 721 | - | s.Name = "Smoke" |
| 721 | + | local e7=e5:Clone() |
| 722 | - | s.RiseVelocity = -5 |
| 722 | + | e7.Parent=e5 |
| 723 | - | s.Opacity = 0.3 |
| 723 | + | e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 724 | - | s.Color = Color3.new(75 / 225, 75 / 225, 75 / 225) |
| 724 | + | local em7=e7.Mesh |
| 725 | - | s.Size = 1 |
| 725 | + | em7.Scale=Vector3.new(6,6,0.1) |
| 726 | - | s.Parent = p |
| 726 | + | |
| 727 | - | local f = Instance.new("Fire")
|
| 727 | + | local e8=e5:Clone() |
| 728 | - | f.Enabled = false |
| 728 | + | e8.Parent=e5 |
| 729 | - | f.Name = "Fire" |
| 729 | + | e8.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 730 | - | f.Heat = -35 |
| 730 | + | local em8=e8.Mesh |
| 731 | - | f.Size = 1 |
| 731 | + | em8.MeshId="rbxassetid://9982590" |
| 732 | - | f.Parent = p |
| 732 | + | em8.Scale=Vector3.new(3,3,3) |
| 733 | - | return model |
| 733 | + | |
| 734 | local e9=e5:Clone() | |
| 735 | e9.Parent=e5 | |
| 736 | e9.CFrame=cf*CFrame.Angles(math.rad(0),0,0) | |
| 737 | - | function removeParts(format) |
| 737 | + | local em9=e9.Mesh |
| 738 | - | if format == "RightHand" then |
| 738 | + | em9.MeshId="rbxassetid://20329976" |
| 739 | - | pcall(function() Player.Character[Name]:Remove() end) |
| 739 | + | em9.Scale=Vector3.new(6,6,6) |
| 740 | - | elseif format == "LeftHand" then |
| 740 | + | |
| 741 | - | pcall(function() Player.Character[Name.. " (Left)"]:Remove() end) |
| 741 | + | local e0=e5:Clone() |
| 742 | - | elseif format == "RightHolster" then |
| 742 | + | e0.Parent=e5 |
| 743 | - | pcall(function() Player.Character[Name.. " (Holstered)"]:Remove() end) |
| 743 | + | e0.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 744 | - | elseif format == "LeftHolster" then |
| 744 | + | local em0=e0.Mesh |
| 745 | - | pcall(function() Player.Character[Name.. " (Holstered, Left)"]:Remove() end) |
| 745 | + | em0.MeshId="rbxassetid://20329976" |
| 746 | em0.Scale=Vector3.new(6,6,6) | |
| 747 | ||
| 748 | local e10=e5:Clone() | |
| 749 | e10.Parent=e5 | |
| 750 | - | function SetAngle(Joint, Angle, Character) |
| 750 | + | e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 751 | - | if Character == nil then return false end |
| 751 | + | e10.Shape="Ball" |
| 752 | - | local Joints = {
|
| 752 | + | e10.Size=Vector3.new(30,30,30) |
| 753 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 753 | + | |
| 754 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 754 | + | coroutine.wrap(function() |
| 755 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 755 | + | for i = 1, megatons do |
| 756 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 756 | + | em1.Scale=em1.Scale+Vector3.new(1,0.1,1) |
| 757 | - | } |
| 757 | + | em2.Scale=em2.Scale+Vector3.new(0.25,2,0.25) |
| 758 | - | if Joints[Joint] == nil then return false end |
| 758 | + | em3.Scale=em3.Scale+Vector3.new(0.75,0.15,0.75) |
| 759 | - | if Joint == 1 or Joint == 3 then |
| 759 | + | em4.Scale=em4.Scale+Vector3.new(0.75,0.75,0) |
| 760 | - | Joints[Joint].DesiredAngle = Angle |
| 760 | + | em5.Scale=em5.Scale+Vector3.new(0.75,0.75,0.75) |
| 761 | em6.Scale=em6.Scale+Vector3.new(1.5,1.5,0) | |
| 762 | - | if Joint == 2 or Joint == 4 then |
| 762 | + | em7.Scale=em7.Scale+Vector3.new(0.75,0.75,0) |
| 763 | - | Joints[Joint].DesiredAngle = -Angle |
| 763 | + | em8.Scale=em8.Scale+Vector3.new(0.15,0.15,0.15) |
| 764 | em9.Scale=em9.Scale+Vector3.new(1,0.15,1) | |
| 765 | em0.Scale=em0.Scale+Vector3.new(0.95,0.3,0.95) | |
| 766 | e10.Size=e10.Size+Vector3.new(1,1,1) | |
| 767 | e3.CFrame=e2.CFrame*CFrame.new(0,em2.Scale.Y/2,0) | |
| 768 | - | function ForceAngle(Joint, Angle, Character) |
| 768 | + | e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0) |
| 769 | - | if Character == nil then return false end |
| 769 | + | e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 770 | - | local Joints = {
|
| 770 | + | e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 771 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 771 | + | e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 772 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 772 | + | e8.CFrame=cf*CFrame.Angles(math.rad(r),r,r) |
| 773 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 773 | + | e9.CFrame=cf*CFrame.Angles(math.rad(0),r,0) |
| 774 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 774 | + | e0.CFrame=cf*CFrame.Angles(math.rad(0),-r,0) |
| 775 | - | } |
| 775 | + | e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 776 | - | if Joints[Joint] == nil then return false end |
| 776 | + | e1.Transparency=e1.Transparency+1/megatons |
| 777 | - | if Joint == 1 or Joint == 3 then |
| 777 | + | e2.Transparency=e2.Transparency+1/megatons |
| 778 | - | Joints[Joint].DesiredAngle = Angle |
| 778 | + | e3.Transparency=e3.Transparency+1/megatons |
| 779 | - | Joints[Joint].CurrentAngle = Angle |
| 779 | + | e4.Transparency=e4.Transparency+1/megatons |
| 780 | e5.Transparency=e5.Transparency+1/megatons | |
| 781 | - | if Joint == 2 or Joint == 4 then |
| 781 | + | e6.Transparency=e6.Transparency+1/megatons |
| 782 | - | Joints[Joint].DesiredAngle = -Angle |
| 782 | + | e7.Transparency=e7.Transparency+1/megatons |
| 783 | - | Joints[Joint].CurrentAngle = -Angle |
| 783 | + | e8.Transparency=e8.Transparency+1/megatons |
| 784 | e9.Transparency=e9.Transparency+1/megatons | |
| 785 | e0.Transparency=e0.Transparency+1/megatons | |
| 786 | e10.Transparency=e10.Transparency+1/megatons | |
| 787 | e1.Color=e1.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
| |
| 788 | - | function SetSpeed(Joint, Speed, Character) |
| 788 | + | e2.Color=e2.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 789 | - | if Character == nil then return false end |
| 789 | + | e3.Color=e3.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 790 | - | local Joints = {
|
| 790 | + | e4.Color=e4.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 791 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 791 | + | e5.Color=e5.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 792 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 792 | + | e6.Color=e6.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 793 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 793 | + | e7.Color=e7.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 794 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 794 | + | e8.Color=e8.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 795 | - | } |
| 795 | + | e9.Color=e9.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 796 | - | if Joints[Joint] == nil then return false end |
| 796 | + | e0.Color=e0.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 797 | - | Joints[Joint].MaxVelocity = Speed |
| 797 | + | e10.Color=e10.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 798 | rs:wait() | |
| 799 | end | |
| 800 | e1:Destroy() | |
| 801 | - | function DisableLimb(Limb, Character) |
| 801 | + | end)() |
| 802 | - | if Character == nil then return false end |
| 802 | + | |
| 803 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 803 | + | |
| 804 | - | local Joints = {
|
| 804 | + | end) |
| 805 | - | Character.Torso:FindFirstChild("Right Shoulder"),
|
| 805 | + | |
| 806 | - | Character.Torso:FindFirstChild("Left Shoulder"),
|
| 806 | + | for i = 1, 30 do |
| 807 | - | Character.Torso:FindFirstChild("Right Hip"),
|
| 807 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(20),0,0),0.25) |
| 808 | - | Character.Torso:FindFirstChild("Left Hip")
|
| 808 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-90),0,0),0.25) |
| 809 | - | } |
| 809 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(30),0,0),0.25) |
| 810 | - | local Limbs = {
|
| 810 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.6,-0.45)*CFrame.Angles(math.rad(140),0,-7),0.25) |
| 811 | - | Character:FindFirstChild("Right Arm"),
|
| 811 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.6,-0.1)*CFrame.Angles(math.rad(120),0,0),0.25) |
| 812 | - | Character:FindFirstChild("Left Arm"),
|
| 812 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25) |
| 813 | - | Character:FindFirstChild("Right Leg"),
|
| 813 | + | rs:wait() |
| 814 | - | Character:FindFirstChild("Left Leg")
|
| 814 | + | |
| 815 | - | } |
| 815 | + | NoAnims=false |
| 816 | - | if Joints[Limb] == nil then return false end |
| 816 | + | attack=false |
| 817 | - | if Limbs[Limb] == nil then return false end |
| 817 | + | hum.WalkSpeed=normal |
| 818 | - | local Joint = Instance.new("Motor")
|
| 818 | + | |
| 819 | - | Joint.Parent = Character.Torso |
| 819 | + | |
| 820 | - | Joint.Part0 = Character.Torso |
| 820 | + | |
| 821 | - | Joint.Part1 = Limbs[Limb] |
| 821 | + | |
| 822 | - | if Limb == 1 then |
| 822 | + | |
| 823 | - | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 823 | + | |
| 824 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 824 | + | |
| 825 | - | Joint.Name = "Right Shoulder 2" |
| 825 | + | |
| 826 | - | elseif Limb == 2 then |
| 826 | + | elseif aiming==false then |
| 827 | - | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 827 | + | |
| 828 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 828 | + | |
| 829 | - | Joint.Name = "Left Shoulder 2" |
| 829 | + | |
| 830 | - | elseif Limb == 3 then |
| 830 | + | |
| 831 | - | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 831 | + | |
| 832 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 832 | + | |
| 833 | - | Joint.Name = "Right Hip 2" |
| 833 | + | |
| 834 | - | elseif Limb == 4 then |
| 834 | + | NoAnims=true |
| 835 | - | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 835 | + | attack=true |
| 836 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 836 | + | local cf=la.CFrame*CFrame.new(0,0,5) |
| 837 | - | Joint.Name = "Left Hip 2" |
| 837 | + | local cf2=cf |
| 838 | coroutine.wrap(function() | |
| 839 | - | Joint.MaxVelocity = Joints[Limb].MaxVelocity |
| 839 | + | while rs:wait() do |
| 840 | - | Joint.CurrentAngle = Joints[Limb].CurrentAngle |
| 840 | + | for i,v in pairs(fnt(cf2.p,rads))do |
| 841 | - | Joint.DesiredAngle = Joints[Limb].DesiredAngle |
| 841 | + | if v:FindFirstChild("Humanoid") then
|
| 842 | - | Joints[Limb]:Remove() |
| 842 | + | v.Humanoid:TakeDamage(math.random(6,9)) |
| 843 | end | |
| 844 | end | |
| 845 | end | |
| 846 | - | function ResetLimbCFrame(Limb, Character) |
| 846 | + | end)() |
| 847 | - | if Character == nil then return false end |
| 847 | + | local pr2=pr:Clone() |
| 848 | - | if Character.Parent == nil then return false end |
| 848 | + | pr2.Parent=pr.Parent |
| 849 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 849 | + | local s5=Instance.new("Sound",pr2)
|
| 850 | - | local Joints = {
|
| 850 | + | s5.SoundId="rbxassetid://135792520" |
| 851 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 851 | + | s5.Volume=1.3 |
| 852 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 852 | + | s5.Pitch=1 |
| 853 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 853 | + | s5.Looped=true |
| 854 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 854 | + | local st=Instance.new("Sound",la)
|
| 855 | - | } |
| 855 | + | st.Volume=3 |
| 856 | - | local Limbs = {
|
| 856 | + | st.SoundId="rbxassetid://147685821" |
| 857 | - | Character:FindFirstChild("Right Arm"),
|
| 857 | + | st:Play() |
| 858 | - | Character:FindFirstChild("Left Arm"),
|
| 858 | + | s5:Play() |
| 859 | - | Character:FindFirstChild("Right Leg"),
|
| 859 | + | pr2.Transparency=0 |
| 860 | - | Character:FindFirstChild("Left Leg")
|
| 860 | + | pr2.projectileweld:Destroy() |
| 861 | - | } |
| 861 | + | pr2.CFrame=cf |
| 862 | - | if Joints[Limb] == nil then return false end |
| 862 | + | local g=Instance.new("BodyVelocity",pr2)
|
| 863 | - | if Limbs[Limb] == nil then return false end |
| 863 | + | g.maxForce=Vector3.new(666,666,666) |
| 864 | - | if Limb == 1 then |
| 864 | + | pr2.CFrame=CFrame.new(cf.p,mouse.Hit.p) |
| 865 | - | Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 865 | + | g.velocity=pr2.CFrame.lookVector*65 |
| 866 | - | Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 866 | + | |
| 867 | - | elseif Limb == 2 then |
| 867 | + | pr2.CFrame=pr2.CFrame*CFrame.Angles(90,0,math.pi) |
| 868 | - | Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 868 | + | |
| 869 | - | Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 869 | + | pr2.Touched:connect(function(hit) |
| 870 | - | elseif Limb == 3 then |
| 870 | + | if hit~=char and hit.Name~="projectile" then |
| 871 | - | Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 871 | + | cf=CFrame.new(pr2.CFrame.p) |
| 872 | - | Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 872 | + | for i,v in pairs(fnt(pr2.CFrame.p,range))do |
| 873 | - | elseif Limb == 4 then |
| 873 | + | if v:FindFirstChild("Humanoid") then
|
| 874 | - | Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 874 | + | if v.Torso.Anchored==false then |
| 875 | - | Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 875 | + | v.Torso.Velocity=v.Torso.CFrame.lookVector*500 |
| 876 | end | |
| 877 | v.Humanoid:TakeDamage(math.random(mindmg,maxdmg)) | |
| 878 | end | |
| 879 | end | |
| 880 | - | function EnableLimb(Limb, Character) |
| 880 | + | for i,v in pairs(fnp(pr2.CFrame.p,range))do |
| 881 | - | if Character == nil then return false end |
| 881 | + | if v.Anchored==false then |
| 882 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 882 | + | v.Velocity=pr2.CFrame.lookVector*pushforce |
| 883 | - | local Joints = {
|
| 883 | + | |
| 884 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 884 | + | v.BrickColor=BrickColor.new("Really black")
|
| 885 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 885 | + | v.Material="Slate" |
| 886 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 886 | + | local f=Instance.new("Fire",v)
|
| 887 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 887 | + | f.Heat=25 |
| 888 | - | } |
| 888 | + | f.Size=8 |
| 889 | - | local Limbs = {
|
| 889 | + | f.Color=BrickColor.new("Lime green").Color
|
| 890 | - | Character:FindFirstChild("Right Arm"),
|
| 890 | + | f.SecondaryColor=BrickColor.new("Lime Green").Color
|
| 891 | - | Character:FindFirstChild("Left Arm"),
|
| 891 | + | coroutine.wrap(function() |
| 892 | - | Character:FindFirstChild("Right Leg"),
|
| 892 | + | while rs:wait() do |
| 893 | - | Character:FindFirstChild("Left Leg")
|
| 893 | + | for i,v in pairs(fnt(v.CFrame.p,rads))do |
| 894 | - | } |
| 894 | + | if v:FindFirstChild("Humanoid") then
|
| 895 | - | if Joints[Limb] == nil then return false end |
| 895 | + | v.Humanoid:TakeDamage(math.random(2,4)) |
| 896 | - | if Limbs[Limb] == nil then return false end |
| 896 | + | |
| 897 | - | if Limb == 1 then |
| 897 | + | |
| 898 | - | Joints[Limb].Name = "Right Shoulder" |
| 898 | + | |
| 899 | - | elseif Limb == 2 then |
| 899 | + | end)() |
| 900 | - | Joints[Limb].Name = "Left Shoulder" |
| 900 | + | |
| 901 | - | elseif Limb == 3 then |
| 901 | + | |
| 902 | - | Joints[Limb].Name = "Right Hip" |
| 902 | + | pr2:Destroy() |
| 903 | - | elseif Limb == 4 then |
| 903 | + | local e1=Instance.new("Part",char)
|
| 904 | - | Joints[Limb].Name = "Left Hip" |
| 904 | + | e1.Name="Explode" |
| 905 | e1.Size=Vector3.new(1,1,1) | |
| 906 | - | Animate = Character:FindFirstChild("Animate")
|
| 906 | + | e1.CanCollide=false |
| 907 | - | if Animate == nil then return false end |
| 907 | + | e1.Anchored=true |
| 908 | - | Animate = Animate:Clone() |
| 908 | + | e1.Material="Neon" |
| 909 | - | Character.Animate:Remove() |
| 909 | + | e1.CFrame=cf |
| 910 | - | Animate.Parent = Character |
| 910 | + | e1.BrickColor=BrickColor.new("New Yeller")
|
| 911 | ||
| 912 | local em1=Instance.new("SpecialMesh",e1)
| |
| 913 | em1.MeshType="Sphere" | |
| 914 | - | function playAnimation(format, mouse) |
| 914 | + | em1.Scale=Vector3.new(5,2.5,5) |
| 915 | - | if format == "equip" then |
| 915 | + | |
| 916 | - | Player.Character[Name.. " (Holstered)"].Handle.Weld:Remove() |
| 916 | + | local e2=e1:Clone() |
| 917 | - | local w = Instance.new("Weld")
|
| 917 | + | e2.Parent=e1 |
| 918 | - | w.Part0 = Player.Character[Name.. " (Holstered)"].Handle |
| 918 | + | local em2=e2.Mesh |
| 919 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 919 | + | em2.Scale=Vector3.new(2.5,6,2.5) |
| 920 | - | w.C0 = CFrame.new(0, 1.2, 0.7) |
| 920 | + | |
| 921 | - | w.C1 = CFrame.new() |
| 921 | + | local e3=e1:Clone() |
| 922 | - | w.Parent = Player.Character[Name.. " (Holstered)"].Handle |
| 922 | + | e3.Parent=e1 |
| 923 | - | for i = 0.01, 1, 0.1 do |
| 923 | + | e3.CFrame=e2.CFrame*CFrame.new(0,e2.Size.Y/2.1,0) |
| 924 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 924 | + | local em3=e3.Mesh |
| 925 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 925 | + | em3.Scale=Vector3.new(2.5,6,2.5) |
| 926 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 926 | + | |
| 927 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((-0.55 * i) + (1.5 * (1 - i)), 0.75 * i, 0.35 * i) * CFrame.fromEulerAnglesXYZ(math.rad(315 + ((1 - i) * 50)), 0, math.rad(-90) * i) |
| 927 | + | local e4=e1:Clone() |
| 928 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 928 | + | e4.Parent=e1 |
| 929 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-1 * i) + (-1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 929 | + | e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0) |
| 930 | - | wait() |
| 930 | + | local em4=e4.Mesh |
| 931 | - | else return false end |
| 931 | + | em4.MeshId="rbxassetid://3270017" |
| 932 | - | else return false end |
| 932 | + | em4.Scale=Vector3.new(6,6,0.000001) |
| 933 | - | end |
| 933 | + | |
| 934 | - | return playAnimation("hold")
|
| 934 | + | local e5=e4:Clone() |
| 935 | e5.Parent=e4 | |
| 936 | - | if format == "rightEquip" then |
| 936 | + | e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 937 | - | Player.Character[Name.. " (Holstered)"].Handle.Weld:Remove() |
| 937 | + | local em5=e5.Mesh |
| 938 | - | local w = Instance.new("Weld")
|
| 938 | + | em5.Scale=Vector3.new(6,6,6) |
| 939 | - | w.Part0 = Player.Character[Name.. " (Holstered)"].Handle |
| 939 | + | |
| 940 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 940 | + | local e6=e5:Clone() |
| 941 | - | w.C0 = CFrame.new(0, 1.2, 0.7) |
| 941 | + | e6.Parent=e5 |
| 942 | - | w.C1 = CFrame.new() |
| 942 | + | e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 943 | - | w.Parent = Player.Character[Name.. " (Holstered)"].Handle |
| 943 | + | local em6=e6.Mesh |
| 944 | - | for i = 0.01, 1, 0.1 do |
| 944 | + | em6.Scale=Vector3.new(6,6,6) |
| 945 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 945 | + | |
| 946 | - | if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 946 | + | local e7=e5:Clone() |
| 947 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 947 | + | e7.Parent=e5 |
| 948 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-1 * i) + (-1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 948 | + | e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 949 | - | wait() |
| 949 | + | local em7=e7.Mesh |
| 950 | - | else return false end |
| 950 | + | em7.Scale=Vector3.new(6,6,0.1) |
| 951 | - | else return false end |
| 951 | + | |
| 952 | - | end |
| 952 | + | local e8=e5:Clone() |
| 953 | - | return playAnimation("rightHold")
|
| 953 | + | e8.Parent=e5 |
| 954 | e8.CFrame=cf*CFrame.Angles(math.rad(90),0,0) | |
| 955 | - | if format == "leftEquip" then |
| 955 | + | local em8=e8.Mesh |
| 956 | - | Player.Character[Name.. " (Holstered, Left)"].Handle.Weld:Remove() |
| 956 | + | em8.MeshId="rbxassetid://9982590" |
| 957 | - | local w = Instance.new("Weld")
|
| 957 | + | em8.Scale=Vector3.new(3,3,3) |
| 958 | - | w.Part0 = Player.Character[Name.. " (Holstered, Left)"].Handle |
| 958 | + | |
| 959 | - | w.Part1 = Player.Character:FindFirstChild("Left Arm")
|
| 959 | + | local e9=e5:Clone() |
| 960 | - | w.C0 = CFrame.new(0, 1.2, 0.7) |
| 960 | + | e9.Parent=e5 |
| 961 | - | w.C1 = CFrame.new() |
| 961 | + | e9.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 962 | - | w.Parent = Player.Character[Name.. " (Holstered, Left)"].Handle |
| 962 | + | local em9=e9.Mesh |
| 963 | - | for i = 0.01, 1, 0.1 do |
| 963 | + | em9.MeshId="rbxassetid://20329976" |
| 964 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 964 | + | em9.Scale=Vector3.new(6,6,6) |
| 965 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 965 | + | |
| 966 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 966 | + | local e0=e5:Clone() |
| 967 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((1 * i) + (1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(5 * i), 0) |
| 967 | + | e0.Parent=e5 |
| 968 | - | wait() |
| 968 | + | e0.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 969 | - | else return false end |
| 969 | + | local em0=e0.Mesh |
| 970 | - | else return false end |
| 970 | + | em0.MeshId="rbxassetid://20329976" |
| 971 | - | end |
| 971 | + | em0.Scale=Vector3.new(6,6,6) |
| 972 | - | return playAnimation("leftHold")
|
| 972 | + | |
| 973 | local e10=e5:Clone() | |
| 974 | - | if format == "unequip" then |
| 974 | + | e10.Parent=e5 |
| 975 | - | for i = 1, 0.01, -0.1 do |
| 975 | + | e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 976 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 976 | + | e10.Shape="Ball" |
| 977 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 977 | + | e10.Size=Vector3.new(30,30,30) |
| 978 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 978 | + | |
| 979 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((-0.55 * i) + (1.5 * (1 - i)), 0.75 * i, 0.35 * i) * CFrame.fromEulerAnglesXYZ(math.rad(315 + ((1 - i) * 50)), 0, math.rad(-90) * i) |
| 979 | + | coroutine.wrap(function() |
| 980 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 980 | + | for i = 1, megatons do |
| 981 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-1 * i) + (-1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 981 | + | em1.Scale=em1.Scale+Vector3.new(1,0.1,1) |
| 982 | - | wait() |
| 982 | + | em2.Scale=em2.Scale+Vector3.new(0.25,2,0.25) |
| 983 | - | else return false end |
| 983 | + | em3.Scale=em3.Scale+Vector3.new(0.75,0.15,0.75) |
| 984 | - | else return false end |
| 984 | + | em4.Scale=em4.Scale+Vector3.new(0.75,0.75,0) |
| 985 | - | end |
| 985 | + | em5.Scale=em5.Scale+Vector3.new(0.75,0.75,0.75) |
| 986 | - | return true |
| 986 | + | em6.Scale=em6.Scale+Vector3.new(1.5,1.5,0) |
| 987 | em7.Scale=em7.Scale+Vector3.new(0.75,0.75,0) | |
| 988 | - | if format == "leftUnequip" then |
| 988 | + | em8.Scale=em8.Scale+Vector3.new(0.15,0.15,0.15) |
| 989 | - | for i = 1, 0.01, -0.1 do |
| 989 | + | em9.Scale=em9.Scale+Vector3.new(1,0.15,1) |
| 990 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 990 | + | em0.Scale=em0.Scale+Vector3.new(0.95,0.3,0.95) |
| 991 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 991 | + | e10.Size=e10.Size+Vector3.new(1,1,1) |
| 992 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 992 | + | e3.CFrame=e2.CFrame*CFrame.new(0,em2.Scale.Y/2,0) |
| 993 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((1 * i) + (1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(5 * i), 0) |
| 993 | + | e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0) |
| 994 | - | wait() |
| 994 | + | e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 995 | - | else return false end |
| 995 | + | e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 996 | - | else return false end |
| 996 | + | e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0) |
| 997 | - | end |
| 997 | + | e8.CFrame=cf*CFrame.Angles(math.rad(r),r,r) |
| 998 | - | return true |
| 998 | + | e9.CFrame=cf*CFrame.Angles(math.rad(0),r,0) |
| 999 | e0.CFrame=cf*CFrame.Angles(math.rad(0),-r,0) | |
| 1000 | - | if format == "rightUnequip" then |
| 1000 | + | e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0) |
| 1001 | - | for i = 1, 0.01, -0.1 do |
| 1001 | + | e1.Transparency=e1.Transparency+1/megatons |
| 1002 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1002 | + | e2.Transparency=e2.Transparency+1/megatons |
| 1003 | - | if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1003 | + | e3.Transparency=e3.Transparency+1/megatons |
| 1004 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1004 | + | e4.Transparency=e4.Transparency+1/megatons |
| 1005 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-1 * i) + (-1.5 * (1 - i)), 0.5 * i, 0.6 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 1005 | + | e5.Transparency=e5.Transparency+1/megatons |
| 1006 | - | wait() |
| 1006 | + | e6.Transparency=e6.Transparency+1/megatons |
| 1007 | - | else return false end |
| 1007 | + | e7.Transparency=e7.Transparency+1/megatons |
| 1008 | - | else return false end |
| 1008 | + | e8.Transparency=e8.Transparency+1/megatons |
| 1009 | - | end |
| 1009 | + | e9.Transparency=e9.Transparency+1/megatons |
| 1010 | - | return true |
| 1010 | + | e0.Transparency=e0.Transparency+1/megatons |
| 1011 | e10.Transparency=e10.Transparency+1/megatons | |
| 1012 | - | if format == "hold" then |
| 1012 | + | e1.Color=e1.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1013 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1013 | + | e2.Color=e2.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1014 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1014 | + | e3.Color=e3.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1015 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 1015 | + | e4.Color=e4.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1016 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 0.75, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(315), 0, math.rad(-90)) |
| 1016 | + | e5.Color=e5.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1017 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1017 | + | e6.Color=e6.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1018 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0) |
| 1018 | + | e7.Color=e7.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1019 | - | else return false end |
| 1019 | + | e8.Color=e8.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1020 | - | else return false end |
| 1020 | + | e9.Color=e9.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1021 | e0.Color=e0.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
| |
| 1022 | - | if format == "rightHold" then |
| 1022 | + | e10.Color=e10.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
|
| 1023 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1023 | + | rs:wait() |
| 1024 | - | if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1024 | + | |
| 1025 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1025 | + | e1:Destroy() |
| 1026 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.7, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(-10)) |
| 1026 | + | end)() |
| 1027 | - | else return false end |
| 1027 | + | |
| 1028 | - | else return false end |
| 1028 | + | |
| 1029 | end) | |
| 1030 | - | if format == "leftHold" then |
| 1030 | + | torso.CFrame=torso.CFrame*CFrame.new(0,0,3) |
| 1031 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1031 | + | for i = 1, 30 do |
| 1032 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 1032 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 1033 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 1033 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,-0.1)*CFrame.Angles(math.rad(70),0,0.15),0.25) |
| 1034 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(0.7, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(10)) |
| 1034 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,-0.1)*CFrame.Angles(math.rad(70),0,-0.15),0.25) |
| 1035 | - | else return false end |
| 1035 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.6,-0.45)*CFrame.Angles(math.rad(160),0,-7),0.25) |
| 1036 | - | else return false end |
| 1036 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.6,-0.1)*CFrame.Angles(math.rad(140),0,0),0.25) |
| 1037 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25) | |
| 1038 | - | if format == "reload" then |
| 1038 | + | rs:wait() |
| 1039 | - | Player.Character[Name].Handle.Empty:Play() |
| 1039 | + | |
| 1040 | - | for i = 0, 25, 7.5 do |
| 1040 | + | NoAnims=false |
| 1041 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1041 | + | attack=false |
| 1042 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1042 | + | |
| 1043 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1043 | + | |
| 1044 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0) |
| 1044 | + | |
| 1045 | - | wait() |
| 1045 | + | |
| 1046 | - | else return false end |
| 1046 | + | end) |
| 1047 | - | else return false end |
| 1047 | + | |
| 1048 | - | end |
| 1048 | + | -----animations----- |
| 1049 | - | for i = 25, 0, -7.5 do |
| 1049 | + | mouse.KeyDown:connect(function(key) |
| 1050 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1050 | + | if key=="0" then |
| 1051 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1051 | + | char.Humanoid.WalkSpeed = run |
| 1052 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1052 | + | hed.Velocity=hed.CFrame.lookVector*100 |
| 1053 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0) |
| 1053 | + | end |
| 1054 | - | wait() |
| 1054 | + | end) |
| 1055 | - | else return false end |
| 1055 | + | mouse.KeyUp:connect(function(key) |
| 1056 | - | else return false end |
| 1056 | + | if key=="0" then |
| 1057 | - | end |
| 1057 | + | char.Humanoid.WalkSpeed = normal |
| 1058 | - | coroutine.wrap(function() |
| 1058 | + | end |
| 1059 | - | for i = 0, 90, 15 do |
| 1059 | + | end) |
| 1060 | - | pcall(function() Player.Character[Name].Pivot.Weld.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(i), 0) end) |
| 1060 | + | game:GetService("RunService").RenderStepped:connect(function()
|
| 1061 | - | wait() |
| 1061 | + | char.Humanoid.FreeFalling:connect(function(f) |
| 1062 | - | end |
| 1062 | + | if f then |
| 1063 | - | pcall(function() Player.Character[Name].Pivot.Weld.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) end) |
| 1063 | + | ffing = true |
| 1064 | - | for i = 1, Loaded do |
| 1064 | + | else |
| 1065 | - | Player.Character[Name].Handle.Switch:Play() |
| 1065 | + | ffing = false |
| 1066 | - | makeShell(Player.Character[Name]:FindFirstChild("Cylinder"))
|
| 1066 | + | |
| 1067 | - | Loaded = Loaded - 1 |
| 1067 | + | end) |
| 1068 | - | if magazine.Value ~= 0 then |
| 1068 | + | sine = sine + add |
| 1069 | - | magazine.Value = magazine.Value - 1 |
| 1069 | + | if ffing==true then |
| 1070 | - | updateGui() |
| 1070 | + | anim="jump" |
| 1071 | - | end |
| 1071 | + | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then |
| 1072 | - | wait(0.02) |
| 1072 | + | anim="idle" |
| 1073 | - | end |
| 1073 | + | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then |
| 1074 | - | end)() |
| 1074 | + | anim = "walk" |
| 1075 | - | CamShake(15, 50000) |
| 1075 | + | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then |
| 1076 | - | Player.Character[Name].Handle.Release:Play() |
| 1076 | + | anim = "run" |
| 1077 | - | --[[for i = 25, 0, -5 do |
| 1077 | + | |
| 1078 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1078 | + | |
| 1079 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1079 | + | if NoAnims==false then |
| 1080 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1080 | + | if anim=="idle" then |
| 1081 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1 + ((25 - i) / 30), 0.5, 0.6 + ((25 - i) / 25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90 + i), math.rad(-5), math.rad((25 * 2) - (i * 2))) |
| 1081 | + | add=0.5 |
| 1082 | - | wait() |
| 1082 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25) |
| 1083 | - | else return false end |
| 1083 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) |
| 1084 | - | else return false end |
| 1084 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) |
| 1085 | - | end |
| 1085 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/14)/20,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/14)/20,0,-7),0.25) |
| 1086 | - | for i = 25, 0, -5 do |
| 1086 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/14)/20,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25) |
| 1087 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1087 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25) |
| 1088 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1088 | + | w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25) |
| 1089 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1089 | + | |
| 1090 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1 + (i / 30), 0.5, 0.6 + (i / 25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), math.rad((25 * 2) - ((25 - i) * 2))) |
| 1090 | + | elseif anim=="walk" then |
| 1091 | - | wait() |
| 1091 | + | add=1 |
| 1092 | - | else return false end |
| 1092 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/3.5)/3,0)*CFrame.Angles(math.rad(-10),0,0),0.25) |
| 1093 | - | else return false end |
| 1093 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/14)/20,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/14)/20,0,-7),0.25) |
| 1094 | - | end |
| 1094 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/14)/20,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25) |
| 1095 | - | wait(0.18)--]] |
| 1095 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/7)/2,-0.15+-math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/7)/2,0,0.05),0.25) |
| 1096 | - | for i = 0, 35, 5 do |
| 1096 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/7)/2,-0.15+math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/7)/2,0,-0.05),0.25) |
| 1097 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1097 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),0.25) |
| 1098 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1098 | + | w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25) |
| 1099 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 1099 | + | |
| 1100 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-1, -0.4, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90 + i), math.rad(-5), 0) |
| 1100 | + | elseif anim=="run" then |
| 1101 | - | wait() |
| 1101 | + | add=1 |
| 1102 | - | else return false end |
| 1102 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/2)/3,0)*CFrame.Angles(math.rad(-37),0,0),0.05) |
| 1103 | - | else return false end |
| 1103 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/4)/2,-0.15+-math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/4)/2,0,0.05),0.25) |
| 1104 | - | end |
| 1104 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/4)/2,-0.15+math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/4)/2,0,-0.05),0.25) |
| 1105 | - | wait(0.2) |
| 1105 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,-6),0.25) |
| 1106 | - | if ammo.Value >= 6 then |
| 1106 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,6),0.25) |
| 1107 | - | for i = 1, 6 do |
| 1107 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),0,0),0.25) |
| 1108 | - | for i = 5, 0, -1 do |
| 1108 | + | w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/14,0,0),0.25) |
| 1109 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 1109 | + | |
| 1110 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 1110 | + | elseif anim=="jump" then |
| 1111 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 1111 | + | add=1 |
| 1112 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 0.85, 0.84) * CFrame.fromEulerAnglesXYZ(math.rad(315 + (i * 1.5)), math.rad(i * 4), math.rad(-90)) |
| 1112 | + | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,0),0.05) |
| 1113 | - | wait() |
| 1113 | + | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25) |
| 1114 | - | else return false end |
| 1114 | + | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25) |
| 1115 | - | else return false end |
| 1115 | + | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25) |
| 1116 | - | end |
| 1116 | + | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25) |
| 1117 | - | Player.Character[Name].Handle.Reload:Play() |
| 1117 | + | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25) |
| 1118 | - | ammo.Value = ammo.Value - 1 |
| 1118 | + | w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90),0,0),0.25) |
| 1119 | - | magazine.Value = magazine.Value + 1 |
| 1119 | + | |
| 1120 | - | Loaded = Loaded + 1 |
| 1120 | + | |
| 1121 | - | updateGui() |
| 1121 | + | |
| 1122 | - | wait(0.1) |
| 1122 | + | |
| 1123 | - | end |
| 1123 | + | end) |