SHOW:
|
|
- or go back to the newest paste.
1 | - | me = game.Players.rockman5 |
1 | + | -- as always remove wolfwv from the name |
2 | - | char = me.Character |
2 | + | |
3 | - | Selected = false |
3 | + | tool = Instance.new("HopperBin") |
4 | - | Able = true |
4 | + | |
5 | - | Arrow = nil |
5 | + | |
6 | - | ArrowOn = false |
6 | + | |
7 | - | Hurt = false |
7 | + | player = game.Players.xJaffie |
8 | - | Deb = true |
8 | + | |
9 | - | Reloading = false |
9 | + | char = player.Character |
10 | - | Shooting = false |
10 | + | |
11 | - | Slashing = false |
11 | + | tool = Instance.new("HopperBin") |
12 | - | necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
12 | + | |
13 | - | EffectOn = false |
13 | + | tool.Parent = player.Backpack |
14 | - | Accuracy = 1 |
14 | + | |
15 | - | SelAnim = false |
15 | + | script.Parent = tool |
16 | - | DMG = 25 |
16 | + | |
17 | tool.Name = "Wand" | |
18 | - | LapaCol = "Really black" |
18 | + | |
19 | - | HandCol = "Really black" |
19 | + | |
20 | - | MiddleCol = "Really black" |
20 | + | |
21 | - | ViiniCol = "Really black" |
21 | + | spin = false |
22 | ||
23 | - | Icon = "http://www.roblox.com/asset/?id=51902588" |
23 | + | |
24 | ||
25 | - | Keys = { |
25 | + | landc = "Earth green" |
26 | - | e = false, |
26 | + | |
27 | - | } |
27 | + | firec = "Bright red" |
28 | ||
29 | - | ModelName = "Epic Bow" |
29 | + | icec = "Light blue" |
30 | ||
31 | - | CA = CFrame.Angles |
31 | + | windc = "Institutional white" |
32 | - | CN = CFrame.new |
32 | + | |
33 | - | MR = math.rad |
33 | + | helthc = "Lime green" |
34 | - | MP = math.pi |
34 | + | |
35 | - | MRA = math.random |
35 | + | elec = "New Yeller" |
36 | - | MH = math.huge |
36 | + | |
37 | ||
38 | - | UD = UDim2.new |
38 | + | |
39 | - | C3 = Color3.new |
39 | + | norm = 18 |
40 | ||
41 | - | MaximumPower = 200 |
41 | + | |
42 | - | MaxSpecial = 100 |
42 | + | |
43 | - | Special = MaxSpecial |
43 | + | handle = Instance.new("Part") |
44 | ||
45 | - | Sounds = { |
45 | + | handle.Parent = game.Lighting |
46 | - | Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1}, |
46 | + | |
47 | - | Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1}, |
47 | + | handle.Name = "Handle" |
48 | - | Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1}, |
48 | + | |
49 | - | Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1}, |
49 | + | handle.FormFactor = "Symmetric" |
50 | - | Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1}, |
50 | + | |
51 | - | } |
51 | + | handle.Size = Vector3.new(1,4,1) |
52 | ||
53 | - | function RC(Pos, Dir, Max, Ignore) |
53 | + | handle.TopSurface = 0 |
54 | - | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore) |
54 | + | |
55 | - | end |
55 | + | handle.BottomSurface = 0 |
56 | ||
57 | - | function RayC(Start, En, MaxDist, Ignore) |
57 | + | handle.BrickColor = BrickColor.new("Black") |
58 | - | return RC(Start, (En - Start), MaxDist, Ignore) |
58 | + | |
59 | - | end |
59 | + | handle.Anchored = false |
60 | ||
61 | - | function DetectSurface(pos, part) |
61 | + | handle.Position = char["Right Arm"].Position |
62 | - | local surface = nil |
62 | + | |
63 | - | local pospos = part.CFrame |
63 | + | handle.CanCollide = false |
64 | - | local pos2 = pospos:pointToObjectSpace(pos) |
64 | + | |
65 | - | local siz = part.Size |
65 | + | handle.Locked = true |
66 | - | local shaep = part.Shape |
66 | + | |
67 | - | if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then |
67 | + | handle2 = Instance.new("Part") |
68 | - | surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)} |
68 | + | |
69 | - | else |
69 | + | handle2.Parent = game.Lighting |
70 | - | if pos2.Y > ((siz.Y/2)-0.04) then |
70 | + | |
71 | - | surface = {"Top", CA(0, 0, 0)} |
71 | + | handle2.Name = "Handle2" |
72 | - | elseif pos2.Y < -((siz.Y/2)-0.04) then |
72 | + | |
73 | - | surface = {"Bottom", CA(-MP, 0, 0)} |
73 | + | handle2.Shape = "Ball" |
74 | - | elseif pos2.X > ((siz.X/2)-0.04) then |
74 | + | |
75 | - | surface = {"Right", CA(0, 0, MR(-90))} |
75 | + | handle2.Size = Vector3.new(1,1,1) |
76 | - | elseif pos2.X < -((siz.X/2)-0.04) then |
76 | + | |
77 | - | surface = {"Left", CA(0, 0, MR(90))} |
77 | + | handle2.TopSurface = 0 |
78 | - | elseif pos2.Z > ((siz.Z/2)-0.04) then |
78 | + | |
79 | - | surface = {"Back", CA(MR(90), 0, 0)} |
79 | + | handle2.BottomSurface = 0 |
80 | - | elseif pos2.Z < -((siz.Z/2)-0.04) then |
80 | + | |
81 | - | surface = {"Front", CA(MR(-90), 0, 0)} |
81 | + | handle2.BrickColor = BrickColor.new("Bright red") |
82 | - | end |
82 | + | |
83 | - | end |
83 | + | handle2.Anchored = false |
84 | - | return surface |
84 | + | |
85 | - | end |
85 | + | handle2.Position = char["Right Arm"].Position |
86 | ||
87 | - | function Compute(pos1, pos2) |
87 | + | handle2.Transparency = 0.1 |
88 | - | local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z) |
88 | + | |
89 | - | return CN(pos1, pos3) |
89 | + | handle2.CanCollide = false |
90 | - | end |
90 | + | |
91 | handle2.Locked = true | |
92 | - | function Notime(func, tiem) |
92 | + | |
93 | - | if tiem then wait(tiem) end |
93 | + | |
94 | - | coroutine.resume(coroutine.create(function() func() end)) |
94 | + | |
95 | - | end |
95 | + | handle3 = Instance.new("Part") |
96 | ||
97 | - | function waitChild(p, n) |
97 | + | handle3.Parent = game.Lighting |
98 | - | local child = p:findFirstChild(n) |
98 | + | |
99 | - | if child then return child end |
99 | + | handle3.Name = "Handle2" |
100 | - | while true do |
100 | + | |
101 | - | child = p.ChildAdded:wait() |
101 | + | handle3.Shape = "Ball" |
102 | - | if child.Name == n then return child end |
102 | + | |
103 | - | end |
103 | + | handle3.Size = Vector3.new(1,1,1) |
104 | - | end |
104 | + | |
105 | handle3.TopSurface = 0 | |
106 | - | function getHumanoid(c) |
106 | + | |
107 | - | for _,v in pairs(c:children()) do |
107 | + | handle3.BottomSurface = 0 |
108 | - | if v:IsA("Humanoid") and c ~= char then if v.Health > 0 then return v end end |
108 | + | |
109 | - | end |
109 | + | handle3.BrickColor = BrickColor.new("Black") |
110 | - | end |
110 | + | |
111 | handle3.Anchored = false | |
112 | - | function SE(part, pos) |
112 | + | |
113 | - | EffectOn = true |
113 | + | handle3.Position = char["Right Arm"].Position |
114 | - | local lastP = (part.CFrame * pos).p |
114 | + | |
115 | - | Notime(function() |
115 | + | handle3.CanCollide = false |
116 | - | while EffectOn do |
116 | + | |
117 | - | wait() |
117 | + | handle3.Locked = true |
118 | - | local posnow = (part.CFrame * pos).p |
118 | + | |
119 | - | local eff = Part(workspace, true, false, 0, 0, "White", 0.2, 1, 0.2) |
119 | + | local m = Instance.new("CylinderMesh") |
120 | - | local magn = (lastP - posnow).magnitude |
120 | + | |
121 | - | local cf = CN(lastP, posnow) * CA(MR(-90), 0, 0) |
121 | + | m.Parent = handle |
122 | - | local mes2 = Instance.new("SpecialMesh",eff) |
122 | + | |
123 | - | mes2.Scale = Vector3.new(0.6, magn, 0.6) |
123 | + | m.Scale = Vector3.new(0.42,1,0.42) |
124 | - | eff.CFrame = cf * CN(0, magn/2, 0) |
124 | + | |
125 | - | Notime(function() |
125 | + | local m2 = Instance.new("SpecialMesh") |
126 | - | for i = 0, 1, 0.1 do |
126 | + | |
127 | - | wait() |
127 | + | m2.Parent = handle2 |
128 | - | eff.Transparency = i |
128 | + | |
129 | - | eff.Reflectance = 0.15*i |
129 | + | m2.MeshType = "Sphere" |
130 | - | mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i) |
130 | + | |
131 | - | end |
131 | + | m2.Scale = Vector3.new(0.8,0.8,0.8) |
132 | - | eff:remove() |
132 | + | |
133 | - | end) |
133 | + | local m3 = Instance.new("SpecialMesh") |
134 | - | lastP = posnow |
134 | + | |
135 | - | end |
135 | + | m3.Parent = handle3 |
136 | - | end) |
136 | + | |
137 | - | end |
137 | + | m3.MeshType = "FileMesh" |
138 | ||
139 | - | function EE() |
139 | + | m3.MeshId = "http://www.roblox.com/asset/?id=1033714" |
140 | - | EffectOn = false |
140 | + | |
141 | - | end |
141 | + | m3.Scale = Vector3.new(0.4,0.85,0.4) |
142 | ||
143 | - | torso = waitChild(char, "Torso") |
143 | + | brick1 = Instance.new("Part") |
144 | - | Rarm = waitChild(char, "Right Arm") |
144 | + | |
145 | - | Larm = waitChild(char, "Left Arm") |
145 | + | brick1.Parent = char |
146 | - | Rleg = waitChild(char, "Right Leg") |
146 | + | |
147 | - | Lleg = waitChild(char, "Left Leg") |
147 | + | brick1.formFactor = "Symmetric" |
148 | - | Hum = waitChild(char, "Humanoid") |
148 | + | |
149 | - | neck = waitChild(torso, "Neck") |
149 | + | brick1.Size = Vector3.new(1,1,1) |
150 | ||
151 | - | function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto) |
151 | + | brick1.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) |
152 | - | obj.Size = size |
152 | + | |
153 | - | obj.Position = position |
153 | + | brick1.Shape = "Ball" |
154 | - | obj.BackgroundColor3 = bgcolor |
154 | + | |
155 | - | obj.BorderColor3 = bordercolor |
155 | + | brick1.CanCollide = false |
156 | - | obj.BackgroundTransparency = transparency |
156 | + | |
157 | - | if obj:IsA("TextLabel") or obj:IsA("TextButton") then |
157 | + | brick1.Transparency = 1 |
158 | - | obj.Text = text |
158 | + | |
159 | - | obj.TextColor3 = textcolor |
159 | + | brick1.Locked = true |
160 | - | end |
160 | + | |
161 | - | if obj:IsA("ImageButton") or obj:IsA("TextButton") then |
161 | + | mesh1 = Instance.new("SpecialMesh") |
162 | - | obj.AutoButtonColor = auto |
162 | + | |
163 | - | obj.MouseButton1Down:connect(function() |
163 | + | mesh1.Parent = brick1 |
164 | - | RemoveOptions() |
164 | + | |
165 | - | end) |
165 | + | mesh1.MeshType = "Sphere" |
166 | - | end |
166 | + | |
167 | - | obj.Parent = parent |
167 | + | mesh1.Scale = Vector3.new(1.4,1.4,1.4) |
168 | - | end |
168 | + | |
169 | brick2 = Instance.new("Part") | |
170 | - | Gui = waitChild(me, "PlayerGui") |
170 | + | |
171 | brick2.Parent = game.Lighting | |
172 | - | for _,v in pairs(Gui:children()) do |
172 | + | |
173 | - | if v.Name == "Power" then v:remove() end |
173 | + | brick2.formFactor = "Symmetric" |
174 | - | end |
174 | + | |
175 | brick2.Size = Vector3.new(1,1,1) | |
176 | - | Sc = Instance.new("ScreenGui", Gui) |
176 | + | |
177 | - | Sc.Name = "Power" |
177 | + | brick2.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) |
178 | ||
179 | - | Main = Instance.new("TextLabel") |
179 | + | brick2.Shape = "Ball" |
180 | - | Main.Visible = false |
180 | + | |
181 | - | EditGui(Main, Sc, UD(0, 200, 0, 65), UD(0.5, -100, 0, 120), C3(0.06, 0.06, 0.1), C3(), 0.5, "Power", C3(1, 1, 0)) |
181 | + | brick2.CanCollide = false |
182 | - | Main.TextYAlignment = "Top" |
182 | + | |
183 | - | Main.FontSize = "Size36" |
183 | + | brick2.Transparency = 1 |
184 | - | Main.Font = "ArialBold" |
184 | + | |
185 | - | Main.TextTransparency = 0.5 |
185 | + | brick2.BrickColor = handle2.BrickColor |
186 | ||
187 | - | BarBack = Instance.new("Frame") |
187 | + | brick2.Locked = true |
188 | - | EditGui(BarBack, Main, UD(1, -10, 0, 25), UD(0, 5, 1, -30), C3(0, 0, 0), C3(), 0.5) |
188 | + | |
189 | mesh2 = Instance.new("SpecialMesh") | |
190 | - | Bar = Instance.new("ImageLabel") |
190 | + | |
191 | - | EditGui(Bar, BarBack, UD(0, 0, 1, 0), UD(0, 0, 0, 0), C3(1, 0.7, 0), C3(), 0.5) |
191 | + | mesh2.Parent = brick2 |
192 | - | Bar.Image = "http://www.roblox.com/asset/?id=48965808" |
192 | + | |
193 | mesh2.MeshType = "Sphere" | |
194 | - | Spec = Instance.new("Frame") |
194 | + | |
195 | - | EditGui(Spec, Sc, UD(0, 250, 0, 22), UD(0.04, 0, 0, 5), C3(1, 0.75, 0.1), C3(), 0) |
195 | + | mesh2.Scale = Vector3.new(0.5,0.5,0.5) |
196 | ||
197 | - | SpecialBack = Instance.new("Frame") |
197 | + | brick3 = Instance.new("Part") |
198 | - | EditGui(SpecialBack, Spec, UD(1, -10, 1, -6), UD(0, 5, 0, 3), C3(0.35, 0.1, 0.15), C3(), 0) |
198 | + | |
199 | brick3.Parent = game.Lighting | |
200 | - | SpecialBar = Instance.new("ImageLabel") |
200 | + | |
201 | - | EditGui(SpecialBar, SpecialBack, UD(Special/MaxSpecial, 0, 1, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0.2), C3(), 0) |
201 | + | brick3.formFactor = "Symmetric" |
202 | - | SpecialBar.Image = "http://www.roblox.com/asset/?id=48965808" |
202 | + | |
203 | brick3.Size = Vector3.new(1,1,1) | |
204 | - | for i = 1, 3, 1 do |
204 | + | |
205 | - | local p = Instance.new("Frame") |
205 | + | brick3.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) |
206 | - | EditGui(p, SpecialBack, UD(0, 1, 1, 0), UD(i/4, 0, 0, 0), C3(0.1, 0.2, 1), C3(), 0) |
206 | + | |
207 | - | p.BorderSizePixel = 0 |
207 | + | brick3.Shape = "Ball" |
208 | - | end |
208 | + | |
209 | brick3.CanCollide = false | |
210 | - | SpecialText = Instance.new("TextLabel") |
210 | + | |
211 | - | EditGui(SpecialText, SpecialBack, UD(1, 0, 1, 0), UD(0, 0, 0, 0), C3(), C3(), 1, "S P E C I A L", C3(1,1,1)) |
211 | + | brick3.Transparency = 1 |
212 | - | SpecialText.Font = "ArialBold" |
212 | + | |
213 | - | SpecialText.FontSize = "Size14" |
213 | + | brick3.BrickColor = handle2.BrickColor |
214 | ||
215 | - | function Play(Sound) |
215 | + | brick3.Locked = true |
216 | - | local s = Instance.new("Sound") |
216 | + | |
217 | - | s.SoundId = Sound[1] |
217 | + | mesh3 = Instance.new("SpecialMesh") |
218 | - | s.Pitch = Sound[2] |
218 | + | |
219 | - | s.Volume = Sound[3] |
219 | + | mesh3.Parent = brick3 |
220 | - | s.Parent = torso |
220 | + | |
221 | - | s.PlayOnRemove = true |
221 | + | mesh3.MeshType = "Sphere" |
222 | - | game.Debris:AddItem(s, 0.0001) |
222 | + | |
223 | - | end |
223 | + | mesh3.Scale = Vector3.new(0.5,0.5,0.5) |
224 | ||
225 | - | RSH = waitChild(torso, "Right Shoulder") |
225 | + | wads = Instance.new("Weld") |
226 | - | LSH = waitChild(torso, "Left Shoulder") |
226 | + | |
227 | - | RH = waitChild(torso, "Right Hip") |
227 | + | wads.Parent = char.Torso |
228 | - | LH = waitChild(torso, "Left Hip") |
228 | + | |
229 | wads.Part0 = wads.Parent | |
230 | - | for i,v in pairs(char:children()) do if v.Name == ModelName then v:remove() end end |
230 | + | |
231 | wads.Part1 = brick1 | |
232 | - | function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z) |
232 | + | |
233 | - | local p = Instance.new("Part") |
233 | + | wads.C1 = CFrame.new(-1.5,-0.5,0) |
234 | - | p.TopSurface = 0 |
234 | + | |
235 | - | p.BottomSurface = 0 |
235 | + | wads2 = Instance.new("Weld") |
236 | - | p.Transparency = Tran |
236 | + | |
237 | - | p.Reflectance = Ref |
237 | + | wads2.Parent = handle2 |
238 | - | p.CanCollide = Coll |
238 | + | |
239 | - | p.Anchored = Anch |
239 | + | wads2.Part0 = wads2.Parent |
240 | - | p.BrickColor = BrickColor.new(Col) |
240 | + | |
241 | - | p.formFactor = "Custom" |
241 | + | wads2.Part1 = brick2 |
242 | - | p.Size = Vector3.new(X,Y,Z) |
242 | + | |
243 | - | p.Parent = P |
243 | + | wads2.C1 = CFrame.new(1,0,0) |
244 | - | p.Locked = true |
244 | + | |
245 | - | p:BreakJoints() |
245 | + | wads3 = Instance.new("Weld") |
246 | - | return p |
246 | + | |
247 | - | end |
247 | + | wads3.Parent = handle2 |
248 | ||
249 | - | function Weld(P0, P1, X, Y, Z, A, B, C) |
249 | + | wads3.Part0 = wads2.Parent |
250 | - | local w = Instance.new("Weld") |
250 | + | |
251 | - | w.Part0 = P0 |
251 | + | wads3.Part1 = brick2 |
252 | - | w.Part1 = P1 |
252 | + | |
253 | - | w.C1 = CN(X, Y, Z) * CA(A, B, C) |
253 | + | wads3.C1 = CFrame.new(-1,0,0) |
254 | - | w.Parent = P0 |
254 | + | |
255 | - | return w |
255 | + | |
256 | - | end |
256 | + | |
257 | wa = Instance.new("Weld") | |
258 | - | Mo = Instance.new("Model") |
258 | + | |
259 | - | Mo.Name = ModelName |
259 | + | wa.Parent = brick1 |
260 | ||
261 | - | FTorso = Part(Mo, false, false, 1, 0, torso.BrickColor.Name, torso.Size.X, torso.Size.Y, torso.Size.Z) |
261 | + | wa.Part0 = nil |
262 | - | FWeld = Weld(torso, FTorso, 0, 0, 0, 0, 0, 0) |
262 | + | |
263 | wa.Part1 = nil | |
264 | - | RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
264 | + | |
265 | - | LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
265 | + | |
266 | - | RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
266 | + | |
267 | - | LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
267 | + | weld = Instance.new("Weld") |
268 | ||
269 | - | RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0) |
269 | + | |
270 | - | LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0) |
270 | + | |
271 | - | RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0) |
271 | + | toha = Instance.new("Weld") |
272 | - | LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0) |
272 | + | |
273 | toha.Parent = char.Torso | |
274 | - | function Atch(p) |
274 | + | |
275 | - | RABW.Part0 = p |
275 | + | toha.Part0 = nil |
276 | - | LABW.Part0 = p |
276 | + | |
277 | - | RLBW.Part0 = p |
277 | + | toha.Part1 = nil |
278 | - | LLBW.Part0 = p |
278 | + | |
279 | - | RSH.Part0 = p |
279 | + | toha.C1 = CFrame.fromEulerAnglesXYZ(0,0,-2.5) * CFrame.new(0,0,-0.7) |
280 | - | LSH.Part0 = p |
280 | + | |
281 | - | RH.Part0 = p |
281 | + | |
282 | - | LH.Part0 = p |
282 | + | |
283 | - | end |
283 | + | original = CFrame.fromEulerAnglesXYZ(-1.55,0,0) * CFrame.new(0,0,0.6) |
284 | ||
285 | - | RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0) |
285 | + | weporigin = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) |
286 | - | LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0) |
286 | + | |
287 | - | RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0) |
287 | + | |
288 | - | LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0) |
288 | + | |
289 | myhum = char.Humanoid | |
290 | - | HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
290 | + | |
291 | - | HBW = Weld(Larm, HB, 0, 1, 0, 0, 0, 0) |
291 | + | myhum.WalkSpeed = norm |
292 | - | HW = Weld(HB, nil, 0, 0, 0, MR(90), 0, 0) |
292 | + | |
293 | ||
294 | - | AB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1) |
294 | + | |
295 | - | ABW = Weld(Rarm, AB, 0, 1, 0, 0, 0, 0) |
295 | + | enabled = false |
296 | - | AW = Weld(AB, nil, 0, 0, 0, 0, 0, 0) |
296 | + | |
297 | hol = false | |
298 | - | TW = Weld(torso, nil, -0.7, 0, 0.5, 0, MP, 0) |
298 | + | |
299 | ||
300 | - | Handle = Part(Mo, false, false, 0, 0, HandCol, 0.6, 1.2, 0.6) |
300 | + | |
301 | - | Instance.new("SpecialMesh",Handle) |
301 | + | function select(mouse, key) |
302 | - | TW.Part1 = Handle |
302 | + | |
303 | wa.Part0 = wa.Parent | |
304 | - | for i = -0.6, 0.61, 1.2 do |
304 | + | |
305 | - | local p = Part(Mo, false, false, 0, 0, MiddleCol, 0.7, 0.2, 1.1) |
305 | + | wa.Part1 = char["Right Arm"] |
306 | - | Weld(Handle, p, 0, i, 0.15, 0, 0, 0) |
306 | + | |
307 | - | Instance.new("BlockMesh", p) |
307 | + | wa.C1 = original |
308 | - | end |
308 | + | |
309 | weld.Parent = char["Right Arm"] | |
310 | - | local UpPoint, DownPoint |
310 | + | |
311 | weld.Part0 = nil | |
312 | - | for i = -10, 95, 15 do |
312 | + | |
313 | - | local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2) |
313 | + | weld.Part1 = nil |
314 | - | local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0) |
314 | + | |
315 | - | w.C0 = CN(0, 1.1, 0.75) * CA(MR(i), 0, 0) |
315 | + | weld.C1 = weporigin |
316 | - | Instance.new("BlockMesh", p) |
316 | + | |
317 | - | UpPoint = p |
317 | + | handle.Parent = char |
318 | - | end |
318 | + | |
319 | handle2.Parent = char | |
320 | - | for i = 10, -95, -15 do |
320 | + | |
321 | - | local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2) |
321 | + | handle3.Parent = char |
322 | - | local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0) |
322 | + | |
323 | - | w.C0 = CN(0, -1.1, 0.75) * CA(MR(i), 0, 0) |
323 | + | for i = 1, 8 do |
324 | - | Instance.new("BlockMesh", p) |
324 | + | |
325 | - | DownPoint = p |
325 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) |
326 | - | end |
326 | + | |
327 | wait() | |
328 | - | StringUp = Part(Mo, false, false, 0, 0, "White", 0.2, 1, 0.2) |
328 | + | |
329 | - | StringDown = Part(Mo, false, false, 0, 0, "White", 0.2, 1, 0.2) |
329 | + | end |
330 | ||
331 | - | SUM = Instance.new("SpecialMesh", StringUp) |
331 | + | for i = 1, 4 do |
332 | - | SDM = Instance.new("SpecialMesh", StringDown) |
332 | + | |
333 | - | SUM.Scale = Vector3.new(0.4, 2.4, 0.4) |
333 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) |
334 | - | SDM.Scale = Vector3.new(0.4, 2.4, 0.4) |
334 | + | |
335 | wait() | |
336 | - | ORSU = CN(0, -1.3, 0) * CA(MR(-85), 0, 0) |
336 | + | |
337 | - | ORSD = CN(0, 1.3, 0) * CA(MR(85), 0, 0) |
337 | + | end |
338 | ||
339 | - | SUW = Weld(UpPoint, StringUp, 0, -1.3, 0, MR(-85), 0, 0) |
339 | + | toha.Part0 = nil |
340 | - | SDW = Weld(DownPoint, StringDown, 0, 1.3, 0, MR(85), 0, 0) |
340 | + | |
341 | - | SUW.C0 = CN(0, 0.15, 0) |
341 | + | toha.Part1 = nil |
342 | - | SDW.C0 = CN(0, -0.15, 0) |
342 | + | |
343 | - | SUW.C1 = ORSU |
343 | + | weld.Part0 = weld.Parent |
344 | - | SDW.C1 = ORSD |
344 | + | |
345 | weld.Part1 = handle | |
346 | - | Arrow = Part(Mo, false, false, 1, 0, "Brown", 0.4, 0.4, 4.4) |
346 | + | |
347 | - | local mesh = Instance.new("SpecialMesh",Arrow) |
347 | + | for i = 1, 4 do |
348 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=15887356" |
348 | + | |
349 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=15886781" |
349 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0) |
350 | - | mesh.Scale = Vector3.new(1, 1, 2.1) |
350 | + | |
351 | - | AW.Part1 = Arrow |
351 | + | wait() |
352 | ||
353 | end | |
354 | - | Ring = Part(Mo, false, false, 0, 0, ViiniCol, 0.2, 0.2, 0.2) |
354 | + | |
355 | - | RingM = Instance.new("SpecialMesh", Ring) |
355 | + | for i = 1, 8 do |
356 | - | RingM.MeshId = "http://www.roblox.com/asset/?id=3270017" |
356 | + | |
357 | - | RingM.Scale = Vector3.new(0.6, 1, 21) |
357 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.35,0,0) |
358 | - | local www = Weld(FTorso, Ring, -0.9, -0.2, -0.8, MR(90), MR(90), MR(30)) |
358 | + | |
359 | - | www.C0 = CA(MR(-10), 0, 0) |
359 | + | wait() |
360 | ||
361 | - | Sp = Part(Mo, false, false, 0, 0, "Black", 1, 0.2, 1) |
361 | + | end |
362 | - | local S = Instance.new("SpecialMesh",Sp) |
362 | + | |
363 | - | S.MeshType = "Sphere" |
363 | + | wa.C1 = original |
364 | - | S.Scale = Vector3.new(0.65, 1, 1.05) |
364 | + | |
365 | - | Weld(Ring, Sp, 0, 1.7, 0, MR(-90), 0, 0) |
365 | + | spin = true |
366 | ||
367 | - | function makeArrow(pos, ang) |
367 | + | brick2.Transparency = 0.3 |
368 | - | local arrow = Part(Mo, false, false, 0, 0, "Brown", 0.2, 1, 0.2) |
368 | + | |
369 | - | local mesh = Instance.new("SpecialMesh",arrow) |
369 | + | brick2.Parent = char |
370 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=15887356" |
370 | + | |
371 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=15886781" |
371 | + | brick3.Transparency = 0.3 |
372 | - | mesh.Scale = Vector3.new(1, 1, 2.1) |
372 | + | |
373 | - | Weld(Ring, arrow, pos.x, pos.y, pos.z, MP, 0, ang) |
373 | + | brick3.Parent = char |
374 | - | end |
374 | + | |
375 | weld2 = Instance.new("Weld") | |
376 | - | makeArrow(Vector3.new(0.15, 0.1, 0.55), 0.8) |
376 | + | |
377 | - | makeArrow(Vector3.new(-0.2, -0.1, 0.65), -0.4) |
377 | + | weld2.Parent = handle |
378 | - | makeArrow(Vector3.new(-0.1, 0.1, 0.6), 1.8) |
378 | + | |
379 | - | makeArrow(Vector3.new(-0.1, -0.15, 0.7), 1.2) |
379 | + | weld2.Part0 = weld2.Parent |
380 | - | makeArrow(Vector3.new(0, 0.3, 0.6), 0.28) |
380 | + | |
381 | - | makeArrow(Vector3.new(0, 0, 0.65), 0.34) |
381 | + | weld2.Part1 = handle2 |
382 | - | makeArrow(Vector3.new(0.3, 0.1, 0.55), 1.9) |
382 | + | |
383 | - | makeArrow(Vector3.new(-0.35, 0.1, 0.67), 1.9) |
383 | + | weld2.C1 = CFrame.new(0, 0, 2.1) |
384 | ||
385 | - | Mo.Parent = char |
385 | + | weld3 = Instance.new("Weld") |
386 | ||
387 | - | function Normal() |
387 | + | weld3.Parent = handle |
388 | - | FTorso.Transparency = 1 |
388 | + | |
389 | - | FWeld.C0 = CN() |
389 | + | weld3.Part0 = weld3.Parent |
390 | - | torso.Transparency = 0 |
390 | + | |
391 | - | LAW.C0 = CA(0, 0, MR(30)) |
391 | + | weld3.Part1 = handle3 |
392 | - | RAW.Part1 = nil |
392 | + | |
393 | - | RAW.C0 = CN() |
393 | + | weld3.C1 = CFrame.new(0, 0, 1.4) |
394 | - | RAW.C1 = CN(0, 0.5, 0) |
394 | + | |
395 | - | LAW.C1 = CN(0, 0.5, 0) |
395 | + | weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) |
396 | - | LAW.Part1 = Larm |
396 | + | |
397 | - | RABW.Part0 = torso |
397 | + | weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, -2.1, 0) |
398 | - | LABW.Part0 = torso |
398 | + | |
399 | - | RLBW.Part0 = torso |
399 | + | weld3.C1 = CFrame.fromEulerAnglesXYZ(3.2,0,0) * CFrame.new(0, -1.5, 0) |
400 | - | LLBW.Part0 = torso |
400 | + | |
401 | - | RSH.Part0 = torso |
401 | + | coroutine.resume(coroutine.create(function() |
402 | - | LSH.Part0 = torso |
402 | + | |
403 | - | RH.Part0 = torso |
403 | + | while spin == true do |
404 | - | LH.Part0 = torso |
404 | + | |
405 | - | AW.C0 = CN() |
405 | + | for i=1, 20 do |
406 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
406 | + | |
407 | - | SUW.C0 = CN(0, 0.15, 0) |
407 | + | wait() |
408 | - | SDW.C0 = CN(0, -0.15, 0) |
408 | + | |
409 | - | SUW.C1 = ORSU |
409 | + | handle2.Transparency = handle2.Transparency + 0.025 |
410 | - | SDW.C1 = ORSD |
410 | + | |
411 | - | SUM.Scale = Vector3.new(0.4, 2.4, 0.4) |
411 | + | end |
412 | - | SDM.Scale = Vector3.new(0.4, 2.4, 0.4) |
412 | + | |
413 | - | end |
413 | + | for i=1, 20 do |
414 | ||
415 | - | if script.Parent.className ~= "HopperBin" then |
415 | + | wait() |
416 | - | h = Instance.new("HopperBin", me.Backpack) |
416 | + | |
417 | - | h.Name = "xBow" |
417 | + | handle2.Transparency = handle2.Transparency - 0.025 |
418 | - | script.Parent = h |
418 | + | |
419 | - | end |
419 | + | end |
420 | ||
421 | - | bin = script.Parent |
421 | + | end |
422 | ||
423 | - | function ShowDmg(pos, dmg) |
423 | + | end)) |
424 | - | local col = "Bright red" |
424 | + | |
425 | - | if dmg < 1 then |
425 | + | coroutine.resume(coroutine.create(function() |
426 | - | col = "Bright blue" |
426 | + | |
427 | - | end |
427 | + | while spin == true do |
428 | - | local m = Instance.new("Model") |
428 | + | |
429 | - | m.Name = dmg |
429 | + | wait() |
430 | - | local p = Part(m, false, false, 0, 0, col, 0.8, 0.3, 0.8) |
430 | + | |
431 | - | p.Name = "Head" |
431 | + | wads2.C1 = wads2.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) |
432 | - | p.CFrame = CFrame.new(pos) |
432 | + | |
433 | - | local bp = Instance.new("BodyPosition", p) |
433 | + | wads3.C1 = wads3.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) |
434 | - | bp.position = pos + Vector3.new(0, 2.5, 0) |
434 | + | |
435 | - | bp.P = 6500 |
435 | + | local fade = brick2:clone() |
436 | - | bp.maxForce = Vector3.new(MH, MH, MH) |
436 | + | |
437 | - | local h = Instance.new("Humanoid",m) |
437 | + | fade.Parent = char |
438 | - | h.MaxHealth = 0 |
438 | + | |
439 | - | h.Health = 0 |
439 | + | fade.CFrame = brick2.CFrame |
440 | - | h.Name = "fffsaf" |
440 | + | |
441 | - | m.Parent = workspace |
441 | + | local weld = wads2:clone() |
442 | - | game.Debris:AddItem(m, 1.5) |
442 | + | |
443 | - | end |
443 | + | weld.Parent = handle2 |
444 | ||
445 | - | function Dmg(hum, dmg, pos) |
445 | + | weld.Part0 = weld.Parent |
446 | - | if hum.Health > 0 then |
446 | + | |
447 | - | hum.Health = hum.Health - dmg |
447 | + | weld.Part1 = fade |
448 | - | ShowDmg(pos, dmg) |
448 | + | |
449 | - | end |
449 | + | local fade2 = brick3:clone() |
450 | - | end |
450 | + | |
451 | fade2.Parent = char | |
452 | - | function ArrowT(hit) |
452 | + | |
453 | - | local h = getHumanoid(hit.Parent) |
453 | + | fade2.CFrame = brick3.CFrame |
454 | - | if h and Deb and Hurt then |
454 | + | |
455 | - | Deb = false |
455 | + | local weld2 = wads3:clone() |
456 | - | Dmg(h, MRA(3,15), Arrow.CFrame * CN(0, 0, 2.2).p) |
456 | + | |
457 | - | end |
457 | + | weld2.Parent = handle2 |
458 | - | end |
458 | + | |
459 | weld2.Part0 = weld2.Parent | |
460 | - | Arrow.Touched:connect(ArrowT) |
460 | + | |
461 | weld2.Part1 = fade2 | |
462 | - | function SelectAnim() |
462 | + | |
463 | - | LAW.Part1 = Larm |
463 | + | coroutine.resume(coroutine.create(function() |
464 | - | SelAnim = true |
464 | + | |
465 | - | for i = 0.2, 1, 0.2 do |
465 | + | for i=1, 8 do |
466 | - | LAW.C0 = CA(MR(-25*i), 0, MR(25*i)) * CN(0, 0.2*i, 0) |
466 | + | |
467 | - | wait() |
467 | + | wait() |
468 | - | end |
468 | + | |
469 | - | HW.C0 = CN(0.4, 0.3, 0) * CA(MR(110), MR(-100), MR(180)) |
469 | + | fade.Transparency = fade.Transparency + 0.12 |
470 | - | HW.Part1 = Handle |
470 | + | |
471 | - | TW.Part1 = nil |
471 | + | fade2.Transparency = fade2.Transparency + 0.12 |
472 | - | for i = 0.08, 1, 0.08 do |
472 | + | |
473 | - | LAW.C0 = CA(MR(-25+25*i), 0, MR(25-55*i)) * CN(0, 0.2-0.2*i, 0) |
473 | + | end |
474 | - | HW.C0 = CN(0.4-0.4*i, 0.3-0.3*i, 0) * CA(MR(110+70*i), MR(-20+20*i), MR(180-30*i)) |
474 | + | |
475 | - | wait() |
475 | + | fade:remove() |
476 | - | end |
476 | + | |
477 | - | SelAnim = false |
477 | + | fade2:remove() |
478 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
478 | + | |
479 | - | end |
479 | + | end)) |
480 | ||
481 | - | function DeselectAnim() |
481 | + | end |
482 | - | for i = 0.12, 1, 0.12 do |
482 | + | |
483 | - | LAW.C0 = CA(MR(-25*i), 0, MR(-30+55*i)) * CN(0, 0.2*i, 0) |
483 | + | end)) |
484 | - | HW.C0 = CN(0.4*i, 0.3*i, 0) * CA(MR(180-70*i), MR(-20*i), MR(150+30*i)) |
484 | + | |
485 | - | if SelAnim or Selected then return end |
485 | + | enabled = false |
486 | - | wait() |
486 | + | |
487 | - | end |
487 | + | mouse.KeyDown:connect(function(key) |
488 | - | HW.Part1 = nil |
488 | + | |
489 | - | TW.Part1 = Handle |
489 | + | key = key:lower() |
490 | - | for i = 0.12, 1, 0.12 do |
490 | + | |
491 | - | LAW.C0 = CA(MR(-25+25*i), 0, MR(-30+55-25*i)) * CN(0, 0.2-0.2*i, 0) |
491 | + | if (key == "k") then |
492 | - | if SelAnim or Selected then return end |
492 | + | |
493 | - | wait() |
493 | + | if enabled == true then return end |
494 | - | end |
494 | + | |
495 | - | if Selected == false and SelAnim == false then |
495 | + | enabled = true |
496 | - | LAW.Part1 = nil |
496 | + | |
497 | - | end |
497 | + | hol = true |
498 | - | end |
498 | + | |
499 | for i=1, 6 do | |
500 | - | function Slash() |
500 | + | |
501 | - | RAW.Part1 = Rarm |
501 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,0.1,0) |
502 | - | Slashing = true |
502 | + | |
503 | - | Play(Sounds.Slash) |
503 | + | wait() |
504 | - | for i = 0.15, 1, 0.15 do |
504 | + | |
505 | - | RAW.C0 = CA(MR(180*i), MR(-20*i), MR(35*i)) |
505 | + | end |
506 | - | AW.C0 = CA(MR(35*i), 0, 0) * CN(0, 0, 0.7*i) |
506 | + | |
507 | - | wait() |
507 | + | handle2.BrickColor = BrickColor.new(landc) |
508 | - | end |
508 | + | |
509 | - | for i = 0.33, 1, 0.33 do |
509 | + | brick2.BrickColor = handle2.BrickColor |
510 | - | RAW.C0 = CA(MR(180+10*i), MR(-20), MR(35+2*i)) |
510 | + | |
511 | - | AW.C0 = CA(MR(35+5*i), 0, 0) * CN(0, 0, 0.7+0.2*i) |
511 | + | brick3.BrickColor = handle2.BrickColor |
512 | - | wait() |
512 | + | |
513 | - | end |
513 | + | while hol == true do |
514 | - | local blockk = false |
514 | + | |
515 | - | local hit, pos = RayC(torso.Position, torso.CFrame * CN(0, 0, -5).p, 3.2, char) |
515 | + | wait(0.05) |
516 | - | if hit ~= nil then |
516 | + | |
517 | - | if getHumanoid(hit.Parent) == nil and hit.CanCollide == true then |
517 | + | local ki = Instance.new("Part") |
518 | - | blockk = true |
518 | + | |
519 | - | end |
519 | + | ki.Parent = workspace |
520 | - | end |
520 | + | |
521 | - | SE(Arrow, CN(0, 0, 2.2)) |
521 | + | ki.Name = "Landmon" |
522 | - | if blockk == false then |
522 | + | |
523 | - | Hurt = true |
523 | + | ki.Size = Vector3.new(1,1,1) |
524 | - | Deb = true |
524 | + | |
525 | - | for i = 0.2, 1, 0.2 do |
525 | + | ki.BrickColor = handle2.BrickColor |
526 | - | RAW.C0 = CA(MR(190-140*i), MR(-20-5*i), MR(37-87*i)) * CN(0, -1*i, 0) |
526 | + | |
527 | - | AW.C0 = CA(MR(40-25*i), MR(-20*i), 0) * CN(0, 0, 0.9+0.3*i) |
527 | + | ki.TopSurface = 0 |
528 | - | wait() |
528 | + | |
529 | - | end |
529 | + | ki.BottomSurface = 0 |
530 | - | EE() |
530 | + | |
531 | - | Hurt = false |
531 | + | ki.CanCollide = false |
532 | - | for i = 0.33, 1, 0.33 do |
532 | + | |
533 | - | RAW.C0 = CA(MR(50-10*i), MR(-25), MR(-50-5*i)) * CN(0, -1, 0) |
533 | + | ki.Anchored = true |
534 | - | AW.C0 = CA(MR(15-20*i), MR(-20-1*i), 0) * CN(0, 0, 1.2*i) |
534 | + | |
535 | - | wait() |
535 | + | ki.CFrame = CFrame.new(mouse.Hit.p) |
536 | - | end |
536 | + | |
537 | - | for i = 0.25, 1, 0.25 do |
537 | + | ki.CFrame = ki.CFrame * CFrame.new(0, -4, 0) |
538 | - | RAW.C0 = CA(MR(40-10*i), MR(-25+25*i), MR(-55+35*i)) * CN(0, -1+1*i, 0) |
538 | + | |
539 | - | AW.C0 = CA(MR(-5+55*i), MR(-21+21*i), 0) * CN(0, 0, 1.2-1.2*i) |
539 | + | local mef = Instance.new("SpecialMesh") |
540 | - | wait() |
540 | + | |
541 | - | end |
541 | + | mef.Parent = ki |
542 | - | for i = 0.25, 1, 0.25 do |
542 | + | |
543 | - | RAW.C0 = CA(MR(30-30*i), 0, MR(-20+20*i)) |
543 | + | mef.MeshType = "Sphere" |
544 | - | AW.C0 = CA(MR(50-50*i), 0, 0) |
544 | + | |
545 | - | wait() |
545 | + | mef.Scale = Vector3.new(9,16,9) |
546 | - | end |
546 | + | |
547 | - | else |
547 | + | coroutine.resume(coroutine.create(function() |
548 | - | for i = 0.5, 1, 0.5 do |
548 | + | |
549 | - | RAW.C0 = CA(MR(190-50*i), MR(-20-5*i), MR(37-27*i)) * CN(0, -0.2*i, 0) |
549 | + | for i=1, 5 do |
550 | - | AW.C0 = CA(MR(40-5*i), MR(-5*i), 0) * CN(0, 0, 0.9+0.1*i) |
550 | + | |
551 | - | wait() |
551 | + | wait() |
552 | - | end |
552 | + | |
553 | - | Play(Sounds.Block) |
553 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.12,0) |
554 | - | for i = 0.25, 1, 0.25 do |
554 | + | |
555 | - | RAW.C0 = CA(MR(140+60*i), MR(-25+25*i), MR(10+20*i)) * CN(0, -0.2-0.3*i, 0) |
555 | + | end |
556 | - | AW.C0 = CA(MR(35+45*i), MR(-5+5*i), 0) * CN(0, 0, 1) |
556 | + | |
557 | - | wait() |
557 | + | for i=1, 5 do |
558 | - | end |
558 | + | |
559 | - | EE() |
559 | + | wait() |
560 | - | for i = 0.33, 1, 0.33 do |
560 | + | |
561 | - | RAW.C0 = CA(MR(200+10*i), MR(5*i), MR(30+5*i)) * CN(0, -0.5, 0) |
561 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.12,0) |
562 | - | AW.C0 = CA(MR(80+5*i), 0, 0) * CN(0, 0, 1) |
562 | + | |
563 | - | wait() |
563 | + | end |
564 | - | end |
564 | + | |
565 | - | for i = 0.18, 1, 0.18 do |
565 | + | end)) |
566 | - | RAW.C0 = CA(MR(210-200*i), MR(5-5*i), MR(35-30*i)) * CN(0, -0.5+0.4*i, 0) |
566 | + | |
567 | - | AW.C0 = CA(MR(85-75*i), 0, 0) * CN(0, 0, 1-0.8*i) |
567 | + | coroutine.resume(coroutine.create(function() |
568 | - | wait() |
568 | + | |
569 | - | end |
569 | + | for i=1, 25 do |
570 | - | for i = 0.33, 1, 0.33 do |
570 | + | |
571 | - | RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.1+0.1*i, 0) |
571 | + | wait() |
572 | - | AW.C0 = CA(MR(10-10*i), 0, 0) * CN(0, 0, 0.2-0.2*i) |
572 | + | |
573 | - | wait() |
573 | + | ki.CFrame = ki.CFrame * CFrame.new(0, 0.3, 0) |
574 | - | end |
574 | + | |
575 | - | AW.C0 = CN() |
575 | + | end |
576 | - | end |
576 | + | |
577 | - | Slashing = false |
577 | + | loo = ki.CFrame |
578 | - | RAW.Part1 = nil |
578 | + | |
579 | - | end |
579 | + | ki.CanCollide = true |
580 | ||
581 | - | function Reload() |
581 | + | mef.Scale = Vector3.new(1,1,1) |
582 | - | if ArrowOn == false then |
582 | + | |
583 | - | RAW.Part1 = Rarm |
583 | + | ki.Size = Vector3.new(9,16,9) |
584 | - | Reloading = true |
584 | + | |
585 | - | for i = 0.16, 1, 0.16 do |
585 | + | ki.CFrame = loo |
586 | - | RAW.C0 = CA(MR(200*i), MR(-5*i), 0) * CN(0, -0.35*i, 0) |
586 | + | |
587 | - | wait() |
587 | + | wait(7) |
588 | - | end |
588 | + | |
589 | - | AW.C0 = CA(0, MR(-90), 0) |
589 | + | for i=1, 20 do |
590 | - | AW.C1 = CN(0, 0, -1.5) * CA(MR(60), 0, 0) |
590 | + | |
591 | - | Arrow.Transparency = 0 |
591 | + | wait() |
592 | - | ArrowOn = true |
592 | + | |
593 | - | for i = 0.2, 1, 0.2 do |
593 | + | ki.Transparency = ki.Transparency + 0.05 |
594 | - | RAW.C0 = CA(MR(200), MR(-5), MR(40*i)) * CN(0, -0.35, 0) |
594 | + | |
595 | - | AW.C1 = CN(0, 0, -1.5+2*i) * CA(MR(60-20*i), 0, 0) |
595 | + | end |
596 | - | wait() |
596 | + | |
597 | - | end |
597 | + | ki:remove() |
598 | - | for i = 0.33, 1, 0.33 do |
598 | + | |
599 | - | RAW.C0 = CA(MR(200), MR(-5), MR(40+10*i)) * CN(0, -0.35+0.05*i, 0) |
599 | + | end)) |
600 | - | AW.C1 = CN(0, 0, 0.5+0.1*i) * CA(MR(40-5*i), 0, 0) |
600 | + | |
601 | - | wait() |
601 | + | end |
602 | - | end |
602 | + | |
603 | - | for i = 0.18, 1, 0.18 do |
603 | + | elseif (key == "f") then |
604 | - | RAW.C0 = CA(MR(200-190*i), MR(-5+5*i), MR(50-45*i)) * CN(0, -0.3+0.25*i, 0) |
604 | + | |
605 | - | AW.C1 = CN(0, 0, 0.6-0.5*i) * CA(MR(35-30*i), 0, 0) |
605 | + | if enabled == true then return end |
606 | - | AW.C0 = CA(0, MR(-90+80*i), 0) |
606 | + | |
607 | - | wait() |
607 | + | enabled = true |
608 | - | end |
608 | + | |
609 | - | for i = 0.33, 1, 0.33 do |
609 | + | pof = mouse.Hit.p |
610 | - | RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.05+0.05*i, 0) |
610 | + | |
611 | - | AW.C1 = CN(0, 0, 0.1-0.1*i) * CA(MR(5-5*i), 0, 0) |
611 | + | local part = Instance.new("Part") |
612 | - | AW.C0 = CA(0, MR(-10+10*i), 0) |
612 | + | |
613 | - | wait() |
613 | + | local fire = Instance.new("Fire") |
614 | - | end |
614 | + | |
615 | - | AW.C1 = CN() |
615 | + | fire.Parent = part |
616 | - | AW.C0 = CN() |
616 | + | |
617 | - | RAW.C0 = CN() |
617 | + | fire.Heat = 30 |
618 | - | RAW.Part1 = nil |
618 | + | |
619 | - | Reloading = false |
619 | + | fire.Size = 40 |
620 | - | else |
620 | + | |
621 | - | Slash() |
621 | + | local smoke = Instance.new("Smoke") |
622 | - | end |
622 | + | |
623 | - | end |
623 | + | smoke.Parent = part |
624 | ||
625 | - | function AddDetail(Surface, pos, bool, part, hu) |
625 | + | smoke.RiseVelocity = 2 |
626 | - | local caf = CN(pos) * CA(part.CFrame:toEulerAnglesXYZ()) * Surface[2] |
626 | + | |
627 | - | if Surface[1] == "Anything" then |
627 | + | smoke.Size = 20 |
628 | - | caf = Surface[2] |
628 | + | |
629 | - | end |
629 | + | smoke.Color = Color3.new(0,0,0) |
630 | - | Notime(function() |
630 | + | |
631 | - | if bool then |
631 | + | smoke.Opacity = 1 |
632 | - | Notime(function() |
632 | + | |
633 | - | for i = 1, MRA(2,7) do |
633 | + | local par = Instance.new("Part") |
634 | - | local x = MRA(0.4*100, 0.9*100)/100 |
634 | + | |
635 | - | local z = MRA(0.7*100, 1.2*100)/100 |
635 | + | par.Parent = workspace |
636 | - | local pp = Part(hu.Parent, false, false, 0, 0, "Bright red", 0.2, 0.2, 0.2) |
636 | + | |
637 | - | local ms = Instance.new("SpecialMesh",pp) |
637 | + | par.Size = Vector3.new(9,1,1) |
638 | - | ms.MeshType = "Sphere" |
638 | + | |
639 | - | ms.Scale = Vector3.new(x*5, 1, z*5) |
639 | + | par.Transparency = 0 |
640 | - | pp.CFrame = caf |
640 | + | |
641 | - | local w = Weld(part, pp, 0, 0, 0, 0, 0, 0) |
641 | + | par.Anchored = true |
642 | - | local c0 = part.CFrame:toObjectSpace(caf) * CN(MRA(-0.3*100, 0.3*100)/100, 0, MRA(-0.3*100, 0.3*100)/100) * CA(0, MR(MRA(-180,180)), 0) |
642 | + | |
643 | - | w.C0 = c0 |
643 | + | par.TopSurface = 0 |
644 | - | Notime(function() |
644 | + | |
645 | - | local moar = MRA(-1.1*1000, 1.1*1000)/1000 |
645 | + | par.BottomSurface = 0 |
646 | - | for i = 0, 1, MRA(0.02*1000, 0.06*1000)/1000 do |
646 | + | |
647 | - | wait() |
647 | + | par.BrickColor = BrickColor.new(firec) |
648 | - | w.C0 = c0 * CN(0, 0, -moar*i) |
648 | + | |
649 | - | ms.Scale = Vector3.new((x*5)-(moar/3)*i, 1, (z*5)+(moar/3)*i) |
649 | + | par.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) |
650 | - | pp.Transparency = -0.5+1.5*i |
650 | + | |
651 | - | end |
651 | + | par.CFrame = par.CFrame * CFrame.Angles(0,0.8,0) |
652 | - | pp:remove() |
652 | + | |
653 | - | end) |
653 | + | par.CanCollide = false |
654 | - | end |
654 | + | |
655 | - | end) |
655 | + | local mes = Instance.new("SpecialMesh") |
656 | - | for i = 1, MRA(4,8) do |
656 | + | |
657 | - | Notime(function() |
657 | + | mes.Parent = par |
658 | - | local pp2 = Part(hu.Parent, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2) |
658 | + | |
659 | - | pp2.CFrame = caf |
659 | + | mes.MeshType = "Brick" |
660 | - | local ms2 = Instance.new("SpecialMesh",pp2) |
660 | + | |
661 | - | ms2.MeshType = "Sphere" |
661 | + | mes.Scale = Vector3.new(1,1,1) |
662 | - | ms2.Scale = Vector3.new(1.5, 1.5, 1.5) |
662 | + | |
663 | - | local face = CA(MR(MRA(-40, 40)+105), MR(MRA(-40, 40)), MR(MRA(-40, 40))) |
663 | + | local pa = par:clone() |
664 | - | local center = caf * face * CN(0, -5, 0) |
664 | + | |
665 | - | Notime(function() |
665 | + | pa.Parent = workspace |
666 | - | for i = 0, 1, 0.1 do |
666 | + | |
667 | - | pp2.Transparency = -0.7+1.7*i |
667 | + | pa.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) |
668 | - | pp2.CFrame = center * CN(0, 0, -2.5*i) * CA(MR(-55*i), 0, 0) * CN(0, 5, 0) |
668 | + | |
669 | - | wait() |
669 | + | pa.CFrame = pa.CFrame * CFrame.Angles(0,-0.8,0) |
670 | - | end |
670 | + | |
671 | - | pp2:remove() |
671 | + | handle2.BrickColor = BrickColor.new(firec) |
672 | - | end) |
672 | + | |
673 | - | end) |
673 | + | brick2.BrickColor = handle2.BrickColor |
674 | - | end |
674 | + | |
675 | - | else |
675 | + | brick3.BrickColor = handle2.BrickColor |
676 | - | Notime(function() |
676 | + | |
677 | - | for i = 1, MRA(5,8) do |
677 | + | for i=1, 10 do |
678 | - | Notime(function() |
678 | + | |
679 | - | local t = {"Bright yellow", "New Yeller", "White", "Institutional white", "Brick yellow"} |
679 | + | wait(0.03) |
680 | - | local pp = Part(workspace, true, false, 0, 0, t[MRA(1, #t)], 0.2, 0.2, 0.2) |
680 | + | |
681 | - | local mes = Instance.new("SpecialMesh",pp) |
681 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0.05,0) |
682 | - | mes.MeshType = "Sphere" |
682 | + | |
683 | - | mes.Scale = Vector3.new(0.5, 0.5, 1) |
683 | + | end |
684 | - | local caa = CN(caf.p) * CA(MR(MRA(-180,180)), MR(MRA(-180,180)), MR(MRA(-180,180))) |
684 | + | |
685 | - | pp.CFrame = caa |
685 | + | for i=1, 4 do |
686 | - | for i = 0.25, 1, 0.25 do |
686 | + | |
687 | - | wait() |
687 | + | for i=1, 3 do |
688 | - | mes.Scale = Vector3.new(0.5+0.1*i, 0.5+0.1*i, 1+2*i) |
688 | + | |
689 | - | pp.CFrame = caa * CN(0, 0, -0.4*i) |
689 | + | wait(0.01) |
690 | - | end |
690 | + | |
691 | - | for i = 0.25, 1, 0.25 do |
691 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.05,0.1) |
692 | - | wait() |
692 | + | |
693 | - | mes.Scale = Vector3.new(0.6, 0.6, 3+1.6*i) |
693 | + | end |
694 | - | pp.CFrame = caa * CN(0, 0, -0.6-0.32*i) |
694 | + | |
695 | - | pp.Transparency = -0.2+1.2*i |
695 | + | for i=1, 3 do |
696 | - | end |
696 | + | |
697 | - | pp:remove() |
697 | + | wait(0.01) |
698 | - | end) |
698 | + | |
699 | - | end |
699 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.03,0.05,-0.1) |
700 | - | end) |
700 | + | |
701 | - | end |
701 | + | end |
702 | - | end) |
702 | + | |
703 | - | end |
703 | + | end |
704 | ||
705 | - | function ShootArrow(pos, power, targ) |
705 | + | for i=1, 7 do |
706 | - | local Start = Handle.Position |
706 | + | |
707 | - | local mag = (Start - pos).magnitude/200 |
707 | + | wait(0.01) |
708 | - | if mag > 12.5 then mag = 12.5 end |
708 | + | |
709 | - | if targ == nil then mag = 1 end |
709 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.1,-0.1) |
710 | - | local Face = CN(Start, pos) * CA(MR(MRA(-Accuracy*10000, Accuracy*10000)/10000+mag), MR(MRA(-Accuracy*10000, Accuracy*10000)/10000), MR(MRA(-Accuracy*10000, Accuracy*10000)/10000)) |
710 | + | |
711 | - | local Arr = Part(Mo, true, false, 0, 0, "Brown", 0.2, 0.2, 0.2) |
711 | + | end |
712 | - | local mes = Instance.new("SpecialMesh",Arr) |
712 | + | |
713 | - | mes.MeshId = "http://www.roblox.com/asset/?id=15887356" |
713 | + | wait(0.6) |
714 | - | mes.TextureId = "http://www.roblox.com/asset/?id=15886781" |
714 | + | |
715 | - | mes.Scale = Vector3.new(1, 1, 2.1) |
715 | + | for i=1, 10 do |
716 | - | Arr.CFrame = Face |
716 | + | |
717 | - | local Go = 2.8+(power/30) |
717 | + | wait(0.02) |
718 | - | local Dist = 200+(power*2.8) |
718 | + | |
719 | - | local Drop = 0.55/(Go*1.25) |
719 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,-0.05,0.3) |
720 | - | local lastP = Start |
720 | + | |
721 | - | local didhit = false |
721 | + | par.Transparency = par.Transparency + 0.1 |
722 | - | local omg = 0 |
722 | + | |
723 | - | local hit2, pos2 = RayC(torso.CFrame * CN(0, 0, -0.4).p, torso.CFrame * CN(0, 0, -2).p, 2.5, char) |
723 | + | pa.Transparency = pa.Transparency + 0.1 |
724 | - | local hu2 = nil |
724 | + | |
725 | - | if hit2 then |
725 | + | mes.Scale = mes.Scale + Vector3.new(0.1,0,0.05) |
726 | - | local hh = getHumanoid(hit2.Parent) |
726 | + | |
727 | - | if hh then |
727 | + | pa.Mesh.Scale = pa.Mesh.Scale + Vector3.new(0.1,0,0.05) |
728 | - | hit2 = nil |
728 | + | |
729 | - | end |
729 | + | end |
730 | - | end |
730 | + | |
731 | - | for i = Go, Dist, Go do |
731 | + | wait(0.1) |
732 | - | Drop = Drop + 1/(Go*3.5) |
732 | + | |
733 | - | omg = omg + Drop |
733 | + | pa:remove() |
734 | - | local dropping = CA(MR(-Drop), 0, 0) |
734 | + | |
735 | - | if omg > 130 then |
735 | + | par:remove() |
736 | - | dropping = CN() |
736 | + | |
737 | - | end |
737 | + | part.Parent = workspace |
738 | - | Face = Face * dropping * CN(0, 0, -Go) |
738 | + | |
739 | - | Arr.CFrame = Face * CA(MR(-180), 0, 0) |
739 | + | part.Size = Vector3.new(3,3,3) |
740 | - | local hit, p = RayC(lastP, Face.p, Go+0.5, char) |
740 | + | |
741 | - | local eff = Part(Mo, true, false, 0, 0, "White", 0.2, 1, 0.2) |
741 | + | part.Anchored = true |
742 | - | local magn = (lastP - Face.p).magnitude |
742 | + | |
743 | - | local cf = CN(lastP, Face.p) * CA(MR(-90), 0, 0) |
743 | + | part.CFrame = CFrame.new(pof) |
744 | - | if hit then |
744 | + | |
745 | - | magn = (lastP - p).magnitude |
745 | + | part.CFrame = part.CFrame * CFrame.Angles(1.2,0,0) |
746 | - | cf = CN(lastP, p) * CA(MR(-90), 0, 0) |
746 | + | |
747 | - | end |
747 | + | part.Transparency = 1 |
748 | - | local mes2 = Instance.new("SpecialMesh",eff) |
748 | + | |
749 | - | mes2.Scale = Vector3.new(0.6, magn, 0.6) |
749 | + | coroutine.resume(coroutine.create(function() |
750 | - | eff.CFrame = cf * CN(0, magn/2, 0) |
750 | + | |
751 | - | Notime(function() |
751 | + | for i=1, 100 do |
752 | - | for i = 0, 1, 0.12 do |
752 | + | |
753 | - | wait() |
753 | + | wait() |
754 | - | eff.Transparency = i |
754 | + | |
755 | - | eff.Reflectance = 0.15*i |
755 | + | part.CFrame = part.CFrame * CFrame.Angles(0,0,0.4) |
756 | - | mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i) |
756 | + | |
757 | - | end |
757 | + | end |
758 | - | eff:remove() |
758 | + | |
759 | - | end) |
759 | + | end)) |
760 | - | local realhit = hit |
760 | + | |
761 | - | if hit2 then realhit = hit2 p = pos2 end |
761 | + | local explode = Instance.new("Explosion") |
762 | - | if hit or hit2 then |
762 | + | |
763 | - | local h = getHumanoid(realhit.Parent) |
763 | + | explode.Parent = char |
764 | - | local sound = Sounds.Stick |
764 | + | |
765 | - | if h and hit.Parent.className ~= "Hat" then |
765 | + | explode.BlastRadius = 11 |
766 | - | local d = MRA(12+DMG+(power/8), 20+DMG+(power/5.5)) |
766 | + | |
767 | - | if hit.Name == "Head" then |
767 | + | explode.BlastPressure = 400000 |
768 | - | d = math.floor(d*1.4) |
768 | + | |
769 | - | end |
769 | + | explode.Position = part.Position |
770 | - | Dmg(h, d, p) |
770 | + | |
771 | - | sound = Sounds.Hit |
771 | + | explode.archivable = false |
772 | - | elseif h == nil and realhit.Parent.className ~= "Hat" then |
772 | + | |
773 | - | if realhit.Anchored == false then |
773 | + | wait(0.3) |
774 | - | Notime(function() |
774 | + | |
775 | - | wait(0.08) |
775 | + | wa.C1 = original |
776 | - | local mas = realhit:GetMass()/5+2 |
776 | + | |
777 | - | local vel = (16+(power/3))/mas |
777 | + | wait(0.7) |
778 | - | if vel < 0 then vel = 0 end |
778 | + | |
779 | - | realhit.Velocity = (CN(lastP, p).lookVector) * vel |
779 | + | fire.Enabled = false |
780 | - | end) |
780 | + | |
781 | - | end |
781 | + | smoke.Enabled = false |
782 | - | end |
782 | + | |
783 | - | local a = -1.2 |
783 | + | wait(0.2) |
784 | - | if realhit.Anchored then |
784 | + | |
785 | - | Arr.CFrame = CN(p, lastP) * CN(0, 0, a) |
785 | + | part:remove() |
786 | - | if realhit == hit2 then |
786 | + | |
787 | - | Arr.CFrame = CN(Start, pos2) * CN(0, 0, -1.9) |
787 | + | wait(1) |
788 | - | end |
788 | + | |
789 | - | else |
789 | + | enabled = false |
790 | - | a = (power-200)/110 |
790 | + | |
791 | - | local w8 = 13 |
791 | + | elseif (key == "q") then |
792 | - | if realhit.Parent.className == "Hat" then |
792 | + | |
793 | - | a = ((power/2)-170)/110 |
793 | + | if enabled == true then return end |
794 | - | w8 = 5 |
794 | + | |
795 | - | end |
795 | + | enabled = true |
796 | - | Arr.Anchored = false |
796 | + | |
797 | - | local w = Weld(realhit, Arr, 0, 0, 0, 0, 0, 0) |
797 | + | handle2.BrickColor = BrickColor.new(windc) |
798 | - | w.C1 = ((CN(p, lastP) * CN(0, 0, a)):toObjectSpace(realhit.CFrame)) |
798 | + | |
799 | - | if realhit == hit2 then |
799 | + | brick2.BrickColor = handle2.BrickColor |
800 | - | w.C1 = ((CN(Start, pos2) * CN(0, 0, -1.9)):toObjectSpace(realhit.CFrame)) |
800 | + | |
801 | - | end |
801 | + | brick3.BrickColor = handle2.BrickColor |
802 | - | Notime(function() |
802 | + | |
803 | - | if power < 50 then |
803 | + | for i=1, 8 do |
804 | - | wait(w8+power/7.5) |
804 | + | |
805 | - | local caa = Arr.CFrame |
805 | + | wait(0.01) |
806 | - | w:remove() |
806 | + | |
807 | - | Arr.Size = Vector3.new(0.3, 0.3, 4) |
807 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0,-0.18) |
808 | - | Arr.CFrame = caa |
808 | + | |
809 | - | Arr.CanCollide = true |
809 | + | end |
810 | - | end |
810 | + | |
811 | - | end) |
811 | + | for i=1, 2 do |
812 | - | end |
812 | + | |
813 | - | didhit = true |
813 | + | wait(0.01) |
814 | - | Notime( |
814 | + | |
815 | - | function() |
815 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.15,0) |
816 | - | wait(26) |
816 | + | |
817 | - | for i = 0, 1, 0.02 do |
817 | + | end |
818 | - | Arr.Transparency = i |
818 | + | |
819 | - | wait() |
819 | + | wait(0.3) |
820 | - | end |
820 | + | |
821 | - | Arr:remove() |
821 | + | for i=1, 2 do |
822 | - | end |
822 | + | |
823 | - | ) |
823 | + | wait(0.01) |
824 | - | Play(sound) |
824 | + | |
825 | - | local Surface = DetectSurface(p, realhit) |
825 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) |
826 | - | AddDetail(Surface, p, h ~= nil and hit.Parent.className ~= "Hat", realhit, h) |
826 | + | |
827 | - | wait(0.05) |
827 | + | end |
828 | - | break |
828 | + | |
829 | - | end |
829 | + | local p = Instance.new("Part") |
830 | - | lastP = Face.p |
830 | + | |
831 | - | wait() |
831 | + | p.Parent = workspace |
832 | - | end |
832 | + | |
833 | - | if didhit == false then |
833 | + | p.Name = "Sword" |
834 | - | for i = 0, 1, 0.2 do |
834 | + | |
835 | - | Arr.Transparency = i |
835 | + | p.Size = Vector3.new(1,4,1) |
836 | - | wait() |
836 | + | |
837 | - | end |
837 | + | p.BottomSurface = 0 |
838 | - | Arr:remove() |
838 | + | |
839 | - | end |
839 | + | p.TopSurface = 0 |
840 | - | end |
840 | + | |
841 | p.Anchored = false | |
842 | - | function Shoot(mouse) |
842 | + | |
843 | - | Shooting = true |
843 | + | p.CanCollide = false |
844 | - | RAW.Part1 = Rarm |
844 | + | |
845 | - | Atch(FTorso) |
845 | + | p.CFrame = handle.CFrame |
846 | - | FTorso.Transparency = 0 |
846 | + | |
847 | - | torso.Transparency = 1 |
847 | + | p.CFrame = p.CFrame * CFrame.Angles(0,0,1.55) |
848 | - | local shoot = false |
848 | + | |
849 | - | Spec.BorderColor3 = C3() |
849 | + | p:BreakJoints() |
850 | - | local amg, omg = false, false |
850 | + | |
851 | - | Notime(function() |
851 | + | local mt = Instance.new("SpecialMesh") |
852 | - | repeat |
852 | + | |
853 | - | wait() |
853 | + | mt.Parent = p |
854 | - | until Selected == false or omg |
854 | + | |
855 | - | if omg == false then |
855 | + | mt.MeshType = "FileMesh" |
856 | - | omg = true |
856 | + | |
857 | - | Shooting = false |
857 | + | mt.MeshId = "http://www.roblox.com/asset/?id=12768042" |
858 | - | Reloading = false |
858 | + | |
859 | - | Hurt = false |
859 | + | mt.TextureId = "http://www.roblox.com/asset/?id=21262906" |
860 | - | Slashing = false |
860 | + | |
861 | - | Normal() |
861 | + | local bv = Instance.new("BodyVelocity") |
862 | - | EE() |
862 | + | |
863 | - | return |
863 | + | bv.Parent = p |
864 | - | end |
864 | + | |
865 | - | end) |
865 | + | bv.velocity = char.Torso.CFrame.lookVector * 45 |
866 | - | Notime(function() |
866 | + | |
867 | - | mouse.Button1Up:wait() |
867 | + | local bva = Instance.new("BodyAngularVelocity") |
868 | - | shoot = true |
868 | + | |
869 | - | end) |
869 | + | bva.Parent = p |
870 | - | for i = 0.16, 1, 0.16 do |
870 | + | |
871 | - | FWeld.C0 = CA(0, MR(-80*i), 0) |
871 | + | bva.angularvelocity = Vector3.new(0,14,0) |
872 | - | LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i) |
872 | + | |
873 | - | RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0) |
873 | + | p.Touched:connect(function(hit) |
874 | - | HW.C0 = CA(MR(180), 0, MR(150+60*i)) |
874 | + | |
875 | - | AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i) |
875 | + | if hit.Parent.Name == player.Name then return end |
876 | - | wait() |
876 | + | |
877 | - | end |
877 | + | local hum = hit.Parent:findFirstChild("Humanoid") |
878 | - | for i = 0.33, 1, 0.33 do |
878 | + | |
879 | - | FWeld.C0 = CA(0, MR(-80-10*i), 0) |
879 | + | if hum ~= nil then |
880 | - | LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1) |
880 | + | |
881 | - | RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0) |
881 | + | local hed = hit.Parent:findFirstChild("Head") |
882 | - | HW.C0 = CA(MR(180), 0, MR(210+5*i)) |
882 | + | |
883 | - | AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i) |
883 | + | if hed ~= nil then |
884 | - | wait() |
884 | + | |
885 | - | end |
885 | + | for i=1, 5 do |
886 | - | LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, -0.1) |
886 | + | |
887 | - | HW.C0 = CA(MR(180), 0, MR(215)) |
887 | + | wait() |
888 | - | FWeld.C0 = CA(0, MR(-90), 0) |
888 | + | |
889 | - | for i = 0.25, 1, 0.25 do |
889 | + | hed.Parent.Torso.Neck.C1 = hed.Parent.Torso.Neck.C1 * CFrame.new(0, 0, -0.9) |
890 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0) |
890 | + | |
891 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0) |
891 | + | end |
892 | - | SUW.C1 = CN(0, -0.22*i, 0) * ORSU |
892 | + | |
893 | - | SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
893 | + | hum.Health = 0 |
894 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0) |
894 | + | |
895 | - | SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
895 | + | wait(0.05) |
896 | - | SDW.C1 = CN(0, 0.25*i, 0) * ORSD |
896 | + | |
897 | - | wait() |
897 | + | hed.Velocity = Vector3.new(math.random(-30,30),40,math.random(-30,30)) |
898 | - | end |
898 | + | |
899 | - | for i = 0.33, 1, 0.33 do |
899 | + | hed.RotVelocity = Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) |
900 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0) |
900 | + | |
901 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0) |
901 | + | end |
902 | - | SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU |
902 | + | |
903 | - | SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
903 | + | hum.Health = 0 |
904 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0) |
904 | + | |
905 | - | SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
905 | + | end |
906 | - | SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD |
906 | + | |
907 | - | wait() |
907 | + | end) |
908 | - | end |
908 | + | |
909 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0) |
909 | + | local spi = true |
910 | - | local powe = 10 |
910 | + | |
911 | - | Main.Visible = true |
911 | + | coroutine.resume(coroutine.create(function() |
912 | - | Bar.Size = UD(powe/MaximumPower, 0, 1, 0) |
912 | + | |
913 | - | Notime(function() |
913 | + | while spi == true do |
914 | - | repeat wait() until powe >= MaximumPower or shoot |
914 | + | |
915 | - | wait(6) |
915 | + | local fad = p:clone() |
916 | - | if shoot == false then |
916 | + | |
917 | - | shoot = true |
917 | + | fad.Parent = workspace |
918 | - | end |
918 | + | |
919 | - | end) |
919 | + | fad.BrickColor = BrickColor.new(windc) |
920 | - | repeat |
920 | + | |
921 | - | wait() |
921 | + | fad.Transparency = 0.2 |
922 | - | powe = powe + 4.8 |
922 | + | |
923 | - | if powe > MaximumPower then powe = MaximumPower end |
923 | + | fad.Mesh.TextureId = "Clear" |
924 | - | Bar.Size = UD(powe/MaximumPower, 0, 1, 0) |
924 | + | |
925 | - | local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end |
925 | + | fad.Anchored = true |
926 | - | Hum.WalkSpeed = sped |
926 | + | |
927 | - | until shoot |
927 | + | coroutine.resume(coroutine.create(function() |
928 | - | Main.Visible = false |
928 | + | |
929 | - | Notime(function() |
929 | + | for i=1, 8 do |
930 | - | for i = 0.5, 1, 0.5 do |
930 | + | |
931 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0) |
931 | + | wait() |
932 | - | SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU |
932 | + | |
933 | - | SUM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4) |
933 | + | fad.Transparency = fad.Transparency + 0.1 |
934 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0) |
934 | + | |
935 | - | SDM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4) |
935 | + | end |
936 | - | SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD |
936 | + | |
937 | - | wait() |
937 | + | fad:remove() |
938 | - | end |
938 | + | |
939 | - | end) |
939 | + | end)) |
940 | - | local pos = mouse.Hit.p |
940 | + | |
941 | - | ArrowOn = false |
941 | + | wait() |
942 | - | Arrow.Transparency = 1 |
942 | + | |
943 | - | Notime(function() |
943 | + | end |
944 | - | Play(Sounds.Shoot) |
944 | + | |
945 | - | ShootArrow(pos, powe, mouse.Target) |
945 | + | end)) |
946 | - | end) |
946 | + | |
947 | - | for i = 0.2, 1, 0.2 do |
947 | + | for i=1, 4 do |
948 | - | FWeld.C0 = CA(0, MR(-90+25*i), 0) |
948 | + | |
949 | - | LAW.C0 = CA(MR(90+25*i), 0, MR(-60-15*i)) * CN(0.3-0.3*i, 0.4-0.4*i, -0.1+0.1*i) |
949 | + | wait(0.01) |
950 | - | RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0) |
950 | + | |
951 | - | HW.C0 = CA(MR(180), 0, MR(215-65*i)) |
951 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) |
952 | - | wait() |
952 | + | |
953 | - | end |
953 | + | end |
954 | - | Hum.WalkSpeed = 16 |
954 | + | |
955 | - | for i = 0.25, 1, 0.25 do |
955 | + | wait(0.3) |
956 | - | FWeld.C0 = CA(0, MR(-65+5*i), 0) |
956 | + | |
957 | - | LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i)) |
957 | + | for i=1, 7 do |
958 | - | RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0) |
958 | + | |
959 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
959 | + | wait(0.01) |
960 | - | wait() |
960 | + | |
961 | - | end |
961 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0.3) |
962 | - | for i = 0.14, 1, 0.14 do |
962 | + | |
963 | - | FWeld.C0 = CA(0, MR(-60+55*i), 0) |
963 | + | end |
964 | - | LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i)) |
964 | + | |
965 | - | RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0) |
965 | + | wa.C1 = original |
966 | - | wait() |
966 | + | |
967 | - | end |
967 | + | wait(0.3) |
968 | - | for i = 0.33, 1, 0.33 do |
968 | + | |
969 | - | FWeld.C0 = CA(0, MR(-5+5*i), 0) |
969 | + | enabled = false |
970 | - | LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i)) |
970 | + | |
971 | - | RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i)) |
971 | + | wait(1.2) |
972 | - | wait() |
972 | + | |
973 | - | end |
973 | + | spi = false |
974 | - | AW.C0 = CN() |
974 | + | |
975 | - | FWeld.C0 = CN() |
975 | + | wait() |
976 | - | LAW.C0 = CA(0, 0, MR(-30)) |
976 | + | |
977 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
977 | + | p:remove() |
978 | - | FTorso.Transparency = 1 |
978 | + | |
979 | - | torso.Transparency = 0 |
979 | + | elseif (key == "e") then |
980 | - | Atch(torso) |
980 | + | |
981 | - | Shooting = false |
981 | + | if enabled == true then return end |
982 | - | RAW.Part1 = nil |
982 | + | |
983 | - | RAW.C0 = CN() |
983 | + | enabled = true |
984 | - | Spec.BorderColor3 = C3() |
984 | + | |
985 | - | omg = true |
985 | + | myhum.WalkSpeed = 0 |
986 | - | end |
986 | + | |
987 | handle2.BrickColor = BrickColor.new(helthc) | |
988 | - | function SpecialAtk(mouse) |
988 | + | |
989 | - | if Special < 50 then return end |
989 | + | brick2.BrickColor = handle2.BrickColor |
990 | - | Shooting = true |
990 | + | |
991 | - | Spec.BorderColor3 = C3(0, 1, 0) |
991 | + | brick3.BrickColor = handle2.BrickColor |
992 | - | RAW.Part1 = Rarm |
992 | + | |
993 | - | Atch(FTorso) |
993 | + | hol = true |
994 | - | FTorso.Transparency = 0 |
994 | + | |
995 | - | torso.Transparency = 1 |
995 | + | for i=1, 6 do |
996 | - | local amg, omg = false, false |
996 | + | |
997 | - | Notime(function() |
997 | + | wait(0.01) |
998 | - | repeat |
998 | + | |
999 | - | wait() |
999 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.13,0,0) |
1000 | - | until Selected == false or omg |
1000 | + | |
1001 | - | if omg == false then |
1001 | + | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.1) |
1002 | - | omg = true |
1002 | + | |
1003 | - | Shooting = false |
1003 | + | end |
1004 | - | Reloading = false |
1004 | + | |
1005 | - | Hurt = false |
1005 | + | wait(0.5) |
1006 | - | Slashing = false |
1006 | + | |
1007 | - | Normal() |
1007 | + | for i=1, 3 do |
1008 | - | EE() |
1008 | + | |
1009 | - | return |
1009 | + | wait(0.01) |
1010 | - | end |
1010 | + | |
1011 | - | end) |
1011 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.4,0,0) |
1012 | - | local shoot = false |
1012 | + | |
1013 | - | Notime(function() |
1013 | + | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.23) |
1014 | - | mouse.Button1Up:wait() |
1014 | + | |
1015 | - | shoot = true |
1015 | + | end |
1016 | - | end) |
1016 | + | |
1017 | - | for i = 0.2, 1, 0.2 do |
1017 | + | local pf = Instance.new("Part") |
1018 | - | FWeld.C0 = CA(0, MR(-80*i), 0) |
1018 | + | |
1019 | - | LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i) |
1019 | + | pf.Parent = workspace |
1020 | - | RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0) |
1020 | + | |
1021 | - | HW.C0 = CA(MR(180), 0, MR(150+60*i)) |
1021 | + | pf.Name = "Healthbump" |
1022 | - | AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i) |
1022 | + | |
1023 | - | wait() |
1023 | + | pf.Size = Vector3.new(7,1,7) |
1024 | - | end |
1024 | + | |
1025 | - | for i = 0.5, 1, 0.5 do |
1025 | + | pf.BottomSurface = 0 |
1026 | - | FWeld.C0 = CA(0, MR(-80-10*i), 0) |
1026 | + | |
1027 | - | LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1) |
1027 | + | pf.TopSurface = 0 |
1028 | - | RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0) |
1028 | + | |
1029 | - | HW.C0 = CA(MR(180), 0, MR(210+5*i)) |
1029 | + | pf.Anchored = true |
1030 | - | AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i) |
1030 | + | |
1031 | - | wait() |
1031 | + | pf.CanCollide = false |
1032 | - | end |
1032 | + | |
1033 | - | LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, 0) |
1033 | + | pf.CFrame = char.Torso.CFrame * CFrame.new(0,-2.8, 0) |
1034 | - | HW.C0 = CA(MR(180), 0, MR(215)) |
1034 | + | |
1035 | - | FWeld.C0 = CA(0, MR(-90), 0) |
1035 | + | pf.Transparency = 0.3 |
1036 | - | AW.C0 = CA(MR(90), MR(-15), 0) * CN(0, 0, 2.2) |
1036 | + | |
1037 | - | for i = 0.33, 1, 0.33 do |
1037 | + | pf.BrickColor = handle2.BrickColor |
1038 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0) |
1038 | + | |
1039 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0) |
1039 | + | local meg = Instance.new("CylinderMesh") |
1040 | - | SUW.C1 = CN(0, -0.22*i, 0) * ORSU |
1040 | + | |
1041 | - | SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
1041 | + | meg.Parent = pf |
1042 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0) |
1042 | + | |
1043 | - | SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
1043 | + | meg.Scale = Vector3.new(0.6,0.8,0.6) |
1044 | - | SDW.C1 = CN(0, 0.25*i, 0) * ORSD |
1044 | + | |
1045 | - | wait() |
1045 | + | hecols = {"Bright green", "Lime green", "Dark green", "Camo"} |
1046 | - | end |
1046 | + | |
1047 | - | for i = 0.5, 1, 0.5 do |
1047 | + | coroutine.resume(coroutine.create(function() |
1048 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0) |
1048 | + | |
1049 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0) |
1049 | + | for i=1, 50 do |
1050 | - | SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU |
1050 | + | |
1051 | - | SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
1051 | + | wait() |
1052 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0) |
1052 | + | |
1053 | - | SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
1053 | + | pf.Transparency = pf.Transparency + 0.02 |
1054 | - | SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD |
1054 | + | |
1055 | - | wait() |
1055 | + | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) |
1056 | - | end |
1056 | + | |
1057 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0) |
1057 | + | end |
1058 | - | local powe = 0 |
1058 | + | |
1059 | - | Main.Visible = true |
1059 | + | end)) |
1060 | - | Bar.Size = UD(powe/MaximumPower, 0, 1, 0) |
1060 | + | |
1061 | - | Notime(function() |
1061 | + | while hol == true do |
1062 | - | repeat wait() until powe >= MaximumPower or shoot |
1062 | + | |
1063 | - | if shoot == false then |
1063 | + | wait(0) |
1064 | - | shoot = true |
1064 | + | |
1065 | - | end |
1065 | + | myhum.Health = myhum.Health + 0.5 |
1066 | - | end) |
1066 | + | |
1067 | - | repeat |
1067 | + | local chanc = math.random(1,20) |
1068 | - | wait() |
1068 | + | |
1069 | - | powe = powe + 5 |
1069 | + | if chanc == 8 then |
1070 | - | if powe > MaximumPower then powe = MaximumPower end |
1070 | + | |
1071 | - | Bar.Size = UD(powe/MaximumPower, 0, 1, 0) |
1071 | + | coroutine.resume(coroutine.create(function() |
1072 | - | local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end |
1072 | + | |
1073 | - | Hum.WalkSpeed = sped |
1073 | + | pf.Transparency = 0.3 |
1074 | - | until shoot |
1074 | + | |
1075 | - | Special = Special - 50 |
1075 | + | meg.Scale = Vector3.new(0.6,0.8,0.6) |
1076 | - | Main.Visible = false |
1076 | + | |
1077 | - | local pos = mouse.Hit.p |
1077 | + | for i=1, 50 do |
1078 | - | Notime(function() |
1078 | + | |
1079 | - | Play(Sounds.Shoot) |
1079 | + | wait() |
1080 | - | ShootArrow(pos, powe/1.2, mouse.Target) |
1080 | + | |
1081 | - | end) |
1081 | + | pf.Transparency = pf.Transparency + 0.02 |
1082 | - | SUW.C0 = CN(0, 0.15, 0) * CA(0, 0, 0) |
1082 | + | |
1083 | - | SUW.C1 = CN(0, 0, 0) * ORSU |
1083 | + | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) |
1084 | - | SUM.Scale = Vector3.new(0.4, 2.4, 0.4) |
1084 | + | |
1085 | - | SDW.C0 = CN(0, -0.15, 0) * CA(0, 0, 0) |
1085 | + | end |
1086 | - | SDM.Scale = Vector3.new(0.4, 2.4, 0.4) |
1086 | + | |
1087 | - | SDW.C1 = CN(0, 0, 0) * ORSD |
1087 | + | end)) |
1088 | - | for i = 0.33, 1, 0.33 do |
1088 | + | |
1089 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3*i, 0) |
1089 | + | end |
1090 | - | wait() |
1090 | + | |
1091 | - | end |
1091 | + | local hp = Instance.new("Part") |
1092 | - | for i = 0.33, 1, 0.33 do |
1092 | + | |
1093 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0) |
1093 | + | hp.Parent = workspace |
1094 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0) |
1094 | + | |
1095 | - | SUW.C1 = CN(0, -0.22*i, 0) * ORSU |
1095 | + | hp.formFactor = "Symmetric" |
1096 | - | SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
1096 | + | |
1097 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0) |
1097 | + | local randsiz = math.random(1,2) |
1098 | - | SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4) |
1098 | + | |
1099 | - | SDW.C1 = CN(0, 0.25*i, 0) * ORSD |
1099 | + | local col = math.random(1,4) |
1100 | - | wait() |
1100 | + | |
1101 | - | end |
1101 | + | hp.Size = Vector3.new(randsiz,randsiz,randsiz) |
1102 | - | for i = 0.5, 1, 0.5 do |
1102 | + | |
1103 | - | RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0) |
1103 | + | hp.BrickColor = BrickColor.new(hecols[col]) |
1104 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0) |
1104 | + | |
1105 | - | SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU |
1105 | + | hp.TopSurface = 0 |
1106 | - | SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
1106 | + | |
1107 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0) |
1107 | + | hp.BottomSurface = 0 |
1108 | - | SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4) |
1108 | + | |
1109 | - | SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD |
1109 | + | hp.Transparency = 0.1 |
1110 | - | wait() |
1110 | + | |
1111 | - | end |
1111 | + | hp.CFrame = char.Torso.CFrame * CFrame.new(math.random(-5,5),-3,math.random(-5,5)) |
1112 | - | Notime(function() |
1112 | + | |
1113 | - | Arrow.Transparency = 1 |
1113 | + | hp.CFrame = hp.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) |
1114 | - | ArrowOn = false |
1114 | + | |
1115 | - | Play(Sounds.Shoot) |
1115 | + | hp.CanCollide = false |
1116 | - | ShootArrow(pos, powe/1.2, mouse.Target) |
1116 | + | |
1117 | - | end) |
1117 | + | hp.Anchored = false |
1118 | - | Notime(function() |
1118 | + | |
1119 | - | for i = 0.5, 1, 0.5 do |
1119 | + | hp:BreakJoints() |
1120 | - | SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0) |
1120 | + | |
1121 | - | SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU |
1121 | + | local mf = Instance.new("SpecialMesh") |
1122 | - | SUM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4) |
1122 | + | |
1123 | - | SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0) |
1123 | + | mf.MeshType = "Brick" |
1124 | - | SDM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4) |
1124 | + | |
1125 | - | SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD |
1125 | + | mf.Parent = hp |
1126 | - | wait() |
1126 | + | |
1127 | - | end |
1127 | + | mf.Scale = Vector3.new(0.65,0.65,0.65) |
1128 | - | end) |
1128 | + | |
1129 | - | for i = 0.25, 1, 0.25 do |
1129 | + | local bv = Instance.new("BodyVelocity") |
1130 | - | FWeld.C0 = CA(0, MR(-90+25*i), 0) |
1130 | + | |
1131 | - | LAW.C0 = CA(MR(90+25*i), 0, MR(-60-15*i)) * CN(0.3-0.3*i, 0.4-0.4*i, -0.1+0.1*i) |
1131 | + | bv.Parent = hp |
1132 | - | RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0) |
1132 | + | |
1133 | - | HW.C0 = CA(MR(180), 0, MR(215-65*i)) |
1133 | + | bv.velocity = Vector3.new(0,10,0) |
1134 | - | wait() |
1134 | + | |
1135 | - | end |
1135 | + | coroutine.resume(coroutine.create(function() |
1136 | - | Hum.WalkSpeed = 16 |
1136 | + | |
1137 | - | for i = 0.33, 1, 0.33 do |
1137 | + | wait(0.9) |
1138 | - | FWeld.C0 = CA(0, MR(-65+5*i), 0) |
1138 | + | |
1139 | - | LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i)) |
1139 | + | for i=1, 9 do |
1140 | - | RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0) |
1140 | + | |
1141 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
1141 | + | hp.Transparency = hp.Transparency + 0.1 |
1142 | - | wait() |
1142 | + | |
1143 | - | end |
1143 | + | wait() |
1144 | - | for i = 0.16, 1, 0.16 do |
1144 | + | |
1145 | - | FWeld.C0 = CA(0, MR(-60+55*i), 0) |
1145 | + | end |
1146 | - | LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i)) |
1146 | + | |
1147 | - | RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0) |
1147 | + | hp:remove() |
1148 | - | wait() |
1148 | + | |
1149 | - | end |
1149 | + | end)) |
1150 | - | for i = 0.5, 1, 0.5 do |
1150 | + | |
1151 | - | FWeld.C0 = CA(0, MR(-5+5*i), 0) |
1151 | + | end |
1152 | - | LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i)) |
1152 | + | |
1153 | - | RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i)) |
1153 | + | elseif (key == "r") then |
1154 | - | wait() |
1154 | + | |
1155 | - | end |
1155 | + | if enabled == true then return end |
1156 | - | Spec.BorderColor3 = C3() |
1156 | + | |
1157 | - | AW.C0 = CN() |
1157 | + | enabled = true |
1158 | - | FWeld.C0 = CN() |
1158 | + | |
1159 | - | LAW.C0 = CA(0, 0, MR(-30)) |
1159 | + | myhum.WalkSpeed = 0 |
1160 | - | HW.C0 = CA(MR(180), 0, MR(150)) |
1160 | + | |
1161 | - | FTorso.Transparency = 1 |
1161 | + | handle2.BrickColor = BrickColor.new(elec) |
1162 | - | torso.Transparency = 0 |
1162 | + | |
1163 | - | Atch(torso) |
1163 | + | brick2.BrickColor = handle2.BrickColor |
1164 | - | Shooting = false |
1164 | + | |
1165 | - | RAW.Part1 = nil |
1165 | + | brick3.BrickColor = handle2.BrickColor |
1166 | - | RAW.C0 = CN() |
1166 | + | |
1167 | - | omg = false |
1167 | + | cols = {"Neon orange", "New Yeller", "Bright yellow", "Bright orange"} |
1168 | - | end |
1168 | + | |
1169 | for i=1, 6 do | |
1170 | - | function Sel(mouse) |
1170 | + | |
1171 | - | mouse.Icon = Icon |
1171 | + | wait(0.01) |
1172 | - | SelectAnim() |
1172 | + | |
1173 | - | Selected = true |
1173 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.11,0,0) |
1174 | - | mouse.KeyDown:connect(function(key) |
1174 | + | |
1175 | - | key = key:lower() |
1175 | + | end |
1176 | - | if Reloading == false and Slashing == false and Shooting == false then |
1176 | + | |
1177 | - | if key == "f" then |
1177 | + | wait(0.35) |
1178 | - | Reload() |
1178 | + | |
1179 | - | end |
1179 | + | tab = {} |
1180 | - | end |
1180 | + | |
1181 | - | if Shooting == false then |
1181 | + | for i=1, 50 do |
1182 | - | if key == "e" then |
1182 | + | |
1183 | - | Keys.e = true |
1183 | + | for i=1, 20 do |
1184 | - | local k |
1184 | + | |
1185 | - | Spec.BorderColor3 = C3(1, 1, 0.4) |
1185 | + | local a = Instance.new("Part") |
1186 | - | repeat |
1186 | + | |
1187 | - | wait() |
1187 | + | a.Parent = workspace |
1188 | - | k = mouse.KeyUp:wait() |
1188 | + | |
1189 | - | until k == "e" |
1189 | + | a.formFactor = "Symmetric" |
1190 | - | Keys.e = false |
1190 | + | |
1191 | - | if Shooting == false then |
1191 | + | a.Size = Vector3.new(4,1,1) |
1192 | - | Spec.BorderColor3 = C3() |
1192 | + | |
1193 | - | end |
1193 | + | a.TopSurface = 0 |
1194 | - | end |
1194 | + | |
1195 | - | end |
1195 | + | a.BottomSurface = 0 |
1196 | - | end) |
1196 | + | |
1197 | - | mouse.Button1Down:connect(function() |
1197 | + | local numb = math.random(1,4) |
1198 | - | if Reloading == false and Slashing == false and Shooting == false then |
1198 | + | |
1199 | - | if ArrowOn == false then |
1199 | + | a.BrickColor = BrickColor.new(cols[numb]) |
1200 | - | local yesh = true |
1200 | + | |
1201 | - | Notime(function() |
1201 | + | a.Anchored = true |
1202 | - | mouse.Button1Up:wait() |
1202 | + | |
1203 | - | yesh = false |
1203 | + | a.CanCollide = false |
1204 | - | end) |
1204 | + | |
1205 | - | local ah = Keys.e |
1205 | + | a.Transparency = 0.3 |
1206 | - | Reload() |
1206 | + | |
1207 | - | if yesh then |
1207 | + | local mo = Instance.new("SpecialMesh") |
1208 | - | local mm = Special >= 50 |
1208 | + | |
1209 | - | if ah and mm or Keys.e and mm then |
1209 | + | mo.Parent = a |
1210 | - | SpecialAtk(mouse) |
1210 | + | |
1211 | - | else |
1211 | + | mo.MeshType = "Brick" |
1212 | - | Shoot(mouse) |
1212 | + | |
1213 | - | end |
1213 | + | mo.Scale = Vector3.new(1,0.2,0.2) |
1214 | - | end |
1214 | + | |
1215 | - | else |
1215 | + | a.CFrame = handle2.CFrame |
1216 | - | local mm = Special >= 50 |
1216 | + | |
1217 | - | if Keys.e and mm then |
1217 | + | a.CFrame = a.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(2,0,0) |
1218 | - | SpecialAtk(mouse) |
1218 | + | |
1219 | - | else |
1219 | + | table.insert(tab, a) |
1220 | - | Shoot(mouse) |
1220 | + | |
1221 | - | end |
1221 | + | end |
1222 | - | end |
1222 | + | |
1223 | - | end |
1223 | + | wait() |
1224 | - | end) |
1224 | + | |
1225 | - | end |
1225 | + | for _, v in pairs(tab) do |
1226 | ||
1227 | - | function Desel(mouse) |
1227 | + | v:remove() |
1228 | - | Selected = false |
1228 | + | |
1229 | - | Main.Visible = false |
1229 | + | end |
1230 | - | Hum.WalkSpeed = 16 |
1230 | + | |
1231 | - | DeselectAnim() |
1231 | + | end |
1232 | - | end |
1232 | + | |
1233 | for i=1, 7 do | |
1234 | - | bin.Deselected:connect(Desel) |
1234 | + | |
1235 | - | bin.Selected:connect(Sel) |
1235 | + | wait(0.01) |
1236 | ||
1237 | - | while Mo.Parent == char do |
1237 | + | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.17,0.1,0) |
1238 | - | wait() |
1238 | + | |
1239 | - | Special = Special + 0.07 |
1239 | + | end |
1240 | - | if Special > MaxSpecial then Special = MaxSpecial end |
1240 | + | |
1241 | - | SpecialBar.Size = UDim2.new(Special/MaxSpecial, 0, 1, 0) |
1241 | + | coroutine.resume(coroutine.create(function() |
1242 | - | end |
1242 | + | |
1243 | for i=1, 10 do | |
1244 | ||
1245 | wait(0.2) | |
1246 | ||
1247 | local h = Instance.new("Part") | |
1248 | ||
1249 | h.Parent = workspace | |
1250 | ||
1251 | h.Shape = "Ball" | |
1252 | ||
1253 | h.Size = Vector3.new(3,3,3) | |
1254 | ||
1255 | h.TopSurface = 0 | |
1256 | ||
1257 | h.BottomSurface = 0 | |
1258 | ||
1259 | local numb = math.random(1,4) | |
1260 | ||
1261 | h.BrickColor = BrickColor.new(cols[numb]) | |
1262 | ||
1263 | h.Anchored = true | |
1264 | ||
1265 | h.CanCollide = false | |
1266 | ||
1267 | h.Transparency = 0.5 | |
1268 | ||
1269 | h.CFrame = handle2.CFrame | |
1270 | ||
1271 | local function magn(hif) | |
1272 | ||
1273 | if hif.Parent.Name == player.Name then return end | |
1274 | ||
1275 | local dist = (char.Torso.Position - hif.Position).magnitude | |
1276 | ||
1277 | if dist >= 10 then | |
1278 | ||
1279 | print(dist) | |
1280 | ||
1281 | local hum = hif.Parent:findFirstChild("Humanoid") | |
1282 | ||
1283 | if hum ~= nil then | |
1284 | ||
1285 | hum.Health = 0 | |
1286 | ||
1287 | end | |
1288 | ||
1289 | end | |
1290 | ||
1291 | end | |
1292 | ||
1293 | coroutine.resume(coroutine.create(function() | |
1294 | ||
1295 | for i=1, 30 do | |
1296 | ||
1297 | wait() | |
1298 | ||
1299 | magn(char.Torso) | |
1300 | ||
1301 | end | |
1302 | ||
1303 | end)) | |
1304 | ||
1305 | coroutine.resume(coroutine.create(function() | |
1306 | ||
1307 | for i=1, 30 do | |
1308 | ||
1309 | wait(0.04) | |
1310 | ||
1311 | h.Size = h.Size + Vector3.new(2,2,2) | |
1312 | ||
1313 | h.Transparency = h.Transparency + 0.023 | |
1314 | ||
1315 | h.CFrame = handle2.CFrame | |
1316 | ||
1317 | end | |
1318 | ||
1319 | h:remove() | |
1320 | ||
1321 | end)) | |
1322 | ||
1323 | end | |
1324 | ||
1325 | end)) | |
1326 | ||
1327 | for i=1, 19 do | |
1328 | ||
1329 | for i=1, 30 do | |
1330 | ||
1331 | local f = Instance.new("Part") | |
1332 | ||
1333 | f.Parent = workspace | |
1334 | ||
1335 | f.formFactor = "Symmetric" | |
1336 | ||
1337 | f.Size = Vector3.new(25,1,1) | |
1338 | ||
1339 | f.TopSurface = 0 | |
1340 | ||
1341 | f.BottomSurface = 0 | |
1342 | ||
1343 | local numb = math.random(1,4) | |
1344 | ||
1345 | f.BrickColor = BrickColor.new(cols[numb]) | |
1346 | ||
1347 | f.Anchored = true | |
1348 | ||
1349 | f.CanCollide = false | |
1350 | ||
1351 | f.Transparency = 0.3 | |
1352 | ||
1353 | local mo = Instance.new("SpecialMesh") | |
1354 | ||
1355 | mo.Parent = f | |
1356 | ||
1357 | mo.MeshType = "Brick" | |
1358 | ||
1359 | mo.Scale = Vector3.new(1,math.random(0.8,1.7),math.random(0.8,1.7)) | |
1360 | ||
1361 | f.CFrame = handle2.CFrame | |
1362 | ||
1363 | f.CFrame = f.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(12.5,0,0) | |
1364 | ||
1365 | table.insert(tab, f) | |
1366 | ||
1367 | end | |
1368 | ||
1369 | wait(0.1) | |
1370 | ||
1371 | for _, v in pairs(tab) do | |
1372 | ||
1373 | v:remove() | |
1374 | ||
1375 | end | |
1376 | ||
1377 | end | |
1378 | ||
1379 | myhum.WalkSpeed = norm | |
1380 | ||
1381 | enabled = false | |
1382 | ||
1383 | end | |
1384 | ||
1385 | end) | |
1386 | ||
1387 | mouse.KeyUp:connect(function(key) | |
1388 | ||
1389 | key = key:lower() | |
1390 | ||
1391 | if (key == "k") then | |
1392 | ||
1393 | hol = false | |
1394 | ||
1395 | for i=1, 6 do | |
1396 | ||
1397 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,0) | |
1398 | ||
1399 | wait() | |
1400 | ||
1401 | end | |
1402 | ||
1403 | wa.C1 = original | |
1404 | ||
1405 | enabled = false | |
1406 | ||
1407 | wait(0.3) | |
1408 | ||
1409 | wa.C1 = original | |
1410 | ||
1411 | elseif (key == "e") then | |
1412 | ||
1413 | hol = false | |
1414 | ||
1415 | for i=1, 6 do | |
1416 | ||
1417 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.02,0) | |
1418 | ||
1419 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.24) | |
1420 | ||
1421 | wait() | |
1422 | ||
1423 | end | |
1424 | ||
1425 | myhum.WalkSpeed = norm | |
1426 | ||
1427 | for i=1, 5 do | |
1428 | ||
1429 | wait(0.15) | |
1430 | ||
1431 | wa.C1 = original | |
1432 | ||
1433 | weld.C1 = weporigin | |
1434 | ||
1435 | end | |
1436 | ||
1437 | enabled = false | |
1438 | ||
1439 | end | |
1440 | ||
1441 | end) | |
1442 | ||
1443 | mouse.Button1Down:connect(function() | |
1444 | ||
1445 | e = char.Torso | |
1446 | ||
1447 | wait(0.2) | |
1448 | ||
1449 | e.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,2.5,0) | |
1450 | ||
1451 | end) | |
1452 | ||
1453 | end | |
1454 | ||
1455 | ||
1456 | ||
1457 | function deselect() | |
1458 | ||
1459 | spin = false | |
1460 | ||
1461 | for i = 1, 8 do | |
1462 | ||
1463 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) | |
1464 | ||
1465 | wait() | |
1466 | ||
1467 | end | |
1468 | ||
1469 | for i = 1, 4 do | |
1470 | ||
1471 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
1472 | ||
1473 | wait() | |
1474 | ||
1475 | end | |
1476 | ||
1477 | toha.Part0 = toha.Parent | |
1478 | ||
1479 | toha.Part1 = handle | |
1480 | ||
1481 | weld.Part0 = nil | |
1482 | ||
1483 | weld.Part1 = nil | |
1484 | ||
1485 | wait() | |
1486 | ||
1487 | wa.Part0 = nil | |
1488 | ||
1489 | wa.Part1 = nil | |
1490 | ||
1491 | end | |
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | script.Parent.Selected:connect(select) | |
1498 | ||
1499 | script.Parent.Deselected:connect(deselect) |