SHOW:
|
|
- or go back to the newest paste.
1 | - | --MADE BY OneLegend (NOT THE SCRIPT) Thanks to CyberFromLU for letting me Publish! REGULAR SCRIPT: Go to line 3 and 1607 put your name where it says "YOUR NAME HERE" |
1 | + | User = game.Players.prince90906 |
2 | - | ------------------------------------------------------------------- |
2 | + | |
3 | - | Player = script:FindFirstChild("Player") ~= nil and script.Player.Value or game:GetService("Players"):FindFirstChild("prince90906") --Replace my name with yours for the RPG to work. |
3 | + | Char = User.Character |
4 | - | Name = "prince90906" --Sets name of the RPG. |
4 | + | --Char.Humanoid.MaxHealth = math.huge |
5 | - | selected = true |
5 | + | User = game.Players.kash5 |
6 | - | canDual = false |
6 | + | Char = User.Character |
7 | - | dual = false |
7 | + | PrimaryColor = "Institutional white" |
8 | - | Button1Down = false |
8 | + | SecondaryColor = "Pastel light blue" |
9 | - | damage = 100 --Sets damage also. |
9 | + | ThirdColor = "Medium blue" |
10 | - | canFire = true |
10 | + | SkinColor = "Cool yellow" |
11 | - | canFire2 = false |
11 | + | |
12 | - | readyTime = 0.5 |
12 | + | for i,v in pairs(Char:GetChildren()) do |
13 | - | automatic = false |
13 | + | if v:IsA("CharacterMesh") then |
14 | - | burst = false |
14 | + | v:Remove() |
15 | - | burstCount = 0 |
15 | + | elseif v.Name == "Shirt" then |
16 | - | burstCountMax = 3 |
16 | + | v:Remove() |
17 | - | canSilence = false |
17 | + | elseif v.Name == "Pants" then |
18 | - | silenced = false |
18 | + | elseif v.Name == "Torso" then |
19 | - | canZoom = true |
19 | + | if v:FindFirstChild("roblox") then |
20 | - | zoom = false |
20 | + | v.roblox:Remove() |
21 | - | switchToSingle = true |
21 | + | end |
22 | - | switchToBurst = true |
22 | + | |
23 | - | switchToAutomatic = false |
23 | + | |
24 | - | |
24 | + | elseif v:IsA("Hat") then |
25 | - | |
25 | + | v:Remove() |
26 | - | ammoGui = Instance.new("ScreenGui") |
26 | + | elseif v.Name == "Head" then |
27 | - | ammoGui.Name = Name |
27 | + | v.BrickColor = BrickColor.new(SkinColor) |
28 | - | local frame = Instance.new("Frame") |
28 | + | if v:FindFirstChild("face") ~= nil then |
29 | - | frame.Name = "Frame" |
29 | + | v.face:Remove() |
30 | - | frame.Size = UDim2.new(0, 165, 0, 60) |
30 | + | end |
31 | - | frame.Position = UDim2.new(0, 0, 1, -60) |
31 | + | |
32 | - | frame.BackgroundColor3 = Color3.new(1, 1, 1) |
32 | + | end |
33 | - | frame.BorderColor3 = Color3.new(0, 0, 0) |
33 | + | |
34 | - | frame.Parent = ammoGui |
34 | + | |
35 | - | local label = Instance.new("TextLabel") |
35 | + | |
36 | - | label.Name = "Weapon" |
36 | + | local h = Instance.new("Part",Char) |
37 | - | label.Text = "Weapon: " ..Name |
37 | + | h.Name = "Hood" |
38 | - | label.Size = UDim2.new(1, 0, 0, 20) |
38 | + | h.formFactor = "Custom" |
39 | - | label.Position = UDim2.new(0, 0, 0, 0) |
39 | + | h.Size = Vector3.new(1,1,1) |
40 | - | label.BackgroundColor3 = Color3.new(1, 0, 0) |
40 | + | h.TopSurface = 0 |
41 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
41 | + | h.Reflectance = 0 |
42 | - | label.Parent = frame |
42 | + | h.BottomSurface = 0 |
43 | - | local label = Instance.new("TextLabel") |
43 | + | h.Position = h.Parent.Head.Position |
44 | - | label.Name = "MagazinePrefix" |
44 | + | h.BrickColor = BrickColor.new(PrimaryColor) |
45 | - | label.Text = " Magazine:" |
45 | + | local x = Instance.new("Weld",h) |
46 | - | label.TextXAlignment = "Left" |
46 | + | x.Part0 = h |
47 | - | label.Size = UDim2.new(1, 0, 0, 20) |
47 | + | x.Part1 = Char:FindFirstChild("Head") |
48 | - | label.Position = UDim2.new(0, 0, 0, 20) |
48 | + | x.C0 = x.C0 + Vector3.new(0,-0.3,0) |
49 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
49 | + | local sp = Instance.new("SpecialMesh",h) |
50 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
50 | + | sp.MeshType = "FileMesh" |
51 | - | label.Parent = frame |
51 | + | sp.MeshId = "http://www.roblox.com/asset/?id=16952952" |
52 | - | local label = Instance.new("TextLabel") |
52 | + | |
53 | - | label.Name = "Magazine" |
53 | + | --torso |
54 | - | label.Text = "0/0" |
54 | + | prt1 = Instance.new("Part", Char) |
55 | - | label.TextXAlignment = "Right" |
55 | + | prt1.formFactor = "Symmetric" |
56 | - | label.Size = UDim2.new(1, 0, 0, 20) |
56 | + | prt1.Size = Vector3.new(1,1,1) |
57 | - | label.Position = UDim2.new(0, -10, 0, 20) |
57 | + | prt1.CanCollide = false |
58 | - | label.BackgroundTransparency = 1 |
58 | + | prt1.BrickColor = BrickColor.new(PrimaryColor) |
59 | - | label.BorderSizePixel = 0 |
59 | + | prt1.TopSurface = "Smooth" |
60 | - | label.Parent = frame |
60 | + | prt1.Transparency = 0 |
61 | - | local label = Instance.new("TextLabel") |
61 | + | prt1.BottomSurface = "Smooth" |
62 | - | label.Name = "AmmoPrefix" |
62 | + | prtM = Instance.new("BlockMesh", prt1) |
63 | - | label.Text = " Ammunition:" |
63 | + | prtM.Scale = Vector3.new(0.76,2.02,1.025) |
64 | - | label.TextXAlignment = "Left" |
64 | + | prt1:BreakJoints() |
65 | - | label.Size = UDim2.new(1, 0, 0, 20) |
65 | + | prtW = Instance.new("Weld", prt1) |
66 | - | label.Position = UDim2.new(0, 0, 0, 40) |
66 | + | prtW.Part0 = Char["Torso"] |
67 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
67 | + | prtW.Part1 = prt1 |
68 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
68 | + | prtW.C1 = CFrame.new(0.625,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
69 | - | label.Parent = frame |
69 | + | |
70 | - | local label = Instance.new("TextLabel") |
70 | + | prt2 = Instance.new("Part", Char) |
71 | - | label.Name = "Ammo" |
71 | + | prt2.formFactor = "Symmetric" |
72 | - | label.Text = "0/0" |
72 | + | prt2.Size = Vector3.new(1,1,1) |
73 | - | label.TextXAlignment = "Right" |
73 | + | prt2.CanCollide = false |
74 | - | label.Size = UDim2.new(1, 0, 0, 20) |
74 | + | prt2.BrickColor = BrickColor.new(PrimaryColor) |
75 | - | label.Position = UDim2.new(0, -10, 0, 40) |
75 | + | prt2.TopSurface = "Smooth" |
76 | - | label.BackgroundTransparency = 1 |
76 | + | prt2.Transparency = 0 |
77 | - | label.BorderSizePixel = 0 |
77 | + | prt2.BottomSurface = "Smooth" |
78 | - | label.Parent = frame |
78 | + | prt2M = Instance.new("BlockMesh", prt2) |
79 | - | |
79 | + | prt2M.Scale = Vector3.new(0.76,2.02,1.025) |
80 | - | |
80 | + | prt2:BreakJoints() |
81 | - | function updateGui() |
81 | + | prt2W = Instance.new("Weld", prt2) |
82 | - | if selected == false then return end |
82 | + | prt2W.Part0 = Char["Torso"] |
83 | - | if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end |
83 | + | prt2W.Part1 = prt2 |
84 | - | if Player.PlayerGui:FindFirstChild(Name) == nil then |
84 | + | prt2W.C1 = CFrame.new(-0.625,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
85 | - | ammoGui:Clone().Parent = Player.PlayerGui |
85 | + | |
86 | - | end |
86 | + | prt3 = Instance.new("Part", Char) |
87 | - | Player.PlayerGui[Name].Frame.Magazine.Text = tostring(magazine.Value).. "/" ..tostring(magazineMax.Value) |
87 | + | prt3.formFactor = "Symmetric" |
88 | - | Player.PlayerGui[Name].Frame.Ammo.Text = tostring(ammo.Value).. "/" ..tostring(ammoMax.Value) |
88 | + | prt3.Size = Vector3.new(1,1,1) |
89 | prt3.CanCollide = false | |
90 | - | |
90 | + | prt3.BrickColor = BrickColor.new(SecondaryColor) |
91 | - | |
91 | + | prt3.TopSurface = "Smooth" |
92 | - | function makeParts(format) |
92 | + | prt3.Transparency = 0 |
93 | - | local model = Instance.new("Model") |
93 | + | prt3.BottomSurface = "Smooth" |
94 | - | model.Name = Name |
94 | + | prt3M = Instance.new("BlockMesh", prt3) |
95 | - | local pm = Instance.new("Part") |
95 | + | prt3M.Scale = Vector3.new(2,2.01,1.01) |
96 | - | pm.Name = "Handle" |
96 | + | prt3:BreakJoints() |
97 | - | pm.FormFactor = "Custom" |
97 | + | prt3W = Instance.new("Weld", prt3) |
98 | - | pm.Size = Vector3.new(1, 1, 1) |
98 | + | prt3W.Part0 = Char["Torso"] |
99 | - | pm.BrickColor = BrickColor.new("Black") |
99 | + | prt3W.Part1 = prt3 |
100 | - | pm.Locked = true |
100 | + | prt3W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
101 | - | pm.TopSurface = 0 |
101 | + | |
102 | - | pm.BottomSurface = 0 |
102 | + | |
103 | - | pm.Parent = model |
103 | + | _prt1 = Instance.new("Part", Char) |
104 | - | local m = Instance.new("CylinderMesh") |
104 | + | _prt1.formFactor = "Symmetric" |
105 | - | m.Scale = Vector3.new(0.35, 1.5, 0.35) |
105 | + | _prt1.Size = Vector3.new(1,1,1) |
106 | - | m.Parent = pm |
106 | + | _prt1.CanCollide = false |
107 | - | if format ~= nil then |
107 | + | _prt1.BrickColor = BrickColor.new(ThirdColor) |
108 | - | local w = Instance.new("Weld") |
108 | + | _prt1.TopSurface = "Smooth" |
109 | - | w.Part0 = pm |
109 | + | _prt1.Transparency = 0 |
110 | - | if format == "RightHand" then |
110 | + | _prt1.BottomSurface = "Smooth" |
111 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm") |
111 | + | _prt1M = Instance.new("BlockMesh", _prt1) |
112 | - | w.C0 = CFrame.new(0, 1.5, 0.75) |
112 | + | _prt1M.Scale = Vector3.new(0.1,2.03,1.03) |
113 | - | w.C1 = CFrame.new() |
113 | + | _prt1:BreakJoints() |
114 | - | elseif format == "RightHolster" then |
114 | + | _prt1W = Instance.new("Weld", _prt1) |
115 | - | w.Part1 = Player.Character:FindFirstChild("Torso") |
115 | + | _prt1W.Part0 = prt1 |
116 | - | w.C0 = CFrame.new(-0.65, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(185), math.rad(90), 0) |
116 | + | _prt1W.Part1 = _prt1 |
117 | - | w.C1 = CFrame.new() |
117 | + | _prt1W.C1 = CFrame.new(-0.15,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
118 | - | model.Name = Name.. " (Holstered)" |
118 | + | |
119 | - | end |
119 | + | _prt2 = Instance.new("Part", Char) |
120 | - | w.Parent = pm |
120 | + | _prt2.formFactor = "Symmetric" |
121 | - | model.Parent = Player.Character |
121 | + | _prt2.Size = Vector3.new(1,1,1) |
122 | - | end |
122 | + | _prt2.CanCollide = false |
123 | - | --[[ |
123 | + | _prt2.BrickColor = BrickColor.new(ThirdColor) |
124 | - | sniper1 http://www.roblox.com/Asset/?id=1868836 |
124 | + | _prt2.TopSurface = "Smooth" |
125 | - | equip http://www.roblox.com/Asset/?id=13510737 |
125 | + | _prt2.Transparency = 0 |
126 | - | fire1 http://www.roblox.com/Asset/?id=2760979 |
126 | + | _prt2.BottomSurface = "Smooth" |
127 | - | fire2 http://www.roblox.com/Asset/?id=13510352 |
127 | + | _prt2M = Instance.new("BlockMesh", _prt2) |
128 | - | fire3 http://www.roblox.com/Asset/?id=2692806 |
128 | + | _prt2M.Scale = Vector3.new(0.1,2.03,1.03) |
129 | - | fire4 http://www.roblox.com/Asset/?id=2691586 |
129 | + | _prt2:BreakJoints() |
130 | - | fire5 http://www.roblox.com/Asset/?id=2920959 |
130 | + | _prt2W = Instance.new("Weld", _prt2) |
131 | - | fire6 http://www.roblox.com/Asset/?id=2697431 |
131 | + | _prt2W.Part0 = prt2 |
132 | - | fire7 http://www.roblox.com/Asset/?id=2920959 |
132 | + | _prt2W.Part1 = _prt2 |
133 | - | reload1 http://www.roblox.com/Asset/?id=2691591 |
133 | + | _prt2W.C1 = CFrame.new(0.15,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
134 | - | reload2 http://www.roblox.com/Asset/?id=2697432 |
134 | + | |
135 | - | reload3 http://www.roblox.com/Asset/?id=2920960 |
135 | + | --legs |
136 | - | reload4 http://www.roblox.com/Asset/?id=2761842 |
136 | + | |
137 | - | shotgun1 http://www.roblox.com/Asset/?id=2697294 |
137 | + | prt4 = Instance.new("Part", Char) |
138 | - | --]] |
138 | + | prt4.formFactor = "Symmetric" |
139 | - | local s = Instance.new("Sound") |
139 | + | prt4.Size = Vector3.new(1,1,1) |
140 | - | s.Name = "Equip" |
140 | + | prt4.CanCollide = false |
141 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209881" |
141 | + | prt4.BrickColor = BrickColor.new(PrimaryColor) |
142 | - | s.Volume = 1 |
142 | + | prt4.TopSurface = "Smooth" |
143 | - | s.Pitch = 1 |
143 | + | prt4.Transparency = 0 |
144 | - | s.Looped = false |
144 | + | prt4.BottomSurface = "Smooth" |
145 | - | s.Parent = pm |
145 | + | prt4M = Instance.new("BlockMesh", prt4) |
146 | - | local s = Instance.new("Sound") |
146 | + | prt4M.Scale = Vector3.new(1.01,2.01,1.01) |
147 | - | s.Name = "Fire" |
147 | + | prt4:BreakJoints() |
148 | - | s.SoundId = "rbxasset://sounds/Shoulder fired rocket.wav" |
148 | + | prt4W = Instance.new("Weld", prt4) |
149 | - | s.Volume = 1 |
149 | + | prt4W.Part0 = Char["Right Leg"] |
150 | - | s.Pitch = 1.25 |
150 | + | prt4W.Part1 = prt4 |
151 | - | s.Looped = false |
151 | + | prt4W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
152 | - | s.Parent = pm |
152 | + | |
153 | - | local s = Instance.new("Sound") |
153 | + | prt5 = Instance.new("Part", Char) |
154 | - | s.Name = "Reload" |
154 | + | prt5.formFactor = "Symmetric" |
155 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2691591" |
155 | + | prt5.Size = Vector3.new(1,1,1) |
156 | - | s.Volume = 1 |
156 | + | prt5.CanCollide = false |
157 | - | s.Pitch = 1.25 |
157 | + | prt5.BrickColor = BrickColor.new(PrimaryColor) |
158 | - | s.Looped = false |
158 | + | prt5.TopSurface = "Smooth" |
159 | - | s.Parent = pm |
159 | + | prt5.Transparency = 0 |
160 | - | local s = Instance.new("Sound") |
160 | + | prt5.BottomSurface = "Smooth" |
161 | - | s.Name = "Empty" |
161 | + | prt5M = Instance.new("BlockMesh", prt5) |
162 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2697295" |
162 | + | prt5M.Scale = Vector3.new(1.01,2.01,1.01) |
163 | - | s.Volume = 1 |
163 | + | prt5:BreakJoints() |
164 | - | s.Pitch = 5 |
164 | + | prt5W = Instance.new("Weld", prt5) |
165 | - | s.Looped = false |
165 | + | prt5W.Part0 = Char["Left Leg"] |
166 | - | s.Parent = pm |
166 | + | prt5W.Part1 = prt5 |
167 | - | local s = Instance.new("Sound") |
167 | + | prt5W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
168 | - | s.Name = "Switch" |
168 | + | |
169 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2697295" |
169 | + | prt6 = Instance.new("Part", Char) |
170 | - | s.Volume = 1 |
170 | + | prt6.formFactor = "Symmetric" |
171 | - | s.Pitch = 10 |
171 | + | prt6.Size = Vector3.new(1,1,1) |
172 | - | s.Looped = false |
172 | + | prt6.CanCollide = false |
173 | - | s.Parent = pm |
173 | + | prt6.BrickColor = BrickColor.new(PrimaryColor) |
174 | - | local p = Instance.new("Part") |
174 | + | prt6.TopSurface = "Smooth" |
175 | - | p.Name = "Grip / Trigger Housing" |
175 | + | prt6.Transparency = 0 |
176 | - | p.FormFactor = "Custom" |
176 | + | prt6.BottomSurface = "Smooth" |
177 | - | p.Size = Vector3.new(1, 1, 1) |
177 | + | prt6M = Instance.new("BlockMesh", prt6) |
178 | - | p.BrickColor = BrickColor.new("Black") |
178 | + | prt6M.Scale = Vector3.new(1.01,2.01,1.01) |
179 | - | p.Locked = true |
179 | + | prt6:BreakJoints() |
180 | - | p.TopSurface = 0 |
180 | + | prt6W = Instance.new("Weld", prt6) |
181 | - | p.BottomSurface = 0 |
181 | + | prt6W.Part0 = Char["Right Leg"] |
182 | - | p.Parent = model |
182 | + | prt6W.Part1 = prt6 |
183 | - | local m = Instance.new("SpecialMesh") |
183 | + | prt6W.C1 = CFrame.new(-0.25,0.05,0)*CFrame.Angles(math.rad(0),0,math.rad(-15)) |
184 | - | m.MeshType = "Brick" |
184 | + | |
185 | - | m.Scale = Vector3.new(0.29, 0.75, 0.1) |
185 | + | prt7 = Instance.new("Part", Char) |
186 | - | m.Parent = p |
186 | + | prt7.formFactor = "Symmetric" |
187 | - | local w = Instance.new("Weld") |
187 | + | prt7.Size = Vector3.new(1,1,1) |
188 | - | w.Part0 = p |
188 | + | prt7.CanCollide = false |
189 | - | w.Part1 = pm |
189 | + | prt7.BrickColor = BrickColor.new(PrimaryColor) |
190 | - | w.C0 = CFrame.new(0, -0.2, -0.15) |
190 | + | prt7.TopSurface = "Smooth" |
191 | - | w.C1 = CFrame.new() |
191 | + | prt7.Transparency = 0 |
192 | - | w.Parent = p |
192 | + | prt7.BottomSurface = "Smooth" |
193 | - | local p = Instance.new("Part") |
193 | + | prt7M = Instance.new("BlockMesh", prt7) |
194 | - | p.Name = "Grip 1" |
194 | + | prt7M.Scale = Vector3.new(1.01,2.01,1.01) |
195 | - | p.FormFactor = "Custom" |
195 | + | prt7:BreakJoints() |
196 | - | p.Size = Vector3.new(1, 1, 1) |
196 | + | prt7W = Instance.new("Weld", prt7) |
197 | - | p.BrickColor = BrickColor.new("Black") |
197 | + | prt7W.Part0 = Char["Left Leg"] |
198 | - | p.Locked = true |
198 | + | prt7W.Part1 = prt7 |
199 | - | p.TopSurface = 0 |
199 | + | prt7W.C1 = CFrame.new(0.25,0.05,0)*CFrame.Angles(math.rad(0),0,math.rad(15)) |
200 | - | p.BottomSurface = 0 |
200 | + | |
201 | - | p.Parent = model |
201 | + | |
202 | - | local m = Instance.new("SpecialMesh") |
202 | + | _prt3 = Instance.new("Part", Char) |
203 | - | m.MeshType = "Brick" |
203 | + | _prt3.formFactor = "Symmetric" |
204 | - | m.Scale = Vector3.new(0.29, 0.35, 0.9) |
204 | + | _prt3.Size = Vector3.new(1,1,1) |
205 | - | m.Parent = p |
205 | + | _prt3.CanCollide = false |
206 | - | local w = Instance.new("Weld") |
206 | + | _prt3.BrickColor = BrickColor.new(ThirdColor) |
207 | - | w.Part0 = p |
207 | + | _prt3.TopSurface = "Smooth" |
208 | - | w.Part1 = pm |
208 | + | _prt3.Transparency = 0 |
209 | - | w.C0 = CFrame.new(0, -0.4, -0.65) |
209 | + | _prt3.BottomSurface = "Smooth" |
210 | - | w.C1 = CFrame.new() |
210 | + | _prt3M = Instance.new("BlockMesh", _prt3) |
211 | - | w.Parent = p |
211 | + | _prt3M.Scale = Vector3.new(0.1,2.03,1.03) |
212 | - | local p = Instance.new("Part") |
212 | + | _prt3:BreakJoints() |
213 | - | p.Name = "Grip 2" |
213 | + | _prt3W = Instance.new("Weld", _prt3) |
214 | - | p.FormFactor = "Custom" |
214 | + | _prt3W.Part0 = prt6 |
215 | - | p.Size = Vector3.new(1, 1, 1) |
215 | + | _prt3W.Part1 = _prt3 |
216 | - | p.BrickColor = BrickColor.new("Reddish brown") |
216 | + | _prt3W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
217 | - | p.Material = "Wood" |
217 | + | |
218 | - | p.Locked = true |
218 | + | _prt4 = Instance.new("Part", Char) |
219 | - | p.TopSurface = 0 |
219 | + | _prt4.formFactor = "Symmetric" |
220 | - | p.BottomSurface = 0 |
220 | + | _prt4.Size = Vector3.new(1,1,1) |
221 | - | p.Parent = model |
221 | + | _prt4.CanCollide = false |
222 | - | local m = Instance.new("SpecialMesh") |
222 | + | _prt4.BrickColor = BrickColor.new(ThirdColor) |
223 | - | m.MeshType = "Brick" |
223 | + | _prt4.TopSurface = "Smooth" |
224 | - | m.Scale = Vector3.new(0.29, 0.35, 0.8) |
224 | + | _prt4.Transparency = 0 |
225 | - | m.Parent = p |
225 | + | _prt4.BottomSurface = "Smooth" |
226 | - | local w = Instance.new("Weld") |
226 | + | _prt4M = Instance.new("BlockMesh", _prt4) |
227 | - | w.Part0 = p |
227 | + | _prt4M.Scale = Vector3.new(0.1,2.03,1.03) |
228 | - | w.Part1 = pm |
228 | + | _prt4:BreakJoints() |
229 | - | w.C0 = CFrame.new(0, -1.1, -0.575) |
229 | + | _prt4W = Instance.new("Weld", _prt4) |
230 | - | w.C1 = CFrame.new() |
230 | + | _prt4W.Part0 = prt7 |
231 | - | w.Parent = p |
231 | + | _prt4W.Part1 = _prt4 |
232 | - | local p = Instance.new("Part") |
232 | + | _prt4W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
233 | - | p.Name = "Trigger Housing 1" |
233 | + | --arms |
234 | - | p.FormFactor = "Custom" |
234 | + | |
235 | - | p.Size = Vector3.new(1, 1, 1) |
235 | + | prt8 = Instance.new("Part", Char) |
236 | - | p.BrickColor = BrickColor.new("Black") |
236 | + | prt8.formFactor = "Symmetric" |
237 | - | p.Locked = true |
237 | + | prt8.Size = Vector3.new(1,1,1) |
238 | - | p.TopSurface = 0 |
238 | + | prt8.CanCollide = false |
239 | - | p.BottomSurface = 0 |
239 | + | prt8.BrickColor = BrickColor.new(PrimaryColor) |
240 | - | p.Parent = model |
240 | + | prt8.TopSurface = "Smooth" |
241 | - | local m = Instance.new("SpecialMesh") |
241 | + | prt8.Transparency = 0 |
242 | - | m.MeshType = "Brick" |
242 | + | prt8.BottomSurface = "Smooth" |
243 | - | m.Scale = Vector3.new(0.1, 0.25, 0.025) |
243 | + | prt8M = Instance.new("BlockMesh", prt8) |
244 | - | m.Parent = p |
244 | + | prt8M.Scale = Vector3.new(1.01,2.01,1.01) |
245 | - | local w = Instance.new("Weld") |
245 | + | prt8:BreakJoints() |
246 | - | w.Part0 = p |
246 | + | prt8W = Instance.new("Weld", prt8) |
247 | - | w.Part1 = pm |
247 | + | prt8W.Part0 = Char["Right Arm"] |
248 | - | w.C0 = CFrame.new(0, -0.1, -0.5) |
248 | + | prt8W.Part1 = prt8 |
249 | - | w.C1 = CFrame.new() |
249 | + | prt8W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
250 | - | w.Parent = p |
250 | + | |
251 | - | local p = Instance.new("Part") |
251 | + | prt9 = Instance.new("Part", Char) |
252 | - | p.Name = "Trigger Housing 2" |
252 | + | prt9.formFactor = "Symmetric" |
253 | - | p.FormFactor = "Custom" |
253 | + | prt9.Size = Vector3.new(1,1,1) |
254 | - | p.Size = Vector3.new(1, 1, 1) |
254 | + | prt9.CanCollide = false |
255 | - | p.BrickColor = BrickColor.new("Black") |
255 | + | prt9.BrickColor = BrickColor.new(PrimaryColor) |
256 | - | p.Locked = true |
256 | + | prt9.TopSurface = "Smooth" |
257 | - | p.TopSurface = 0 |
257 | + | prt9.Transparency = 0 |
258 | - | p.BottomSurface = 0 |
258 | + | prt9.BottomSurface = "Smooth" |
259 | - | p.Parent = model |
259 | + | prt9M = Instance.new("BlockMesh", prt9) |
260 | - | local m = Instance.new("SpecialMesh") |
260 | + | prt9M.Scale = Vector3.new(1.01,2.01,1.01) |
261 | - | m.MeshType = "Brick" |
261 | + | prt9:BreakJoints() |
262 | - | m.Scale = Vector3.new(0.1, 0.025, 0.3) |
262 | + | prt9W = Instance.new("Weld", prt9) |
263 | - | m.Parent = p |
263 | + | prt9W.Part0 = Char["Left Arm"] |
264 | - | local w = Instance.new("Weld") |
264 | + | prt9W.Part1 = prt9 |
265 | - | w.Part0 = p |
265 | + | prt9W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
266 | - | w.Part1 = pm |
266 | + | |
267 | - | w.C0 = CFrame.new(0, 0.01, -0.35) |
267 | + | function debris(part) |
268 | - | w.C1 = CFrame.new() |
268 | + | delay(0, function() |
269 | - | w.Parent = p |
269 | + | repeat wait(0.5) |
270 | - | local p = Instance.new("Part") |
270 | + | |
271 | - | p.Name = "Trigger" |
271 | + | local deb = Instance.new("Part", part) |
272 | - | p.FormFactor = "Custom" |
272 | + | deb.Size = Vector3.new(1,1,1) |
273 | - | p.Size = Vector3.new(1, 1, 1) |
273 | + | deb.CanCollide = false |
274 | - | p.BrickColor = BrickColor.new("Black") |
274 | + | deb.BrickColor = BrickColor.new("White") |
275 | - | p.Locked = true |
275 | + | deb.TopSurface = "Smooth" |
276 | - | p.TopSurface = 0 |
276 | + | deb.Transparency = 0 |
277 | - | p.BottomSurface = 0 |
277 | + | deb.Anchored = true |
278 | - | p.Parent = model |
278 | + | deb.BottomSurface = "Smooth" |
279 | - | local m = Instance.new("SpecialMesh") |
279 | + | local debM = Instance.new("BlockMesh", flakef) |
280 | - | m.MeshType = "Brick" |
280 | + | debM.Scale = Vector3.new(math.random(1,10)/10,math.random(1,10)/10,math.random(1,10)/10) |
281 | - | m.Scale = Vector3.new(0.1, 0.05, 0.15) |
281 | + | deb:BreakJoints() |
282 | - | m.Parent = p |
282 | + | deb.CFrame = part.CFrame + Vector3.new(math.random(-50,50)/10,math.random(-50,50)/10,math.random(-50,50)/10) |
283 | - | local w = Instance.new("Weld") |
283 | + | |
284 | - | w.Part0 = p |
284 | + | for i = 1,10 do |
285 | - | w.Part1 = pm |
285 | + | deb.CFrame = deb.CFrame + Vector3.new(0,1,0) |
286 | - | w.C0 = CFrame.new(0, -0.11, -0.275) |
286 | + | deb.CFrame = deb.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) |
287 | - | w.C1 = CFrame.new() |
287 | + | deb.Transparency = deb.Transparency + 0.1 |
288 | - | w.Parent = p |
288 | + | wait() |
289 | - | local p = Instance.new("Part") |
289 | + | |
290 | - | p.Name = "Center 1" |
290 | + | |
291 | - | p.FormFactor = "Custom" |
291 | + | until part.Parent ~= workspace |
292 | - | p.Size = Vector3.new(1, 1, 1) |
292 | + | end) |
293 | - | p.BrickColor = BrickColor.new("Black") |
293 | + | |
294 | - | p.Locked = true |
294 | + | |
295 | - | p.TopSurface = 0 |
295 | + | cen = Instance.new("Part", User.Character) |
296 | - | p.BottomSurface = 0 |
296 | + | cen.BottomSurface = "Smooth" |
297 | - | p.Parent = model |
297 | + | cen.TopSurface = "Smooth" |
298 | - | local m = Instance.new("CylinderMesh") |
298 | + | cen.CanCollide = false |
299 | - | m.Scale = Vector3.new(0.4, 0.5, 0.4) |
299 | + | cen.formFactor = "Symmetric" |
300 | - | m.Parent = p |
300 | + | cen.Size = Vector3.new(1,1,1) |
301 | - | local w = Instance.new("Weld") |
301 | + | cen.BrickColor = BrickColor.new("Really black") |
302 | - | w.Part0 = p |
302 | + | cen.Transparency = 1 |
303 | - | w.Part1 = pm |
303 | + | cen2 = Instance.new("Part", User.Character) |
304 | - | w.C0 = CFrame.new(0, -1, 0) |
304 | + | cen2.BottomSurface = "Smooth" |
305 | - | w.C1 = CFrame.new() |
305 | + | cen2.TopSurface = "Smooth" |
306 | - | w.Parent = p |
306 | + | cen2.CanCollide = false |
307 | - | local p = Instance.new("Part") |
307 | + | cen2.formFactor = "Symmetric" |
308 | - | p.Name = "Center 2" |
308 | + | cen2.Size = Vector3.new(1,1,1) |
309 | - | p.FormFactor = "Custom" |
309 | + | cen2.BrickColor = BrickColor.new("Really black") |
310 | - | p.Size = Vector3.new(1, 1, 1) |
310 | + | cen2.Transparency = 1 |
311 | - | p.BrickColor = BrickColor.new("Reddish brown") |
311 | + | |
312 | - | p.Material = "Wood" |
312 | + | cenw = Instance.new("Weld", cen) |
313 | - | p.Locked = true |
313 | + | cenw.Part0 = Char["Torso"] |
314 | - | p.TopSurface = 0 |
314 | + | cenw.Part1 = cen |
315 | - | p.BottomSurface = 0 |
315 | + | cenw.C1 = CFrame.new(-1.5,-0.5,0) |
316 | - | p.Parent = model |
316 | + | |
317 | - | local m = Instance.new("CylinderMesh") |
317 | + | cenw2 = Instance.new("Weld", cen2) |
318 | - | m.Scale = Vector3.new(0.45, 1, 0.45) |
318 | + | cenw2.Part0 = Char["Torso"] |
319 | - | m.Parent = p |
319 | + | cenw2.Part1 = cen2 |
320 | - | local w = Instance.new("Weld") |
320 | + | cenw2.C1 = CFrame.new(1.5,-0.5,0) |
321 | - | w.Part0 = p |
321 | + | |
322 | - | w.Part1 = pm |
322 | + | |
323 | - | w.C0 = CFrame.new(0, -1.75, 0) |
323 | + | |
324 | - | w.C1 = CFrame.new() |
324 | + | haw = Instance.new("Weld", cen) |
325 | - | w.Parent = p |
325 | + | haw.Part0 = cen |
326 | - | local p = Instance.new("Part") |
326 | + | haw.Part1 = Char["Right Arm"] |
327 | - | p.Name = "Center 3" |
327 | + | haw.C1 = CFrame.new(0,0.5,0) |
328 | - | p.FormFactor = "Custom" |
328 | + | |
329 | - | p.Size = Vector3.new(1, 1, 1) |
329 | + | haw2 = Instance.new("Weld", cen2) |
330 | - | p.BrickColor = BrickColor.new("Reddish brown") |
330 | + | haw2.Part0 = cen2 |
331 | - | p.Material = "Wood" |
331 | + | haw2.Part1 = Char["Left Arm"] |
332 | - | p.Locked = true |
332 | + | haw2.C1 = CFrame.new(0,0.5,0) |
333 | - | p.TopSurface = 0 |
333 | + | |
334 | - | p.BottomSurface = 0 |
334 | + | haw.Part1 = nil |
335 | - | p.Parent = model |
335 | + | haw2.Part1 = nil |
336 | - | local m = Instance.new("SpecialMesh") |
336 | + | |
337 | - | m.MeshType = "FileMesh" |
337 | + | -------------------------------------------- |
338 | - | m.MeshId = "http://www.roblox.com/Asset/?id=1778999" |
338 | + | function MoveOne() |
339 | - | m.Scale = Vector3.new(0.335, 0.45, 0.335) |
339 | + | haw.Part1 = Char["Right Arm"] |
340 | - | m.Parent = p |
340 | + | haw2.Part1 = Char["Left Arm"] |
341 | - | local w = Instance.new("Weld") |
341 | + | for i = 1,50,5 do |
342 | - | w.Part0 = p |
342 | + | haw.C0 = CFrame.Angles(math.rad(-i),0,0) |
343 | - | w.Part1 = pm |
343 | + | haw2.C0 = CFrame.Angles(math.rad(-i),0,0) |
344 | - | w.C0 = CFrame.new(0, -2.6225, 0) |
344 | + | wait() |
345 | - | w.C1 = CFrame.new() |
345 | + | |
346 | - | w.Parent = p |
346 | + | for i = 1,100,10 do |
347 | - | local p = Instance.new("Part") |
347 | + | haw.C0 = CFrame.Angles(math.rad(-45+i),0,0) |
348 | - | p.Name = "Center 4" |
348 | + | haw2.C0 = CFrame.Angles(math.rad(-45+i),0,0) |
349 | - | p.FormFactor = "Custom" |
349 | + | wait() |
350 | - | p.Size = Vector3.new(1, 1, 1) |
350 | + | |
351 | - | p.BrickColor = BrickColor.new("Reddish brown") |
351 | + | delay(0, function() |
352 | - | p.Material = "Wood" |
352 | + | for i = 1,50,5 do |
353 | - | p.Locked = true |
353 | + | haw.C0 = CFrame.Angles(math.rad(45-i),0,0) |
354 | - | p.TopSurface = 0 |
354 | + | haw2.C0 = CFrame.Angles(math.rad(45-i),0,0) |
355 | - | p.BottomSurface = 0 |
355 | + | wait() |
356 | - | p.Parent = model |
356 | + | |
357 | - | local m = Instance.new("CylinderMesh") |
357 | + | haw.Part1 = nil |
358 | - | m.Scale = Vector3.new(0.325, 1.25, 0.325) |
358 | + | haw2.Part1 = nil |
359 | - | m.Parent = p |
359 | + | end) |
360 | - | local w = Instance.new("Weld") |
360 | + | local ps = Char.Torso.CFrame |
361 | - | w.Part0 = p |
361 | + | local flakef = Instance.new("Part", Char) |
362 | - | w.Part1 = pm |
362 | + | flakef.Size = Vector3.new(5,5,5) |
363 | - | w.C0 = CFrame.new(0, -3, 0) |
363 | + | flakef.CanCollide = false |
364 | - | w.C1 = CFrame.new() |
364 | + | flakef.BrickColor = BrickColor.new("White") |
365 | - | w.Parent = p |
365 | + | flakef.TopSurface = "Smooth" |
366 | - | local p = Instance.new("Part") |
366 | + | flakef.Transparency = 0.5 |
367 | - | p.Name = "End 1" |
367 | + | flakef.Anchored = true |
368 | - | p.FormFactor = "Custom" |
368 | + | flakef.BottomSurface = "Smooth" |
369 | - | p.Size = Vector3.new(1, 1, 1) |
369 | + | local flakeMf = Instance.new("SpecialMesh", flakef) |
370 | - | p.BrickColor = BrickColor.new("Black") |
370 | + | flakeMf.MeshType = "FileMesh" |
371 | - | p.CanCollide = false |
371 | + | flakeMf.Scale = Vector3.new(5,5,5) |
372 | - | p.Locked = true |
372 | + | flakeMf.MeshId = "http://www.roblox.com/asset/?id=20329976" |
373 | - | p.TopSurface = 0 |
373 | + | flakef:BreakJoints() |
374 | - | p.BottomSurface = 0 |
374 | + | flakef.CFrame = (ps - Vector3.new(0,3,0)) + ps.lookVector*2 |
375 | - | p.Parent = model |
375 | + | |
376 | - | local m = Instance.new("CylinderMesh") |
376 | + | flakef.Touched:connect(function(hit) |
377 | - | m.Scale = Vector3.new(0.31, 0.1, 0.31) |
377 | + | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= User.Name then |
378 | - | m.Parent = p |
378 | + | hit.Parent:BreakJoints() |
379 | - | local w = Instance.new("Weld") |
379 | + | |
380 | - | w.Part0 = p |
380 | + | end) |
381 | - | w.Part1 = pm |
381 | + | |
382 | - | w.C0 = CFrame.new(0, -3.625, 0) |
382 | + | for i = 1,50 do |
383 | - | w.C1 = CFrame.new() |
383 | + | |
384 | - | w.Parent = p |
384 | + | flakef.CFrame = (ps - Vector3.new(0,3,0)) + ps.lookVector*(i*2) |
385 | - | local p = Instance.new("Part") |
385 | + | |
386 | - | p.Name = "End 2" |
386 | + | local gho = flakef:clone() |
387 | - | p.FormFactor = "Custom" |
387 | + | gho.Parent = Char |
388 | - | p.Size = Vector3.new(1, 1, 1) |
388 | + | gho.Anchored = true |
389 | - | p.BrickColor = BrickColor.new("Black") |
389 | + | gho.CFrame = flakef.CFrame |
390 | - | p.CanCollide = false |
390 | + | |
391 | - | p.Locked = true |
391 | + | delay(0,function() |
392 | - | p.TopSurface = 0 |
392 | + | for i = 1,10 do |
393 | - | p.BottomSurface = 0 |
393 | + | gho.Mesh.Scale = gho.Mesh.Scale + Vector3.new(0.1,0.1,0.1) |
394 | - | p.Parent = model |
394 | + | gho.Transparency = gho.Transparency + 0.05 |
395 | - | local m = Instance.new("SpecialMesh") |
395 | + | wait() |
396 | - | m.MeshType = "FileMesh" |
396 | + | |
397 | - | m.MeshId = "http://www.roblox.com/Asset/?id=1778999" |
397 | + | gho:Remove() |
398 | - | m.Scale = Vector3.new(0.425, 0.875, 0.425) |
398 | + | end) |
399 | - | m.Parent = p |
399 | + | wait() |
400 | - | local w = Instance.new("Weld") |
400 | + | |
401 | - | w.Part0 = p |
401 | + | local ring = flakef:clone() |
402 | - | w.Part1 = pm |
402 | + | ring.Parent = Char |
403 | - | w.C0 = CFrame.new(0, 3.61, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0) |
403 | + | ring.Anchored = true |
404 | - | w.C1 = CFrame.new() |
404 | + | ring.Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" |
405 | - | w.Parent = p |
405 | + | ring.CFrame = flakef.CFrame |
406 | - | local f = Instance.new("Fire") |
406 | + | ring.CFrame = ring.CFrame*CFrame.Angles(math.rad(90),0,0) |
407 | - | f.Enabled = false |
407 | + | for i = 1,10 do |
408 | - | f.Name = "Fire" |
408 | + | ring.Mesh.Scale = ring.Mesh.Scale + Vector3.new(5,5,5) |
409 | - | f.Color = Color3.new(1, 0.5, 0) |
409 | + | ring.Transparency = ring.Transparency + 0.05 |
410 | - | f.SecondaryColor = Color3.new(1, 0.75, 0.5) |
410 | + | flakef.Transparency = flakef.Transparency + 0.05 |
411 | - | f.Heat = -25 |
411 | + | flakef.Mesh.Scale = flakef.Mesh.Scale + Vector3.new(2,2,2) |
412 | - | f.Size = 5 |
412 | + | wait() |
413 | - | f.Parent = p |
413 | + | |
414 | - | local s = Instance.new("Smoke") |
414 | + | ring:Remove() |
415 | - | s.Enabled = false |
415 | + | flakef:Remove() |
416 | - | s.Name = "Smoke" |
416 | + | |
417 | - | s.Opacity = 0.5 |
417 | + | |
418 | - | s.Color = Color3.new(0.8, 0.8, 0.8) |
418 | + | |
419 | - | s.RiseVelocity = -10 |
419 | + | function HandCharge() |
420 | - | s.Size = 5 |
420 | + | haw.Part1 = Char["Right Arm"] |
421 | - | s.Parent = p |
421 | + | haw2.Part1 = Char["Left Arm"] |
422 | - | local p = Instance.new("Part") |
422 | + | |
423 | - | p.Name = "Muzzle" |
423 | + | for i = 1,130,5 do |
424 | - | p.FormFactor = "Custom" |
424 | + | haw.C0 = CFrame.Angles(0,0,math.rad(i)) |
425 | - | p.Size = Vector3.new(1, 1, 1) |
425 | + | haw2.C0 = CFrame.Angles(0,0,math.rad(-i)) |
426 | - | p.Transparency = 1 |
426 | + | wait() |
427 | - | p.CanCollide = false |
427 | + | |
428 | - | p.Locked = true |
428 | + | |
429 | - | p.Parent = model |
429 | + | local sph1 = Instance.new("Part", Char) |
430 | - | local w = Instance.new("Weld") |
430 | + | sph1.formFactor = "Symmetric" |
431 | - | w.Part0 = p |
431 | + | sph1.Size = Vector3.new(1,1,1) |
432 | - | w.Part1 = pm |
432 | + | sph1.CanCollide = false |
433 | - | w.C0 = CFrame.new(0, 0.26, 0) |
433 | + | sph1.BrickColor = BrickColor.new("White") |
434 | - | w.C1 = CFrame.new() |
434 | + | sph1.TopSurface = "Smooth" |
435 | - | w.Parent = p |
435 | + | sph1.Transparency = 0.5 |
436 | - | local f = Instance.new("Fire") |
436 | + | sph1.BottomSurface = "Smooth" |
437 | - | f.Enabled = false |
437 | + | local sphM = Instance.new("SpecialMesh", sph1) |
438 | - | f.Name = "Fire" |
438 | + | sphM.MeshType = "Sphere" |
439 | - | f.Color = Color3.new(1, 0.5, 0) |
439 | + | sphM.Scale = Vector3.new(2,2,2) |
440 | - | f.SecondaryColor = Color3.new(1, 0.75, 0.5) |
440 | + | sph1:BreakJoints() |
441 | - | f.Heat = -25 |
441 | + | local sphW = Instance.new("Weld", sph1) |
442 | - | f.Size = 2.5 |
442 | + | sphW.Part0 = Char["Right Arm"] |
443 | - | f.Parent = p |
443 | + | sphW.Part1 = sph1 |
444 | - | local s = Instance.new("Smoke") |
444 | + | sphW.C1 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
445 | - | s.Enabled = false |
445 | + | |
446 | - | s.Name = "Smoke" |
446 | + | local sph2 = Instance.new("Part", Char) |
447 | - | s.Opacity = 0.3 |
447 | + | sph2.formFactor = "Symmetric" |
448 | - | s.Color = Color3.new(0.8, 0.8, 0.8) |
448 | + | sph2.Size = Vector3.new(1,1,1) |
449 | - | s.RiseVelocity = -10 |
449 | + | sph2.CanCollide = false |
450 | - | s.Size = 2.5 |
450 | + | sph2.BrickColor = BrickColor.new("White") |
451 | - | s.Parent = p |
451 | + | sph2.TopSurface = "Smooth" |
452 | - | local pm2 = Instance.new("Part") |
452 | + | sph2.Transparency = 0.5 |
453 | - | if magazine.Value <= 0 then pm2.Transparency = 1 end |
453 | + | sph2.BottomSurface = "Smooth" |
454 | - | pm2.Name = "Projectile" |
454 | + | local sphM2 = Instance.new("SpecialMesh", sph2) |
455 | - | pm2.FormFactor = "Custom" |
455 | + | sphM2.MeshType = "Sphere" |
456 | - | pm2.Size = Vector3.new(1, 1, 1) |
456 | + | sphM2.Scale = Vector3.new(2,2,2) |
457 | - | pm2.BrickColor = BrickColor.new("Bright red") |
457 | + | sph2:BreakJoints() |
458 | - | pm2.CanCollide = false |
458 | + | local sphW2 = Instance.new("Weld", sph2) |
459 | - | pm2.Locked = true |
459 | + | sphW2.Part0 = Char["Left Arm"] |
460 | - | pm2.TopSurface = 0 |
460 | + | sphW2.Part1 = sph2 |
461 | - | pm2.BottomSurface = 0 |
461 | + | sphW2.C1 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
462 | - | pm2.Parent = model |
462 | + | |
463 | - | local m = Instance.new("CylinderMesh") |
463 | + | local sph3 = Instance.new("Part", Char) |
464 | - | m.Scale = Vector3.new(0.2, 1, 0.2) |
464 | + | sph3.formFactor = "Symmetric" |
465 | - | m.Parent = pm2 |
465 | + | sph3.Size = Vector3.new(1,1,1) |
466 | - | local w = Instance.new("Weld") |
466 | + | sph3.CanCollide = false |
467 | - | w.Part0 = pm2 |
467 | + | sph3.BrickColor = BrickColor.new("White") |
468 | - | w.Part1 = pm |
468 | + | sph3.TopSurface = "Smooth" |
469 | - | w.C0 = CFrame.new(0, 0.3, 0) |
469 | + | sph3.Transparency = 0.5 |
470 | - | w.C1 = CFrame.new() |
470 | + | sph3.BottomSurface = "Smooth" |
471 | - | w.Parent = pm2 |
471 | + | local sphM3 = Instance.new("BlockMesh", sph3) |
472 | - | local f = Instance.new("Fire") |
472 | + | sphM3.Scale = Vector3.new(.75,.75,.75) |
473 | - | f.Enabled = false |
473 | + | sph3:BreakJoints() |
474 | - | f.Name = "Fire" |
474 | + | local sphW3 = Instance.new("Weld", sph3) |
475 | - | f.Color = Color3.new(1, 0.5, 0) |
475 | + | sphW3.Part0 = sph1 |
476 | - | f.SecondaryColor = Color3.new(1, 0.75, 0.5) |
476 | + | sphW3.Part1 = sph3 |
477 | - | f.Heat = 25 |
477 | + | sphW3.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
478 | - | f.Size = 1 |
478 | + | |
479 | - | f.Parent = pm2 |
479 | + | local sph4 = Instance.new("Part", Char) |
480 | - | local s = Instance.new("Smoke") |
480 | + | sph4.formFactor = "Symmetric" |
481 | - | s.Enabled = false |
481 | + | sph4.Size = Vector3.new(1,1,1) |
482 | - | s.Name = "Smoke" |
482 | + | sph4.CanCollide = false |
483 | - | s.Opacity = 0.25 |
483 | + | sph4.BrickColor = BrickColor.new("White") |
484 | - | s.Color = Color3.new(0.8, 0.8, 0.8) |
484 | + | sph4.TopSurface = "Smooth" |
485 | - | s.RiseVelocity = 10 |
485 | + | sph4.Transparency = 0.5 |
486 | - | s.Size = 5 |
486 | + | sph4.BottomSurface = "Smooth" |
487 | - | s.Parent = pm2 |
487 | + | local sphM4 = Instance.new("BlockMesh", sph4) |
488 | - | local p = Instance.new("Part") |
488 | + | sphM4.Scale = Vector3.new(.75,.75,.75) |
489 | - | if magazine.Value <= 0 then p.Transparency = 1 end |
489 | + | sph4:BreakJoints() |
490 | - | p.Name = "Projectile Center 1" |
490 | + | local sphW4 = Instance.new("Weld", sph4) |
491 | - | p.FormFactor = "Custom" |
491 | + | sphW4.Part0 = sph2 |
492 | - | p.Size = Vector3.new(1, 1, 1) |
492 | + | sphW4.Part1 = sph4 |
493 | - | p.BrickColor = BrickColor.new("Bright red") |
493 | + | sphW4.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)) |
494 | - | p.CanCollide = false |
494 | + | |
495 | - | p.Locked = true |
495 | + | |
496 | - | p.TopSurface = 0 |
496 | + | delay(0, function() |
497 | - | p.BottomSurface = 0 |
497 | + | for i = 1,25 do |
498 | - | p.Parent = model |
498 | + | local new = Instance.new("Part", Char) |
499 | - | local m = Instance.new("SpecialMesh") |
499 | + | new.formFactor = "Symmetric" |
500 | - | m.MeshType = "FileMesh" |
500 | + | new.Size = Vector3.new(1,1,1) |
501 | - | m.MeshId = "http://www.roblox.com/Asset/?id=1033714" --http://www.roblox.com/Asset/?id=1778999 |
501 | + | new.CanCollide = false |
502 | - | m.Scale = Vector3.new(0.25, 1.25, 0.25) |
502 | + | new.BrickColor = BrickColor.new("White") |
503 | - | m.Parent = p |
503 | + | new.TopSurface = "Smooth" |
504 | - | local w = Instance.new("Weld") |
504 | + | new.Transparency = 1 |
505 | - | w.Part0 = p |
505 | + | new.BottomSurface = "Smooth" |
506 | - | w.Part1 = pm2 |
506 | + | local newM = Instance.new("SpecialMesh", new) |
507 | - | w.C0 = CFrame.new(0, 0.65, 0) |
507 | + | newM.MeshType = "Sphere" |
508 | - | w.C1 = CFrame.new() |
508 | + | newM.Scale = Vector3.new(0.5,2,0.5) |
509 | - | w.Parent = p |
509 | + | new:BreakJoints() |
510 | - | local p = Instance.new("Part") |
510 | + | local newW = Instance.new("Weld", new) |
511 | - | if magazine.Value <= 0 then p.Transparency = 1 end |
511 | + | newW.Part0 = sph1 |
512 | - | p.Name = "Projectile Center 2" |
512 | + | newW.Part1 = new |
513 | - | p.FormFactor = "Custom" |
513 | + | newW.C1 = CFrame.new(0,10,0)*CFrame.Angles(math.rad(math.random(1,360)),0,math.rad(math.random(1,360))) |
514 | - | p.Size = Vector3.new(1, 1, 1) |
514 | + | delay(0, function() |
515 | - | p.BrickColor = BrickColor.new("Bright red") |
515 | + | for i = 1,10 do |
516 | - | p.CanCollide = false |
516 | + | sphW4.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) |
517 | - | p.Locked = true |
517 | + | |
518 | - | p.TopSurface = 0 |
518 | + | newW.C1 = newW.C1 - Vector3.new(0,1,0) |
519 | - | p.BottomSurface = 0 |
519 | + | new.Transparency = new.Transparency - 0.05 |
520 | - | p.Parent = model |
520 | + | wait() |
521 | - | local m = Instance.new("SpecialMesh") |
521 | + | |
522 | - | m.MeshType = "FileMesh" |
522 | + | new:Remove() |
523 | - | m.MeshId = "http://www.roblox.com/Asset/?id=1033714" --http://www.roblox.com/Asset/?id=1778999 |
523 | + | end) |
524 | - | m.Scale = Vector3.new(0.25, 1.1, 0.25) |
524 | + | wait(0.2) |
525 | - | m.Parent = p |
525 | + | |
526 | - | local w = Instance.new("Weld") |
526 | + | end) |
527 | - | w.Part0 = p |
527 | + | |
528 | - | w.Part1 = pm2 |
528 | + | |
529 | - | w.C0 = CFrame.new(0, -1.53, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0) |
529 | + | for i = 1,25 do |
530 | - | w.C1 = CFrame.new() |
530 | + | local new = Instance.new("Part", Char) |
531 | - | w.Parent = p |
531 | + | new.formFactor = "Symmetric" |
532 | - | local p = Instance.new("Part") |
532 | + | new.Size = Vector3.new(1,1,1) |
533 | - | if magazine.Value <= 0 then p.Transparency = 1 end |
533 | + | new.CanCollide = false |
534 | - | p.Name = "Projectile Tip" |
534 | + | new.BrickColor = BrickColor.new("White") |
535 | - | p.FormFactor = "Custom" |
535 | + | new.TopSurface = "Smooth" |
536 | - | p.Size = Vector3.new(1, 1, 1) |
536 | + | new.Transparency = 1 |
537 | - | p.BrickColor = BrickColor.new("Bright red") |
537 | + | new.BottomSurface = "Smooth" |
538 | - | p.CanCollide = false |
538 | + | local newM = Instance.new("SpecialMesh", new) |
539 | - | p.Locked = true |
539 | + | newM.MeshType = "Sphere" |
540 | - | p.TopSurface = 0 |
540 | + | newM.Scale = Vector3.new(0.5,2,0.5) |
541 | - | p.BottomSurface = 0 |
541 | + | new:BreakJoints() |
542 | - | p.Parent = model |
542 | + | local newW = Instance.new("Weld", new) |
543 | - | local m = Instance.new("CylinderMesh") |
543 | + | newW.Part0 = sph2 |
544 | - | m.Scale = Vector3.new(0.1, 0.1, 0.1) |
544 | + | newW.Part1 = new |
545 | - | m.Parent = p |
545 | + | newW.C1 = CFrame.new(0,10,0)*CFrame.Angles(math.rad(math.random(1,360)),0,math.rad(math.random(1,360))) |
546 | - | local w = Instance.new("Weld") |
546 | + | |
547 | - | w.Part0 = p |
547 | + | new.Touched:connect(function(hit) |
548 | - | w.Part1 = pm2 |
548 | + | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= User.Name then |
549 | - | w.C0 = CFrame.new(0, 1.89, 0) |
549 | + | hit.Parent:BreakJoints() |
550 | - | w.C1 = CFrame.new() |
550 | + | |
551 | - | w.Parent = p |
551 | + | end) |
552 | - | return model |
552 | + | |
553 | delay(0, function() | |
554 | - | |
554 | + | for i = 1,10 do |
555 | - | |
555 | + | sphW3.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) |
556 | - | function removeParts(format) |
556 | + | newW.C1 = newW.C1 - Vector3.new(0,1,0) |
557 | - | if format == "RightHand" then |
557 | + | new.Transparency = new.Transparency - 0.05 |
558 | - | pcall(function() Player.Character[Name]:Remove() end) |
558 | + | wait() |
559 | - | elseif format == "LeftHand" then |
559 | + | |
560 | - | pcall(function() Player.Character[Name.. " (Left)"]:Remove() end) |
560 | + | new:Remove() |
561 | - | elseif format == "RightHolster" then |
561 | + | end) |
562 | - | pcall(function() Player.Character[Name.. " (Holstered)"]:Remove() end) |
562 | + | wait(0.2) |
563 | - | elseif format == "LeftHolster" then |
563 | + | |
564 | - | pcall(function() Player.Character[Name.. " (Holstered, Left)"]:Remove() end) |
564 | + | |
565 | - | end |
565 | + | delay(0, function() |
566 | for i = 1,50 do | |
567 | - | |
567 | + | sph1.Transparency = sph1.Transparency + 0.01 |
568 | - | |
568 | + | sphM.Scale = sphM.Scale + Vector3.new(0.1,0.1,0.1) |
569 | - | function SetAngle(Joint, Angle, Character) |
569 | + | sph2.Transparency = sph2.Transparency + 0.01 |
570 | - | if Character == nil then return false end |
570 | + | sphM2.Scale = sphM2.Scale + Vector3.new(0.1,0.1,0.1) |
571 | - | local Joints = { |
571 | + | sph3.Transparency = sph3.Transparency + 0.01 |
572 | - | Character.Torso:FindFirstChild("Right Shoulder 2"), |
572 | + | sphM3.Scale = sphM3.Scale + Vector3.new(0.05,0.05,0.05) |
573 | - | Character.Torso:FindFirstChild("Left Shoulder 2"), |
573 | + | sph4.Transparency = sph4.Transparency + 0.01 |
574 | - | Character.Torso:FindFirstChild("Right Hip 2"), |
574 | + | sphM4.Scale = sphM4.Scale + Vector3.new(0.05,0.05,0.05) |
575 | - | Character.Torso:FindFirstChild("Left Hip 2") |
575 | + | wait() |
576 | - | } |
576 | + | |
577 | - | if Joints[Joint] == nil then return false end |
577 | + | end) |
578 | - | if Joint == 1 or Joint == 3 then |
578 | + | |
579 | - | Joints[Joint].DesiredAngle = Angle |
579 | + | local tring = Instance.new("Part", Char) |
580 | - | end |
580 | + | tring.formFactor = "Symmetric" |
581 | - | if Joint == 2 or Joint == 4 then |
581 | + | tring.Size = Vector3.new(1,1,1) |
582 | - | Joints[Joint].DesiredAngle = -Angle |
582 | + | tring.CanCollide = false |
583 | - | end |
583 | + | tring.BrickColor = BrickColor.new("White") |
584 | tring.TopSurface = "Smooth" | |
585 | - | |
585 | + | tring.Transparency = 0.5 |
586 | - | |
586 | + | tring.BottomSurface = "Smooth" |
587 | - | function ForceAngle(Joint, Angle, Character) |
587 | + | local tringM = Instance.new("SpecialMesh", tring) |
588 | - | if Character == nil then return false end |
588 | + | tringM.MeshType = "FileMesh" |
589 | - | local Joints = { |
589 | + | tringM.MeshId = "http://www.roblox.com/asset/?id=3270017" |
590 | - | Character.Torso:FindFirstChild("Right Shoulder 2"), |
590 | + | tringM.Scale = Vector3.new(1,1,1) |
591 | - | Character.Torso:FindFirstChild("Left Shoulder 2"), |
591 | + | tring:BreakJoints() |
592 | - | Character.Torso:FindFirstChild("Right Hip 2"), |
592 | + | local tringW = Instance.new("Weld", tring) |
593 | - | Character.Torso:FindFirstChild("Left Hip 2") |
593 | + | tringW.Part0 = Char["Torso"] |
594 | - | } |
594 | + | tringW.Part1 = tring |
595 | - | if Joints[Joint] == nil then return false end |
595 | + | tringW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) |
596 | - | if Joint == 1 or Joint == 3 then |
596 | + | for i = 1,100 do |
597 | - | Joints[Joint].DesiredAngle = Angle |
597 | + | ag = i |
598 | - | Joints[Joint].CurrentAngle = Angle |
598 | + | tringM.Scale = Vector3.new(i,i,i) |
599 | - | end |
599 | + | tring.Transparency = tring.Transparency + 0.5/100 |
600 | - | if Joint == 2 or Joint == 4 then |
600 | + | |
601 | - | Joints[Joint].DesiredAngle = -Angle |
601 | + | delay(0, function() |
602 | - | Joints[Joint].CurrentAngle = -Angle |
602 | + | for i,v in pairs(workspace:GetChildren()) do |
603 | - | end |
603 | + | if v:FindFirstChild("Humanoid") and v.Name ~= User.Name and v:FindFirstChild("Head") and (v.Head.Position - Char.Head.Position).magntiude < ag/2 then |
604 | v:BreakJoints() | |
605 | - | |
605 | + | else |
606 | - | |
606 | + | |
607 | - | function SetSpeed(Joint, Speed, Character) |
607 | + | |
608 | - | if Character == nil then return false end |
608 | + | end) |
609 | - | local Joints = { |
609 | + | |
610 | - | Character.Torso:FindFirstChild("Right Shoulder 2"), |
610 | + | wait() |
611 | - | Character.Torso:FindFirstChild("Left Shoulder 2"), |
611 | + | |
612 | - | Character.Torso:FindFirstChild("Right Hip 2"), |
612 | + | tring:Remove() |
613 | - | Character.Torso:FindFirstChild("Left Hip 2") |
613 | + | |
614 | - | } |
614 | + | sph1:Remove() |
615 | - | if Joints[Joint] == nil then return false end |
615 | + | sph2:Remove() |
616 | - | Joints[Joint].MaxVelocity = Speed |
616 | + | sph3:Remove() |
617 | sph4:Remove() | |
618 | - | |
618 | + | |
619 | - | |
619 | + | for i = 1,130,5 do |
620 | - | function DisableLimb(Limb, Character) |
620 | + | haw.C0 = CFrame.Angles(0,0,math.rad(125-i)) |
621 | - | if Character == nil then return false end |
621 | + | haw2.C0 = CFrame.Angles(0,0,math.rad(-125+i)) |
622 | - | if Character:FindFirstChild("Torso") == nil then return false end |
622 | + | wait() |
623 | - | local Joints = { |
623 | + | |
624 | - | Character.Torso:FindFirstChild("Right Shoulder"), |
624 | + | haw.Part1 = nil |
625 | - | Character.Torso:FindFirstChild("Left Shoulder"), |
625 | + | haw2.Part1 = nil |
626 | - | Character.Torso:FindFirstChild("Right Hip"), |
626 | + | |
627 | - | Character.Torso:FindFirstChild("Left Hip") |
627 | + | -------------------------------------------- |
628 | - | } |
628 | + | local _ = false |
629 | - | local Limbs = { |
629 | + | if not script.Parent:IsA("HopperBin") then |
630 | - | Character:FindFirstChild("Right Arm"), |
630 | + | h = Instance.new("HopperBin", User.Backpack) |
631 | - | Character:FindFirstChild("Left Arm"), |
631 | + | h.Name = "watah" |
632 | - | Character:FindFirstChild("Right Leg"), |
632 | + | script.Parent = h |
633 | - | Character:FindFirstChild("Left Leg") |
633 | + | |
634 | - | } |
634 | + | |
635 | - | if Joints[Limb] == nil then return false end |
635 | + | |
636 | - | if Limbs[Limb] == nil then return false end |
636 | + | script.Parent.Selected:connect(function(mouse) |
637 | - | local Joint = Instance.new("Motor") |
637 | + | |
638 | - | Joint.Parent = Character.Torso |
638 | + | mouse.Button1Down:connect(function() |
639 | - | Joint.Part0 = Character.Torso |
639 | + | |
640 | - | Joint.Part1 = Limbs[Limb] |
640 | + | end) |
641 | - | if Limb == 1 then |
641 | + | |
642 | - | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
642 | + | mouse.KeyDown:connect(function(key) |
643 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
643 | + | if key == "q" and _ == false then |
644 | - | Joint.Name = "Right Shoulder 2" |
644 | + | _ = true |
645 | - | elseif Limb == 2 then |
645 | + | MoveOne() |
646 | - | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
646 | + | _ = false |
647 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
647 | + | elseif key == "e" and _ == false then |
648 | - | Joint.Name = "Left Shoulder 2" |
648 | + | _ = true |
649 | - | elseif Limb == 3 then |
649 | + | HandCharge() |
650 | - | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
650 | + | _ = false |
651 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
651 | + | |
652 | - | Joint.Name = "Right Hip 2" |
652 | + | end) |
653 | - | elseif Limb == 4 then |
653 | + | end) |
654 | - | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
654 | + | |
655 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
655 | + | script.Parent.Deselected:connect(function() |
656 | - | Joint.Name = "Left Hip 2" |
656 | + | |
657 | - | end |
657 | + | end) |