SHOW:
|
|
- or go back to the newest paste.
1 | - | script.Parent = nil |
1 | + | --[[lolololo!!]]-- |
2 | - | me = game.Players.XxrockatackxX |
2 | + | |
3 | Player = game:GetService("Players").LocalPlayer | |
4 | - | function getparts(path) |
4 | + | Character = Player.Character |
5 | - | local parts = {} |
5 | + | PlayerGui = Player.PlayerGui |
6 | - | for _,v in pairs(path:GetChildren()) do |
6 | + | Backpack = Player.Backpack |
7 | - | if v:IsA("BasePart") then |
7 | + | Torso = Character.Torso |
8 | - | table.insert(parts,v) |
8 | + | Head = Character.Head |
9 | LeftArm = Character["Left Arm"] | |
10 | - | for _,k in pairs(v:GetChildren()) do |
10 | + | LeftLeg = Character["Left Leg"] |
11 | - | if k:IsA("BasePart") then |
11 | + | RightArm = Character["Right Arm"] |
12 | - | table.insert(parts,k) |
12 | + | RightLeg = Character["Right Leg"] |
13 | LS = Torso["Left Shoulder"] | |
14 | - | for _,i in pairs(k:GetChildren()) do |
14 | + | LH = Torso["Left Hip"] |
15 | - | if i:IsA("BasePart") then |
15 | + | RS = Torso["Right Shoulder"] |
16 | - | table.insert(parts,i) |
16 | + | RH = Torso["Right Hip"] |
17 | attack = false | |
18 | attackdebounce = false | |
19 | combo = 0 | |
20 | mana = 400 | |
21 | - | return parts |
21 | + | HeroBar = 400 |
22 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
23 | mouse = nil | |
24 | mode = "Normal" | |
25 | - | function gui() |
25 | + | idle = true |
26 | - | distance = 110 |
26 | + | idleanim = false |
27 | - | sizemultiplier = 2 |
27 | + | Imbued = false |
28 | Resting = false | |
29 | - | dist = distance*sizemultiplier |
29 | + | Sleeping = false |
30 | Riding = false | |
31 | - | map = Instance.new("ScreenGui",me.PlayerGui) |
31 | + | spikecon = nil |
32 | - | map.Name = "Map" |
32 | + | heromode = false |
33 | local Color = Torso.BrickColor | |
34 | - | bg = Instance.new("ImageLabel",map) |
34 | + | HealBuff = false |
35 | - | bg.Size = UDim2.new(0,dist*2,0,dist*2) |
35 | + | WalkBuff = false |
36 | - | bg.Position = UDim2.new(0.02,0,0.24,0) |
36 | + | RageBuff = false |
37 | - | bg.Image = "http://www.roblox.com/asset/?id=42302151" |
37 | + | Healing = true |
38 | - | bg.BackgroundTransparency = 1 |
38 | + | RAEG = false |
39 | spearwave = false | |
40 | Bouncing = false | |
41 | - | mepoint = Instance.new("ImageLabel",bg) |
41 | + | cloning = 0 |
42 | - | mepoint.Size = UDim2.new(0,15,0,15) |
42 | + | --player |
43 | - | mepoint.Position = UDim2.new(0.46,0,0.46,0) |
43 | + | player = nil |
44 | - | mepoint.BackgroundTransparency = 1 |
44 | + | --save shoulders |
45 | - | mepoint.Image = "http://www.roblox.com/asset/?id=42302520" |
45 | + | RSH, LSH = nil, nil |
46 | --save hips | |
47 | RH, LH = nil, nil | |
48 | - | empoint = Instance.new("Frame") |
48 | + | --welds |
49 | - | empoint.Size = UDim2.new(0,12,0,12) |
49 | + | RW, LW = Instance.new("Weld"), Instance.new("Weld") |
50 | - | empoint.BorderSizePixel = 0 |
50 | + | RW2, LW2 = Instance.new("Weld"), Instance.new("Weld") |
51 | --what anim | |
52 | anim = "none" | |
53 | - | siz = Instance.new("TextLabel",bg) |
53 | + | |
54 | - | siz.Size = UDim2.new(0.3,0,0.06,0) |
54 | + | if Character:findFirstChild("Charibassa",true) ~= nil then |
55 | - | siz.Position = UDim2.new(0,0,-0.06,0) |
55 | + | Character:findFirstChild("Charibassa",true).Parent = nil |
56 | - | siz.Text = "Size multiply" |
56 | + | |
57 | - | siz.BackgroundColor3 = Color3.new(0.4,0.4,0.4) |
57 | + | if Character:findFirstChild("Chariot",true) ~= nil then |
58 | - | siz.BackgroundTransparency = 0.6 |
58 | + | Character:findFirstChild("Chariot",true).Parent = nil |
59 | end | |
60 | if Character:findFirstChild("Weapon",true) ~= nil then | |
61 | - | sizea = Instance.new("TextBox",siz) |
61 | + | Character:findFirstChild("Weapon",true).Parent = nil |
62 | - | sizea.Size = UDim2.new(1,0,1,0) |
62 | + | |
63 | - | sizea.Position = UDim2.new(0,0,1,0) |
63 | + | if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then |
64 | - | sizea.Text = 2 |
64 | + | Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil |
65 | - | sizea.BackgroundColor3 = Color3.new(0.4,0.4,0.4) |
65 | + | |
66 | - | sizea.BackgroundTransparency = 0.6 |
66 | + | |
67 | - | sizea.Changed:connect(function(prop) |
67 | + | |
68 | - | if prop == "Text" then |
68 | + | local modelzorz = Instance.new("Model") |
69 | - | sizemultiplier = sizea.Text |
69 | + | modelzorz.Name = "Charibassa" |
70 | modelzorz.Parent = Character | |
71 | - | end) |
71 | + | |
72 | local prt1 = Instance.new("Part") | |
73 | prt1.formFactor = 1 | |
74 | prt1.Parent = modelzorz | |
75 | prt1.CanCollide = true | |
76 | - | local objs = getparts(workspace) |
76 | + | prt1.BrickColor = BrickColor.new("Black") |
77 | - | for _,v in pairs(objs) do |
77 | + | prt1.Name = "Handle1" |
78 | - | if me.Character:findFirstChild("Head") then |
78 | + | prt1.Size = Vector3.new(1,3,1) |
79 | - | local di = (me.Character.Head.Position - v.Position).magnitude |
79 | + | prt1.Position = Torso.Position |
80 | - | if di < dist/(sizemultiplier+0.4) then |
80 | + | local prt2 = Instance.new("Part") |
81 | - | if v.Size.X < 20 or v.Size.Z < 20 then |
81 | + | prt2.formFactor = 1 |
82 | - | local pos = me.Character.Head.Position*sizemultiplier |
82 | + | prt2.Parent = modelzorz |
83 | - | local pos2 = v.Position*sizemultiplier |
83 | + | prt2.CanCollide = false |
84 | - | local cool1 = -(pos2.X - pos.X) |
84 | + | prt2.BrickColor = BrickColor.new("Black") |
85 | - | local cool2 = -(pos2.Z - pos.Z) |
85 | + | prt2.Name = "Handle2" |
86 | - | local um = empoint:clone() |
86 | + | prt2.Size = Vector3.new(1,2,1) |
87 | - | um.Parent = mepoint |
87 | + | prt2.Position = Torso.Position |
88 | - | local ok1 = v.Size.X*sizemultiplier |
88 | + | local prt3 = Instance.new("Part") |
89 | - | local ok2 = v.Size.Z*sizemultiplier |
89 | + | prt3.formFactor = 1 |
90 | - | um.BackgroundColor = v.BrickColor |
90 | + | prt3.Parent = modelzorz |
91 | - | um.BackgroundTransparency = v.Transparency/2 |
91 | + | prt3.CanCollide = false |
92 | - | um.Size = UDim2.new(0,ok1,0,ok2) |
92 | + | prt3.BrickColor = Color |
93 | - | um.Position = UDim2.new(0,cool1-(um.Size.X.Offset/2)+6,0,cool2-(um.Size.Y.Offset/2)+6) |
93 | + | prt3.Name = "Handle3" |
94 | - | coroutine.resume(coroutine.create(function() wait(0.14) um:remove() end)) |
94 | + | prt3.Size = Vector3.new(1,1,1) |
95 | prt3.Position = Torso.Position | |
96 | local prt4 = Instance.new("Part") | |
97 | prt4.formFactor = 1 | |
98 | prt4.Parent = modelzorz | |
99 | prt4.CanCollide = false | |
100 | prt4.BrickColor = BrickColor.new("Black") | |
101 | prt4.Name = "Handle4" | |
102 | prt4.Size = Vector3.new(1,3,1) | |
103 | - | gui(me) |
103 | + | prt4.Position = Torso.Position |
104 | - | change = function(por) |
104 | + | local prt5 = Instance.new("Part") |
105 | - | if por == "Character" then |
105 | + | prt5.formFactor = 1 |
106 | - | gui(me) |
106 | + | prt5.Parent = modelzorz |
107 | prt5.CanCollide = false | |
108 | prt5.BrickColor = Color | |
109 | prt5.Name = "Handle5" | |
110 | - | me.Changed:connect(change) |
110 | + | prt5.Size = Vector3.new(1,1,1) |
111 | prt5.Position = Torso.Position | |
112 | local prt6 = Instance.new("Part") | |
113 | prt6.formFactor = 1 | |
114 | prt6.Parent = modelzorz | |
115 | prt6.CanCollide = false | |
116 | prt6.BrickColor = Color | |
117 | prt6.Name = "Handle6" | |
118 | prt6.Size = Vector3.new(1,1,1) | |
119 | prt6.Position = Torso.Position | |
120 | local prt7 = Instance.new("Part") | |
121 | prt7.formFactor = 1 | |
122 | prt7.Parent = modelzorz | |
123 | prt7.CanCollide = false | |
124 | prt7.BrickColor = Color | |
125 | prt7.Name = "Handle7" | |
126 | prt7.Size = Vector3.new(1,1,1) | |
127 | prt7.Position = Torso.Position | |
128 | local prt8 = Instance.new("Part") | |
129 | prt8.formFactor = 1 | |
130 | prt8.Parent = modelzorz | |
131 | prt8.CanCollide = false | |
132 | prt8.BrickColor = Color | |
133 | prt8.Name = "Handle8" | |
134 | prt8.Size = Vector3.new(1,1,1) | |
135 | prt8.Position = Torso.Position | |
136 | local prt9 = Instance.new("Part") | |
137 | prt9.formFactor = 1 | |
138 | prt9.Parent = modelzorz | |
139 | prt9.CanCollide = false | |
140 | prt9.BrickColor = Color | |
141 | prt9.Name = "Handle9" | |
142 | prt9.Size = Vector3.new(1,1,1) | |
143 | prt9.Position = Torso.Position | |
144 | local prt10 = Instance.new("Part") | |
145 | prt10.formFactor = 1 | |
146 | prt10.Parent = modelzorz | |
147 | prt10.CanCollide = false | |
148 | prt10.BrickColor = BrickColor.new("Black") | |
149 | prt10.Name = "Blade1" | |
150 | prt10.Size = Vector3.new(1,1,1) | |
151 | prt10.Position = Torso.Position | |
152 | local prt11 = Instance.new("Part") | |
153 | prt11.formFactor = 1 | |
154 | prt11.Parent = modelzorz | |
155 | prt11.CanCollide = false | |
156 | prt11.BrickColor = BrickColor.new("Black") | |
157 | prt11.Name = "Blade2" | |
158 | prt11.Size = Vector3.new(1,1,1) | |
159 | prt11.Position = Torso.Position | |
160 | local prt12 = Instance.new("Part") | |
161 | prt12.formFactor = 1 | |
162 | prt12.Parent = modelzorz | |
163 | prt12.CanCollide = false | |
164 | prt12.BrickColor = BrickColor.new("Black") | |
165 | prt12.Name = "Blade3" | |
166 | prt12.Size = Vector3.new(1,1,1) | |
167 | prt12.Position = Torso.Position | |
168 | local prt13 = Instance.new("Part") | |
169 | prt13.formFactor = 1 | |
170 | prt13.Parent = modelzorz | |
171 | prt13.CanCollide = false | |
172 | prt13.BrickColor = BrickColor.new("Black") | |
173 | prt13.Name = "Blade4" | |
174 | prt13.Size = Vector3.new(1,1,1) | |
175 | prt13.Position = Torso.Position | |
176 | local prt14 = Instance.new("Part") | |
177 | prt14.formFactor = 1 | |
178 | prt14.Parent = modelzorz | |
179 | prt14.CanCollide = false | |
180 | prt14.BrickColor = BrickColor.new("Black") | |
181 | prt14.Name = "Blade5" | |
182 | prt14.Size = Vector3.new(1,1,1) | |
183 | prt14.Position = Torso.Position | |
184 | local prt15 = Instance.new("Part") | |
185 | prt15.formFactor = 1 | |
186 | prt15.Parent = modelzorz | |
187 | prt15.CanCollide = false | |
188 | prt15.BrickColor = BrickColor.new("Black") | |
189 | prt15.Name = "Blade6" | |
190 | prt15.Size = Vector3.new(1,1,1) | |
191 | prt15.Position = Torso.Position | |
192 | local prt16 = Instance.new("Part") | |
193 | prt16.formFactor = 1 | |
194 | prt16.Parent = modelzorz | |
195 | prt16.CanCollide = false | |
196 | prt16.BrickColor = BrickColor.new("Black") | |
197 | prt16.Name = "Blade7" | |
198 | prt16.Size = Vector3.new(1,1,1) | |
199 | prt16.Position = Torso.Position | |
200 | local prt17 = Instance.new("Part") | |
201 | prt17.formFactor = 1 | |
202 | prt17.Parent = modelzorz | |
203 | prt17.CanCollide = false | |
204 | prt17.BrickColor = BrickColor.new("Black") | |
205 | prt17.Name = "Blade8" | |
206 | prt17.Size = Vector3.new(1,1,1) | |
207 | prt17.Position = Torso.Position | |
208 | local prt18 = Instance.new("Part") | |
209 | prt18.formFactor = 1 | |
210 | prt18.Parent = modelzorz | |
211 | prt18.CanCollide = false | |
212 | prt18.BrickColor = BrickColor.new("Black") | |
213 | prt18.Name = "Blade9" | |
214 | prt18.Size = Vector3.new(1,1,1) | |
215 | prt18.Position = Torso.Position | |
216 | local prt19 = Instance.new("Part") | |
217 | prt19.formFactor = 1 | |
218 | prt19.Parent = modelzorz | |
219 | prt19.CanCollide = false | |
220 | prt19.BrickColor = BrickColor.new("Black") | |
221 | prt19.Name = "Blade10" | |
222 | prt19.Size = Vector3.new(1,1,1) | |
223 | prt19.Position = Torso.Position | |
224 | local prt20 = Instance.new("Part") | |
225 | prt20.formFactor = 1 | |
226 | prt20.Parent = modelzorz | |
227 | prt20.CanCollide = false | |
228 | prt20.BrickColor = BrickColor.new("Black") | |
229 | prt20.Name = "Blade11" | |
230 | prt20.Size = Vector3.new(1,1,1) | |
231 | prt20.Position = Torso.Position | |
232 | local prt21 = Instance.new("Part") | |
233 | prt21.formFactor = 1 | |
234 | prt21.Parent = modelzorz | |
235 | prt21.CanCollide = false | |
236 | prt21.BrickColor = BrickColor.new("Black") | |
237 | prt21.Name = "Blade12" | |
238 | prt21.Size = Vector3.new(1,1,1) | |
239 | prt21.Position = Torso.Position | |
240 | local prt22 = Instance.new("Part") | |
241 | prt22.formFactor = 1 | |
242 | prt22.Parent = modelzorz | |
243 | prt22.CanCollide = false | |
244 | prt22.BrickColor = BrickColor.new("Black") | |
245 | prt22.Name = "Blade13" | |
246 | prt22.Size = Vector3.new(1,1,1) | |
247 | prt22.Position = Torso.Position | |
248 | local prt23 = Instance.new("Part") | |
249 | prt23.formFactor = 1 | |
250 | prt23.Parent = modelzorz | |
251 | prt23.CanCollide = false | |
252 | prt23.BrickColor = BrickColor.new("Black") | |
253 | prt23.Name = "Blade14" | |
254 | prt23.Size = Vector3.new(1,1,1) | |
255 | prt23.Position = Torso.Position | |
256 | local prt24 = Instance.new("Part") | |
257 | prt24.formFactor = 1 | |
258 | prt24.Parent = modelzorz | |
259 | prt24.CanCollide = false | |
260 | prt24.BrickColor = BrickColor.new("Black") | |
261 | prt24.Name = "Blade15" | |
262 | prt24.Size = Vector3.new(1,1,1) | |
263 | prt24.Position = Torso.Position | |
264 | local prt25 = Instance.new("Part") | |
265 | prt25.formFactor = 1 | |
266 | prt25.Parent = modelzorz | |
267 | prt25.CanCollide = false | |
268 | prt25.BrickColor = Color | |
269 | prt25.Name = "Blade16" | |
270 | prt25.Size = Vector3.new(1,1,1) | |
271 | prt25.Position = Torso.Position | |
272 | local prt26 = Instance.new("Part") | |
273 | prt26.formFactor = 1 | |
274 | prt26.Parent = modelzorz | |
275 | prt26.CanCollide = false | |
276 | prt26.BrickColor = BrickColor.new("Black") | |
277 | prt26.Name = "Blade17" | |
278 | prt26.Size = Vector3.new(1,1,1) | |
279 | prt26.Position = Torso.Position | |
280 | local prt27 = Instance.new("Part") | |
281 | prt27.formFactor = 1 | |
282 | prt27.Parent = modelzorz | |
283 | prt27.CanCollide = false | |
284 | prt27.BrickColor = BrickColor.new("Black") | |
285 | prt27.Name = "Blade18" | |
286 | prt27.Reflectance = 0.2 | |
287 | prt27.Size = Vector3.new(1,1,2) | |
288 | prt27.Position = Torso.Position | |
289 | local prt28 = Instance.new("Part") | |
290 | prt28.formFactor = 1 | |
291 | prt28.Parent = modelzorz | |
292 | prt28.CanCollide = false | |
293 | prt28.BrickColor = BrickColor.new("Black") | |
294 | prt28.Name = "Blade19" | |
295 | prt28.Reflectance = 0.2 | |
296 | prt28.Size = Vector3.new(1,1,2) | |
297 | prt28.Position = Torso.Position | |
298 | modelzorz:BreakJoints() | |
299 | --local f = Instance.new("ForceField") | |
300 | --f.Parent = prt27 | |
301 | ||
302 | local msh1 = Instance.new("CylinderMesh") | |
303 | msh1.Parent = prt1 | |
304 | msh1.Scale = Vector3.new(0.3,1,0.3) | |
305 | local msh2 = Instance.new("CylinderMesh") | |
306 | msh2.Parent = prt2 | |
307 | msh2.Scale = Vector3.new(0.2,1,0.2) | |
308 | local msh3 = Instance.new("SpecialMesh") | |
309 | msh3.Parent = prt3 | |
310 | msh3.Scale = Vector3.new(0.3,0.3,0.3) | |
311 | local msh4 = Instance.new("CylinderMesh") | |
312 | msh4.Parent = prt4 | |
313 | msh4.Scale = Vector3.new(0.4,0.8,0.4) | |
314 | local msh5 = Instance.new("CylinderMesh") | |
315 | msh5.Parent = prt5 | |
316 | msh5.Scale = Vector3.new(0.45,0.1,0.45) | |
317 | local msh6 = Instance.new("CylinderMesh") | |
318 | msh6.Parent = prt6 | |
319 | msh6.Scale = Vector3.new(0.45,0.1,0.45) | |
320 | local msh7 = Instance.new("CylinderMesh") | |
321 | msh7.Parent = prt7 | |
322 | msh7.Scale = Vector3.new(0.45,0.1,0.45) | |
323 | local msh8 = Instance.new("CylinderMesh") | |
324 | msh8.Parent = prt8 | |
325 | msh8.Scale = Vector3.new(0.3,0.4,0.3) | |
326 | local msh9 = Instance.new("SpecialMesh") | |
327 | msh9.Parent = prt9 | |
328 | msh9.MeshType = "Sphere" | |
329 | msh9.Scale = Vector3.new(0.5,0.5,0.5) | |
330 | local msh10 = Instance.new("BlockMesh") | |
331 | msh10.Parent = prt10 | |
332 | msh10.Scale = Vector3.new(0.2,0.7,0.2) | |
333 | local msh11 = Instance.new("BlockMesh") | |
334 | msh11.Parent = prt11 | |
335 | msh11.Scale = Vector3.new(0.2,0.8,0.2) | |
336 | local msh12 = Instance.new("BlockMesh") | |
337 | msh12.Parent = prt12 | |
338 | msh12.Scale = Vector3.new(0.2,0.9,0.2) | |
339 | local msh13 = Instance.new("BlockMesh") | |
340 | msh13.Parent = prt13 | |
341 | msh13.Scale = Vector3.new(0.2,1,0.2) | |
342 | local msh14 = Instance.new("BlockMesh") | |
343 | msh14.Parent = prt14 | |
344 | msh14.Scale = Vector3.new(0.2,1.1,0.2) | |
345 | local msh15 = Instance.new("BlockMesh") | |
346 | msh15.Parent = prt15 | |
347 | msh15.Scale = Vector3.new(0.2,1.2,0.2) | |
348 | local msh16 = Instance.new("BlockMesh") | |
349 | msh16.Parent = prt16 | |
350 | msh16.Scale = Vector3.new(0.2,1.3,0.2) | |
351 | local msh17 = Instance.new("BlockMesh") | |
352 | msh17.Parent = prt17 | |
353 | msh17.Scale = Vector3.new(0.2,0.7,0.2) | |
354 | local msh18 = Instance.new("BlockMesh") | |
355 | msh18.Parent = prt18 | |
356 | msh18.Scale = Vector3.new(0.2,0.8,0.2) | |
357 | local msh19 = Instance.new("BlockMesh") | |
358 | msh19.Parent = prt19 | |
359 | msh19.Scale = Vector3.new(0.2,0.9,0.2) | |
360 | local msh20 = Instance.new("BlockMesh") | |
361 | msh20.Parent = prt20 | |
362 | msh20.Scale = Vector3.new(0.2,1,0.2) | |
363 | local msh21 = Instance.new("BlockMesh") | |
364 | msh21.Parent = prt21 | |
365 | msh21.Scale = Vector3.new(0.2,1.1,0.2) | |
366 | local msh22 = Instance.new("BlockMesh") | |
367 | msh22.Parent = prt22 | |
368 | msh22.Scale = Vector3.new(0.2,1.2,0.2) | |
369 | local msh23 = Instance.new("BlockMesh") | |
370 | msh23.Parent = prt23 | |
371 | msh23.Scale = Vector3.new(0.2,1.3,0.2) | |
372 | local msh24 = Instance.new("SpecialMesh") | |
373 | msh24.Parent = prt24 | |
374 | msh24.MeshType = "FileMesh" | |
375 | msh24.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
376 | msh24.Scale = Vector3.new(0.4,0.3,0.3) | |
377 | local msh25 = Instance.new("CylinderMesh") | |
378 | msh25.Parent = prt25 | |
379 | msh25.Scale = Vector3.new(0.8,0.4,0.8) | |
380 | local msh26 = Instance.new("CylinderMesh") | |
381 | msh26.Parent = prt26 | |
382 | msh26.Scale = Vector3.new(0.5,0.5,0.5) | |
383 | local msh27 = Instance.new("SpecialMesh") | |
384 | msh27.Parent = prt27 | |
385 | msh27.MeshType = "Wedge" | |
386 | msh27.Scale = Vector3.new(0.3,0.5,1) | |
387 | local msh28 = Instance.new("SpecialMesh") | |
388 | msh28.Parent = prt28 | |
389 | msh28.MeshType = "Wedge" | |
390 | msh28.Scale = Vector3.new(0.3,0.5,1) | |
391 | ||
392 | local wld1 = Instance.new("Weld") | |
393 | wld1.Parent = prt1 | |
394 | wld1.Part0 = prt1 | |
395 | wld1.Part1 = Torso | |
396 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,2.3) * CFrame.new(1,-1,-0.7) | |
397 | local wld2 = Instance.new("Weld") | |
398 | wld2.Parent = prt2 | |
399 | wld2.Part0 = prt2 | |
400 | wld2.Part1 = prt1 | |
401 | wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0) | |
402 | local wld3 = Instance.new("Weld") | |
403 | wld3.Parent = prt3 | |
404 | wld3.Part0 = prt3 | |
405 | wld3.Part1 = prt2 | |
406 | wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.9,0) | |
407 | local wld4 = Instance.new("Weld") | |
408 | wld4.Parent = prt4 | |
409 | wld4.Part0 = prt4 | |
410 | wld4.Part1 = prt1 | |
411 | wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2,0) | |
412 | local wld5 = Instance.new("Weld") | |
413 | wld5.Parent = prt5 | |
414 | wld5.Part0 = prt5 | |
415 | wld5.Part1 = prt4 | |
416 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0) | |
417 | local wld6 = Instance.new("Weld") | |
418 | wld6.Parent = prt6 | |
419 | wld6.Part0 = prt6 | |
420 | wld6.Part1 = prt4 | |
421 | wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0) | |
422 | local wld7 = Instance.new("Weld") | |
423 | wld7.Parent = prt7 | |
424 | wld7.Part0 = prt7 | |
425 | wld7.Part1 = prt4 | |
426 | wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
427 | local wld8 = Instance.new("Weld") | |
428 | wld8.Parent = prt8 | |
429 | wld8.Part0 = prt8 | |
430 | wld8.Part1 = prt4 | |
431 | wld8.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,-0.6,0) | |
432 | local wld9 = Instance.new("Weld") | |
433 | wld9.Parent = prt9 | |
434 | wld9.Part0 = prt9 | |
435 | wld9.Part1 = prt4 | |
436 | wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.1,0) | |
437 | local wld10 = Instance.new("Weld") | |
438 | wld10.Parent = prt10 | |
439 | wld10.Part0 = prt10 | |
440 | wld10.Part1 = prt9 | |
441 | wld10.C0 = CFrame.new(0.2,0.4,0) * CFrame.fromEulerAnglesXYZ(0,0,0.3) | |
442 | local wld11 = Instance.new("Weld") | |
443 | wld11.Parent = prt11 | |
444 | wld11.Part0 = prt11 | |
445 | wld11.Part1 = prt9 | |
446 | wld11.C0 = CFrame.new(0.3,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5) | |
447 | local wld12 = Instance.new("Weld") | |
448 | wld12.Parent = prt12 | |
449 | wld12.Part0 = prt12 | |
450 | wld12.Part1 = prt9 | |
451 | wld12.C0 = CFrame.new(0.4,0.6,0) * CFrame.fromEulerAnglesXYZ(0,0,0.7) | |
452 | local wld13 = Instance.new("Weld") | |
453 | wld13.Parent = prt13 | |
454 | wld13.Part0 = prt13 | |
455 | wld13.Part1 = prt9 | |
456 | wld13.C0 = CFrame.new(0.5,0.7,0) * CFrame.fromEulerAnglesXYZ(0,0,0.9) | |
457 | local wld14 = Instance.new("Weld") | |
458 | wld14.Parent = prt14 | |
459 | wld14.Part0 = prt14 | |
460 | wld14.Part1 = prt9 | |
461 | wld14.C0 = CFrame.new(0.6,0.85,0) * CFrame.fromEulerAnglesXYZ(0,0,1.1) | |
462 | local wld15 = Instance.new("Weld") | |
463 | wld15.Parent = prt15 | |
464 | wld15.Part0 = prt15 | |
465 | wld15.Part1 = prt9 | |
466 | wld15.C0 = CFrame.new(0.7,1.05,0) * CFrame.fromEulerAnglesXYZ(0,0,1.3) | |
467 | local wld16 = Instance.new("Weld") | |
468 | wld16.Parent = prt16 | |
469 | wld16.Part0 = prt16 | |
470 | wld16.Part1 = prt9 | |
471 | wld16.C0 = CFrame.new(0.8,1.25,0) * CFrame.fromEulerAnglesXYZ(0,0,1.5) | |
472 | local wld17 = Instance.new("Weld") | |
473 | wld17.Parent = prt17 | |
474 | wld17.Part0 = prt17 | |
475 | wld17.Part1 = prt9 | |
476 | wld17.C0 = CFrame.new(-0.2,0.4,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.3) | |
477 | local wld18 = Instance.new("Weld") | |
478 | wld18.Parent = prt18 | |
479 | wld18.Part0 = prt18 | |
480 | wld18.Part1 = prt9 | |
481 | wld18.C0 = CFrame.new(-0.3,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5) | |
482 | local wld19 = Instance.new("Weld") | |
483 | wld19.Parent = prt19 | |
484 | wld19.Part0 = prt19 | |
485 | wld19.Part1 = prt9 | |
486 | wld19.C0 = CFrame.new(-0.4,0.6,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.7) | |
487 | local wld20 = Instance.new("Weld") | |
488 | wld20.Parent = prt20 | |
489 | wld20.Part0 = prt20 | |
490 | wld20.Part1 = prt9 | |
491 | wld20.C0 = CFrame.new(-0.5,0.7,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.9) | |
492 | local wld21 = Instance.new("Weld") | |
493 | wld21.Parent = prt21 | |
494 | wld21.Part0 = prt21 | |
495 | wld21.Part1 = prt9 | |
496 | wld21.C0 = CFrame.new(-0.6,0.85,0) * CFrame.fromEulerAnglesXYZ(0,0,-1.1) | |
497 | local wld22 = Instance.new("Weld") | |
498 | wld22.Parent = prt22 | |
499 | wld22.Part0 = prt22 | |
500 | wld22.Part1 = prt9 | |
501 | wld22.C0 = CFrame.new(-0.7,1.05,0) * CFrame.fromEulerAnglesXYZ(0,0,-1.3) | |
502 | local wld23 = Instance.new("Weld") | |
503 | wld23.Parent = prt23 | |
504 | wld23.Part0 = prt23 | |
505 | wld23.Part1 = prt9 | |
506 | wld23.C0 = CFrame.new(-0.8,1.25,0) * CFrame.fromEulerAnglesXYZ(0,0,-1.5) | |
507 | local wld24 = Instance.new("Weld") | |
508 | wld24.Parent = prt24 | |
509 | wld24.Part0 = prt24 | |
510 | wld24.Part1 = prt9 | |
511 | wld24.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,-0.3,0) | |
512 | local wld25 = Instance.new("Weld") | |
513 | wld25.Parent = prt25 | |
514 | wld25.Part0 = prt25 | |
515 | wld25.Part1 = prt24 | |
516 | wld25.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0.55,0) | |
517 | local wld26 = Instance.new("Weld") | |
518 | wld26.Parent = prt26 | |
519 | wld26.Part0 = prt26 | |
520 | wld26.Part1 = prt25 | |
521 | wld26.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
522 | local wld27 = Instance.new("Weld") | |
523 | wld27.Parent = prt27 | |
524 | wld27.Part0 = prt27 | |
525 | wld27.Part1 = prt24 | |
526 | wld27.C0 = CFrame.fromEulerAnglesXYZ(1.57,1.57,0) * CFrame.new(-0.3,1.6,0) | |
527 | local wld28 = Instance.new("Weld") | |
528 | wld28.Parent = prt28 | |
529 | wld28.Part0 = prt28 | |
530 | wld28.Part1 = prt24 | |
531 | wld28.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) * CFrame.new(0.3,1.6,0) | |
532 | ||
533 | local mien = Instance.new("Model") | |
534 | mien.Parent = Character | |
535 | mien.Name = "Chariot " | |
536 | local chariot = Instance.new("Model") | |
537 | chariot.Name = "Chariot" | |
538 | chariot.Parent = nil | |
539 | ||
540 | local char1 = Instance.new("Part") | |
541 | char1.formFactor = 1 | |
542 | char1.Parent = chariot | |
543 | char1.CanCollide = true | |
544 | char1.BrickColor = BrickColor.new("Black") | |
545 | char1.Name = "ChariotPart1" | |
546 | char1.Size = Vector3.new(3,1,5) | |
547 | char1.Position = Torso.Position | |
548 | local char2 = Instance.new("Part") | |
549 | char2.formFactor = 1 | |
550 | char2.Parent = chariot | |
551 | char2.CanCollide = true | |
552 | char2.BrickColor = BrickColor.new("Black") | |
553 | char2.Name = "ChariotPart2" | |
554 | char2.Size = Vector3.new(1,1,1) | |
555 | char2.Position = Torso.Position | |
556 | local char3 = Instance.new("Part") | |
557 | char3.formFactor = 1 | |
558 | char3.Parent = chariot | |
559 | char3.CanCollide = true | |
560 | char3.BrickColor = BrickColor.new("Black") | |
561 | char3.Name = "ChariotPart3" | |
562 | char3.Size = Vector3.new(2,2,2) | |
563 | char3.Position = Torso.Position | |
564 | local char4 = Instance.new("Part") | |
565 | char4.formFactor = 1 | |
566 | char4.Parent = chariot | |
567 | char4.CanCollide = true | |
568 | char4.BrickColor = BrickColor.new("Black") | |
569 | char4.Name = "ChariotPart4" | |
570 | char4.Size = Vector3.new(3,3,3) | |
571 | char4.Position = Torso.Position | |
572 | local char5 = Instance.new("Part") | |
573 | char5.formFactor = 1 | |
574 | char5.Parent = chariot | |
575 | char5.CanCollide = true | |
576 | char5.BrickColor = BrickColor.new("Black") | |
577 | char5.Name = "ChariotPart5" | |
578 | char5.Size = Vector3.new(3,3,3) | |
579 | char5.Position = Torso.Position | |
580 | local char6 = Instance.new("Part") | |
581 | char6.formFactor = 1 | |
582 | char6.Parent = chariot | |
583 | char6.CanCollide = true | |
584 | char6.BrickColor = Color | |
585 | char6.Name = "ChariotPart6" | |
586 | char6.Size = Vector3.new(3,3,3) | |
587 | char6.Position = Torso.Position | |
588 | local char7 = Instance.new("Part") | |
589 | char7.formFactor = 1 | |
590 | char7.Parent = chariot | |
591 | char7.CanCollide = true | |
592 | char7.BrickColor = BrickColor.new("Black") | |
593 | char7.Name = "ChariotPart7" | |
594 | char7.Size = Vector3.new(2,1,5) | |
595 | char7.Position = Torso.Position | |
596 | local char8 = Instance.new("Part") | |
597 | char8.formFactor = 1 | |
598 | char8.Parent = chariot | |
599 | char8.CanCollide = true | |
600 | char8.BrickColor = Color | |
601 | char8.Name = "ChariotPart8" | |
602 | char8.Size = Vector3.new(2,1,5) | |
603 | char8.Position = Torso.Position | |
604 | local char9 = Instance.new("Part") | |
605 | char9.formFactor = 1 | |
606 | char9.Parent = chariot | |
607 | char9.CanCollide = true | |
608 | char9.BrickColor = BrickColor.new("Black") | |
609 | char9.Name = "ChariotPart9" | |
610 | char9.Size = Vector3.new(1,1,1) | |
611 | char9.Position = Torso.Position | |
612 | local char10 = Instance.new("Part") | |
613 | char10.formFactor = 1 | |
614 | char10.Parent = chariot | |
615 | char10.CanCollide = true | |
616 | char10.BrickColor = BrickColor.new("Black") | |
617 | char10.Name = "ChariotPart10" | |
618 | char10.Size = Vector3.new(4,4,2) | |
619 | char10.Position = Torso.Position | |
620 | local char11 = Instance.new("Part") | |
621 | char11.formFactor = 1 | |
622 | char11.Parent = chariot | |
623 | char11.CanCollide = true | |
624 | char11.BrickColor = Color | |
625 | char11.Name = "ChariotPart11" | |
626 | char11.Size = Vector3.new(4,4,2) | |
627 | char11.Position = Torso.Position | |
628 | local char12 = Instance.new("Part") | |
629 | char12.formFactor = 1 | |
630 | char12.Parent = chariot | |
631 | char12.CanCollide = true | |
632 | char12.BrickColor = BrickColor.new("Black") | |
633 | char12.Name = "ChariotPart12" | |
634 | char12.Size = Vector3.new(2,4,2) | |
635 | char12.Position = Torso.Position | |
636 | local char13 = Instance.new("Part") | |
637 | char13.formFactor = 1 | |
638 | char13.Parent = chariot | |
639 | char13.CanCollide = true | |
640 | char13.BrickColor = Color | |
641 | char13.Name = "ChariotPart13" | |
642 | char13.Size = Vector3.new(2,4,2) | |
643 | char13.Position = Torso.Position | |
644 | local char14 = Instance.new("Part") | |
645 | char14.formFactor = 1 | |
646 | char14.Parent = chariot | |
647 | char14.CanCollide = true | |
648 | char14.BrickColor = BrickColor.new("Black") | |
649 | char14.Name = "ChariotPart14" | |
650 | char14.Size = Vector3.new(2,4,2) | |
651 | char14.Position = Torso.Position | |
652 | local char15 = Instance.new("Part") | |
653 | char15.formFactor = 1 | |
654 | char15.Parent = chariot | |
655 | char15.CanCollide = true | |
656 | char15.BrickColor = Color | |
657 | char15.Name = "ChariotPart15" | |
658 | char15.Size = Vector3.new(2,4,2) | |
659 | char15.Position = Torso.Position | |
660 | local char16 = Instance.new("Part") | |
661 | char16.formFactor = 1 | |
662 | char16.Parent = chariot | |
663 | char16.CanCollide = true | |
664 | char16.BrickColor = BrickColor.new("Black") | |
665 | char16.Name = "ChariotPart16" | |
666 | char16.Size = Vector3.new(2,2,2) | |
667 | char16.Position = Torso.Position | |
668 | local char17 = Instance.new("Part") | |
669 | char17.formFactor = 1 | |
670 | char17.Parent = chariot | |
671 | char17.CanCollide = true | |
672 | char17.BrickColor = BrickColor.new("Black") | |
673 | char17.Name = "ChariotPart17" | |
674 | char17.Size = Vector3.new(4,4,4) | |
675 | char17.Position = Torso.Position | |
676 | local char17a = Instance.new("Part") | |
677 | char17a.formFactor = 1 | |
678 | char17a.Parent = chariot | |
679 | char17a.CanCollide = true | |
680 | char17a.BrickColor = Color | |
681 | char17a.Name = "ChariotPart17a" | |
682 | char17a.Size = Vector3.new(4,4,4) | |
683 | char17a.Position = Torso.Position | |
684 | local char18 = Instance.new("Part") | |
685 | char18.formFactor = 1 | |
686 | char18.Parent = chariot | |
687 | char18.CanCollide = false | |
688 | char18.BrickColor = BrickColor.new("Black") | |
689 | char18.Name = "ChariotSpike" | |
690 | char18.Size = Vector3.new(3,3,3) | |
691 | char18.Position = Torso.Position | |
692 | local char19 = Instance.new("Part") | |
693 | char19.formFactor = 1 | |
694 | char19.Parent = chariot | |
695 | char19.CanCollide = false | |
696 | char19.BrickColor = BrickColor.new("Black") | |
697 | char19.Name = "ChariotSpike" | |
698 | char19.Size = Vector3.new(3,3,3) | |
699 | char19.Position = Torso.Position | |
700 | local char20 = Instance.new("Part") | |
701 | char20.formFactor = 1 | |
702 | char20.Parent = chariot | |
703 | char20.CanCollide = false | |
704 | char20.BrickColor = BrickColor.new("Black") | |
705 | char20.Name = "ChariotSpike" | |
706 | char20.Size = Vector3.new(3,3,3) | |
707 | char20.Position = Torso.Position | |
708 | local char21 = Instance.new("Part") | |
709 | char21.formFactor = 1 | |
710 | char21.Parent = chariot | |
711 | char21.CanCollide = false | |
712 | char21.BrickColor = BrickColor.new("Black") | |
713 | char21.Name = "ChariotSpike" | |
714 | char21.Size = Vector3.new(3,3,3) | |
715 | char21.Position = Torso.Position | |
716 | local char22 = Instance.new("Part") | |
717 | char22.formFactor = 1 | |
718 | char22.Parent = chariot | |
719 | char22.CanCollide = false | |
720 | char22.BrickColor = BrickColor.new("Black") | |
721 | char22.Name = "ChariotSpike" | |
722 | char22.Size = Vector3.new(3,3,3) | |
723 | char22.Position = Torso.Position | |
724 | local char23 = Instance.new("Part") | |
725 | char23.formFactor = 1 | |
726 | char23.Parent = chariot | |
727 | char23.CanCollide = false | |
728 | char23.BrickColor = BrickColor.new("Black") | |
729 | char23.Name = "ChariotSpike" | |
730 | char23.Size = Vector3.new(3,3,3) | |
731 | char23.Position = Torso.Position | |
732 | local char24 = Instance.new("Part") | |
733 | char24.formFactor = 1 | |
734 | char24.Parent = chariot | |
735 | char24.CanCollide = false | |
736 | char24.BrickColor = BrickColor.new("Black") | |
737 | char24.Name = "ChariotSpike" | |
738 | char24.Size = Vector3.new(3,3,3) | |
739 | char24.Position = Torso.Position | |
740 | local char25 = Instance.new("Seat") | |
741 | char25.formFactor = 1 | |
742 | --char25.Parent = chariot | |
743 | char25.Parent = nil | |
744 | char25.CanCollide = false | |
745 | char25.BrickColor = BrickColor.new("Black") | |
746 | char25.Name = "ChariotSeat" | |
747 | char25.Transparency = 1 | |
748 | char25.Size = Vector3.new(1,1,1) | |
749 | char25.Position = Torso.Position | |
750 | ||
751 | local charm1 = Instance.new("BlockMesh") | |
752 | charm1.Parent = char1 | |
753 | charm1.Scale = Vector3.new(1,1,1) | |
754 | local charm2 = Instance.new("BlockMesh") | |
755 | charm2.Parent = char2 | |
756 | charm2.Scale = Vector3.new(1,1,1) | |
757 | local charm3 = Instance.new("BlockMesh") | |
758 | charm3.Parent = char3 | |
759 | charm3.Scale = Vector3.new(1,1,1) | |
760 | local charm4 = Instance.new("CylinderMesh") | |
761 | charm4.Parent = char4 | |
762 | charm4.Scale = Vector3.new(1,1,1) | |
763 | local charm5 = Instance.new("CylinderMesh") | |
764 | charm5.Parent = char5 | |
765 | charm5.Scale = Vector3.new(1,1,1) | |
766 | local charm6 = Instance.new("CylinderMesh") | |
767 | charm6.Parent = char6 | |
768 | charm6.Scale = Vector3.new(0.7,1.1,0.7) | |
769 | local charm7 = Instance.new("BlockMesh") | |
770 | charm7.Parent = char7 | |
771 | charm7.Scale = Vector3.new(0.9,0.9,0.9) | |
772 | local charm8 = Instance.new("BlockMesh") | |
773 | charm8.Parent = char8 | |
774 | charm8.Scale = Vector3.new(1,0.7,0.8) | |
775 | local charm9 = Instance.new("CylinderMesh") | |
776 | charm9.Parent = char9 | |
777 | charm9.Scale = Vector3.new(0.7,1.7,0.7) | |
778 | local charm10 = Instance.new("BlockMesh") | |
779 | charm10.Parent = char10 | |
780 | charm10.Scale = Vector3.new(1,1,1) | |
781 | local charm11 = Instance.new("BlockMesh") | |
782 | charm11.Parent = char11 | |
783 | charm11.Scale = Vector3.new(0.99,0.9,1) | |
784 | local charm12 = Instance.new("BlockMesh") | |
785 | charm12.Parent = char12 | |
786 | charm12.Scale = Vector3.new(1,1,1) | |
787 | local charm13 = Instance.new("BlockMesh") | |
788 | charm13.Parent = char13 | |
789 | charm13.Scale = Vector3.new(0.99,0.9,1) | |
790 | local charm14 = Instance.new("BlockMesh") | |
791 | charm14.Parent = char14 | |
792 | charm14.Scale = Vector3.new(1,1,1) | |
793 | local charm15 = Instance.new("BlockMesh") | |
794 | charm15.Parent = char15 | |
795 | charm15.Scale = Vector3.new(0.99,0.9,1) | |
796 | local charm16 = Instance.new("BlockMesh") | |
797 | charm16.Parent = char16 | |
798 | charm16.Scale = Vector3.new(1,1,1) | |
799 | local charm17 = Instance.new("CylinderMesh") | |
800 | charm17.Parent = char17 | |
801 | charm17.Scale = Vector3.new(1,1,1) | |
802 | local charm17a = Instance.new("CylinderMesh") | |
803 | charm17a.Parent = char17a | |
804 | charm17a.Scale = Vector3.new(0.8,1.1,0.8) | |
805 | local charm18 = Instance.new("SpecialMesh") | |
806 | charm18.Parent = char18 | |
807 | charm18.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
808 | charm18.Scale = Vector3.new(1.5,1.5,1.5) | |
809 | local charm19 = Instance.new("SpecialMesh") | |
810 | charm19.Parent = char19 | |
811 | charm19.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
812 | charm19.Scale = Vector3.new(1.5,1.5,1.5) | |
813 | local charm20 = Instance.new("SpecialMesh") | |
814 | charm20.Parent = char20 | |
815 | charm20.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
816 | charm20.Scale = Vector3.new(1.5,1.5,1.5) | |
817 | local charm21 = Instance.new("SpecialMesh") | |
818 | charm21.Parent = char21 | |
819 | charm21.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
820 | charm21.Scale = Vector3.new(1.5,1.5,1.5) | |
821 | local charm22 = Instance.new("SpecialMesh") | |
822 | charm22.Parent = char22 | |
823 | charm22.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
824 | charm22.Scale = Vector3.new(1.5,1.5,1.5) | |
825 | local charm23 = Instance.new("SpecialMesh") | |
826 | charm23.Parent = char23 | |
827 | charm23.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
828 | charm23.Scale = Vector3.new(1.5,1.5,1.5) | |
829 | local charm24 = Instance.new("SpecialMesh") | |
830 | charm24.Parent = char24 | |
831 | charm24.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
832 | charm24.Scale = Vector3.new(1.5,1.5,1.5) | |
833 | local charm25 = Instance.new("BlockMesh") | |
834 | charm25.Parent = char25 | |
835 | charm25.Scale = Vector3.new(1,1,1) | |
836 | ||
837 | local charw1 = Instance.new("Weld") | |
838 | charw1.Parent = char1 | |
839 | charw1.Part0 = char1 | |
840 | charw1.Part1 = Torso | |
841 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2,8) | |
842 | local charw2 = Instance.new("Weld") | |
843 | charw2.Parent = char2 | |
844 | charw2.Part0 = char2 | |
845 | charw2.Part1 = char1 | |
846 | charw2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-3) | |
847 | local charw3 = Instance.new("Weld") | |
848 | charw3.Parent = char3 | |
849 | charw3.Part0 = char3 | |
850 | charw3.Part1 = char2 | |
851 | charw3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-1) | |
852 | local charw4 = Instance.new("Weld") | |
853 | charw4.Parent = char4 | |
854 | charw4.Part0 = char4 | |
855 | charw4.Part1 = char1 | |
856 | charw4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,1.5) | |
857 | local charw5 = Instance.new("Weld") | |
858 | charw5.Parent = char5 | |
859 | charw5.Part0 = char5 | |
860 | charw5.Part1 = char1 | |
861 | charw5.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.5,1.3) | |
862 | local charw6 = Instance.new("Weld") | |
863 | charw6.Parent = char6 | |
864 | charw6.Part0 = char6 | |
865 | charw6.Part1 = char5 | |
866 | charw6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
867 | local charw7 = Instance.new("Weld") | |
868 | charw7.Parent = char7 | |
869 | charw7.Part0 = char7 | |
870 | charw7.Part1 = char1 | |
871 | charw7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0) | |
872 | local charw8 = Instance.new("Weld") | |
873 | charw8.Parent = char8 | |
874 | charw8.Part0 = char8 | |
875 | charw8.Part1 = char7 | |
876 | charw8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
877 | local charw9 = Instance.new("Weld") | |
878 | charw9.Parent = char9 | |
879 | charw9.Part0 = char9 | |
880 | charw9.Part1 = char7 | |
881 | charw9.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,-0.2,-1.5) | |
882 | local charw10 = Instance.new("Weld") | |
883 | charw10.Parent = char10 | |
884 | charw10.Part0 = char10 | |
885 | charw10.Part1 = char1 | |
886 | charw10.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,3) | |
887 | local charw11 = Instance.new("Weld") | |
888 | charw11.Parent = char11 | |
889 | charw11.Part0 = char11 | |
890 | charw11.Part1 = char10 | |
891 | charw11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.5) | |
892 | local charw12 = Instance.new("Weld") | |
893 | charw12.Parent = char12 | |
894 | charw12.Part0 = char12 | |
895 | charw12.Part1 = char10 | |
896 | charw12.C0 = CFrame.fromEulerAnglesXYZ(0,0.5,0) * CFrame.new(-2.4,0,-0.4) | |
897 | local charw13 = Instance.new("Weld") | |
898 | charw13.Parent = char13 | |
899 | charw13.Part0 = char13 | |
900 | charw13.Part1 = char12 | |
901 | charw13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.5) | |
902 | local charw14 = Instance.new("Weld") | |
903 | charw14.Parent = char14 | |
904 | charw14.Part0 = char14 | |
905 | charw14.Part1 = char10 | |
906 | charw14.C0 = CFrame.fromEulerAnglesXYZ(0,0.5,0) * CFrame.new(2.1,0,0.3) | |
907 | local charw15 = Instance.new("Weld") | |
908 | charw15.Parent = char15 | |
909 | charw15.Part0 = char15 | |
910 | charw15.Part1 = char14 | |
911 | charw15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.5) | |
912 | local charw16 = Instance.new("Weld") | |
913 | charw16.Parent = char16 | |
914 | charw16.Part0 = char16 | |
915 | charw16.Part1 = char10 | |
916 | charw16.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.5,0,2) | |
917 | local charw17 = Instance.new("Weld") | |
918 | charw17.Parent = char17 | |
919 | charw17.Part0 = char17 | |
920 | charw17.Part1 = char16 | |
921 | charw17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,2) | |
922 | local charw18 = Instance.new("Weld") | |
923 | charw18.Parent = char18 | |
924 | charw18.Part0 = char18 | |
925 | charw18.Part1 = char17 | |
926 | charw18.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0) | |
927 | local charw19 = Instance.new("Weld") | |
928 | charw19.Parent = char19 | |
929 | charw19.Part0 = char19 | |
930 | charw19.Part1 = char17 | |
931 | charw19.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,0.9,0) | |
932 | local charw20 = Instance.new("Weld") | |
933 | charw20.Parent = char20 | |
934 | charw20.Part0 = char20 | |
935 | charw20.Part1 = char17 | |
936 | charw20.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,1.8,0) | |
937 | local charw21 = Instance.new("Weld") | |
938 | charw21.Parent = char21 | |
939 | charw21.Part0 = char21 | |
940 | charw21.Part1 = char17 | |
941 | charw21.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,2.7,0) | |
942 | local charw22 = Instance.new("Weld") | |
943 | charw22.Parent = char22 | |
944 | charw22.Part0 = char22 | |
945 | charw22.Part1 = char17 | |
946 | charw22.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,3.6,0) | |
947 | local charw23 = Instance.new("Weld") | |
948 | charw23.Parent = char23 | |
949 | charw23.Part0 = char23 | |
950 | charw23.Part1 = char17 | |
951 | charw23.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,4.5,0) | |
952 | local charw24 = Instance.new("Weld") | |
953 | charw24.Parent = char24 | |
954 | charw24.Part0 = char24 | |
955 | charw24.Part1 = char17 | |
956 | charw24.C0 = CFrame.new(0,-3,0) * CFrame.fromEulerAnglesXYZ(1.57,5.4,0) | |
957 | local charw17a = Instance.new("Weld") | |
958 | charw17a.Parent = char17a | |
959 | charw17a.Part0 = char17a | |
960 | charw17a.Part1 = char17 | |
961 | charw17a.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
962 | local charw25 = Instance.new("Weld") | |
963 | charw25.Parent = char25 | |
964 | charw25.Part0 = char25 | |
965 | charw25.Part1 = char3 | |
966 | charw25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0) | |
967 | ||
968 | --[[local hum = Instance.new("Humanoid") | |
969 | hum.Parent = chariot | |
970 | hum.MaxHealth = 500 ]] | |
971 | ||
972 | local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL | |
973 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
974 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
975 | SlashSound.Parent = modelzorz | |
976 | SlashSound.Volume = .7 | |
977 | SlashSound.Pitch = 1 | |
978 | local SlashSound = Instance.new("Sound") | |
979 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
980 | SlashSound.Parent = workspace | |
981 | SlashSound.Volume = .5 | |
982 | SlashSound.Pitch = 1 | |
983 | local SlashSound = Instance.new("Sound") | |
984 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
985 | SlashSound.Parent = workspace | |
986 | SlashSound.Volume = .7 | |
987 | SlashSound.Pitch = 1 | |
988 | local SlashSound = Instance.new("Sound") | |
989 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
990 | SlashSound.Parent = workspace | |
991 | SlashSound.Volume = .7 | |
992 | SlashSound.Pitch = 1 | |
993 | ||
994 | local fengui = Instance.new("GuiMain") | |
995 | fengui.Parent = Player.PlayerGui | |
996 | fengui.Name = "WeaponGUI" | |
997 | local fenframe = Instance.new("Frame") | |
998 | fenframe.Parent = fengui | |
999 | fenframe.BackgroundColor3 = Color3.new(255,255,255) | |
1000 | fenframe.BackgroundTransparency = 1 | |
1001 | fenframe.BorderColor3 = Color3.new(17,17,17) | |
1002 | fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
1003 | local fentext = Instance.new("TextLabel") | |
1004 | fentext.Parent = fenframe | |
1005 | fentext.Text = "Mana("..mana..")" | |
1006 | fentext.BackgroundTransparency = 1 | |
1007 | fentext.SizeConstraint = "RelativeXY" | |
1008 | fentext.TextXAlignment = "Center" | |
1009 | fentext.TextYAlignment = "Center" | |
1010 | fentext.Position = UDim2.new(0,80,1,200) | |
1011 | local fentext2 = Instance.new("TextLabel") | |
1012 | fentext2.Parent = fenframe | |
1013 | fentext2.Text = " " | |
1014 | fentext2.BackgroundTransparency = 0 | |
1015 | fentext2.BackgroundColor3 = Color3.new(0,0,0) | |
1016 | fentext2.SizeConstraint = "RelativeXY" | |
1017 | fentext2.TextXAlignment = "Center" | |
1018 | fentext2.TextYAlignment = "Center" | |
1019 | fentext2.Position = UDim2.new(0,10,1,170) | |
1020 | fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0) | |
1021 | local fentext3 = Instance.new("TextLabel") | |
1022 | fentext3.Parent = fenframe | |
1023 | fentext3.Text = " " | |
1024 | fentext3.BackgroundTransparency = 0 | |
1025 | fentext3.BackgroundColor3 = Color3.new(1,1,0) | |
1026 | fentext3.SizeConstraint = "RelativeXY" | |
1027 | fentext3.TextXAlignment = "Center" | |
1028 | fentext3.TextYAlignment = "Center" | |
1029 | fentext3.Position = UDim2.new(0,10,1,170) | |
1030 | fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0) | |
1031 | --2.9000001, 0}, {0.450000018, 0} | |
1032 | local fentext5 = Instance.new("TextLabel") | |
1033 | fentext5.Parent = fenframe | |
1034 | fentext5.Text = " " | |
1035 | fentext5.BackgroundTransparency = 1 | |
1036 | fentext5.BackgroundColor3 = Color3.new(0,0,0) | |
1037 | fentext5.SizeConstraint = "RelativeXY" | |
1038 | fentext5.TextXAlignment = "Center" | |
1039 | fentext5.TextYAlignment = "Center" | |
1040 | fentext5.Position = UDim2.new(0,10,0.8,170) | |
1041 | fentext5.Size = UDim2.new(2.79999995,0,0.210000306,0) | |
1042 | local fentext6 = Instance.new("TextLabel") | |
1043 | fentext6.Parent = fenframe | |
1044 | fentext6.Text = " " | |
1045 | fentext6.BackgroundTransparency = 1 | |
1046 | fentext6.BackgroundColor3 = Color3.new(1,1,0) | |
1047 | fentext6.SizeConstraint = "RelativeXY" | |
1048 | fentext6.TextXAlignment = "Center" | |
1049 | fentext6.TextYAlignment = "Center" | |
1050 | fentext6.Position = UDim2.new(0,10,0.8,170) | |
1051 | fentext6.Size = UDim2.new(HeroBar*0.007,0,0.200000006,0) | |
1052 | local gairo = Instance.new("BodyGyro") | |
1053 | gairo.Parent = nil | |
1054 | gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1055 | gairo.P = 20e+003 | |
1056 | local gairo2 = Instance.new("BodyGyro") | |
1057 | ||
1058 | if (script.Parent.className ~= "HopperBin") then | |
1059 | Tool = Instance.new("HopperBin") | |
1060 | Tool.Parent = Backpack | |
1061 | Tool.Name = "Charibassa" | |
1062 | script.Parent = Tool | |
1063 | end | |
1064 | Bin = script.Parent | |
1065 | ||
1066 | function hideanim() | |
1067 | for i = 0,1,0.1 do | |
1068 | wait() | |
1069 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1070 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0.3*i,1.57-0.7*i) * CFrame.new(-1*i,1-0.5*i,0.8*i) | |
1071 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+2.5*i,0,0) | |
1072 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1073 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1074 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1075 | end | |
1076 | wait(0.1) | |
1077 | wld1.Part1 = Torso | |
1078 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,2.3) * CFrame.new(1,-1,-0.7) | |
1079 | end | |
1080 | ||
1081 | function equipanim() | |
1082 | for i = 0,1,0.1 do | |
1083 | wait() | |
1084 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1085 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,0) | |
1086 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1087 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1088 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1089 | end | |
1090 | wait(0.1) | |
1091 | wld1.Part1 = LeftArm | |
1092 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57-1.57,0.3,1.57-0.7) * CFrame.new(-1,1-0.5,0.8) | |
1093 | for i = 0,1,0.1 do | |
1094 | wait() | |
1095 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1096 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57-1.57+1.57*i,0.3-0.3*i,1.57-0.7+0.7*i) * CFrame.new(-1+1*i,1-0.5+0.5*i,0.8-0.8*i) | |
1097 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-2.5*i,0,0) | |
1098 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1099 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1100 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1101 | end | |
1102 | end | |
1103 | ||
1104 | function onehit() | |
1105 | attack = true | |
1106 | for i = 0,1,0.1 do | |
1107 | wait() | |
1108 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1*i,1.57) * CFrame.new(0,1,0) | |
1109 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1110 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3*i,0,0) | |
1111 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1112 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1113 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1114 | end | |
1115 | con1=prt25.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1116 | con2=prt26.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1117 | con3=prt27.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1118 | con4=prt28.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1119 | ss(1) | |
1120 | for i = 0,1,0.2 do | |
1121 | wait() | |
1122 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2.5*i,1.57) * CFrame.new(0,1,0) | |
1123 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1124 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3-3*i,0,0) | |
1125 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1126 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0) | |
1127 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1128 | end | |
1129 | con1:disconnect() | |
1130 | con2:disconnect() | |
1131 | con3:disconnect() | |
1132 | con4:disconnect() | |
1133 | wait(0.2) | |
1134 | attack = false | |
1135 | end | |
1136 | ||
1137 | function twohit() | |
1138 | attack = true | |
1139 | for i = 0,1,0.1 do | |
1140 | wait() | |
1141 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2.5-1.5*i,1.57) * CFrame.new(0,1,0) | |
1142 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1143 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,-1.57*i,0) | |
1144 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
1145 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2.57*i,0,1.4*i) | |
1146 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1147 | end | |
1148 | con1=prt25.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1149 | con2=prt26.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1150 | con3=prt27.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1151 | con4=prt28.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1152 | ss(0.9) | |
1153 | for i = 0,1,0.2 do | |
1154 | wait() | |
1155 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
1156 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1157 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57,-1.57,0) | |
1158 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+3*i,0,0) | |
1159 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.4-2*i) | |
1160 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1161 | end | |
1162 | con1:disconnect() | |
1163 | con2:disconnect() | |
1164 | con3:disconnect() | |
1165 | con4:disconnect() | |
1166 | attack = false | |
1167 | end | |
1168 | ||
1169 | function threehit() | |
1170 | attack = true | |
1171 | for i = 0,1,0.1 do | |
1172 | wait() | |
1173 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-0.5*i,1.57) * CFrame.new(0,1,-0.5*i) | |
1174 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1175 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2*i,-1.57+1.57*i,0) | |
1176 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+3-2.5*i,0,0) | |
1177 | RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,0,1.4-2) | |
1178 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1179 | end | |
1180 | con1=prt25.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1181 | con2=prt26.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1182 | con3=prt27.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1183 | con4=prt28.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1184 | ss(1.1) | |
1185 | for i = 0,1,0.1 do | |
1186 | wait() | |
1187 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-0.5,1.57) * CFrame.new(0,1,-0.5+0.5*i) | |
1188 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1189 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5*i,0,0) | |
1190 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1191 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.4-2+2*i) | |
1192 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1193 | end | |
1194 | con1:disconnect() | |
1195 | con2:disconnect() | |
1196 | con3:disconnect() | |
1197 | con4:disconnect() | |
1198 | attack = false | |
1199 | end | |
1200 | ||
1201 | function fourhit(mouse) | |
1202 | attack = true | |
1203 | for i = 0,1,0.1 do | |
1204 | wait() | |
1205 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5+2.64*i,1.57) * CFrame.new(0,1,0) | |
1206 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1207 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2*i,0,0) | |
1208 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1209 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77*i,0,1.4-1.4*i) | |
1210 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1211 | end | |
1212 | ss(1) | |
1213 | prt1.CanCollide = true | |
1214 | wld1.Part1 = nil | |
1215 | coroutine.resume(coroutine.create(function() | |
1216 | for i = 0,1,0.2 do | |
1217 | wait() | |
1218 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5+2.64,1.57) * CFrame.new(0,1,0) | |
1219 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1220 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
1221 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1222 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
1223 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1224 | end | |
1225 | end)) | |
1226 | shoottrail(mouse) | |
1227 | wait(1) | |
1228 | prt1.Anchored = false | |
1229 | wld1.Parent = prt1 | |
1230 | wld1.Part0 = prt1 | |
1231 | wld1.Part1 = LeftArm | |
1232 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
1233 | wld1.C1 = CFrame.new(0,0,0) | |
1234 | if heromode == false then | |
1235 | else | |
1236 | wait(4) | |
1237 | end | |
1238 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
1239 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
1240 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1241 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1242 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1243 | attack = false | |
1244 | end | |
1245 | ||
1246 | function SpinSlash() | |
1247 | attack = true | |
1248 | for i = 0,1,0.1 do | |
1249 | wait() | |
1250 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5*i,1.57) * CFrame.new(0,1,0) | |
1251 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1252 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,-1.57*i,0) | |
1253 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0) | |
1254 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,-1.57*i,0) | |
1255 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0) | |
1256 | end | |
1257 | local vel = Instance.new("BodyGyro") | |
1258 | vel.Parent = Torso | |
1259 | vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1260 | vel.P = 20e+003 | |
1261 | CF = Torso.CFrame | |
1262 | ss(1) | |
1263 | con1=prt25.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1264 | con2=prt26.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1265 | con3=prt27.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1266 | con4=prt28.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
1267 | for i = 0 , 1 , 0.1 do | |
1268 | wait(0) | |
1269 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5+0.5*i,1.57) * CFrame.new(0,1,0) | |
1270 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1271 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57,-1.57,0) | |
1272 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8+2*i,0,0) | |
1273 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) | |
1274 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0) | |
1275 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,3.14*i,0) | |
1276 | end | |
1277 | wait(0.2) | |
1278 | con1:disconnect() | |
1279 | con2:disconnect() | |
1280 | con3:disconnect() | |
1281 | con4:disconnect() | |
1282 | vel.Parent = nil | |
1283 | for i = 0,1,0.1 do | |
1284 | wait(0) | |
1285 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5+0.5-1*i,1.57) * CFrame.new(0,1,0) | |
1286 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1287 | LW.C0 = CFrame.new(-1.5+0.5-0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,-1.57+1.57*i,0) | |
1288 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8+2-1.2*i,0,0) | |
1289 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,-1.5+1.57*i,0) | |
1290 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+2-1*i,0,0) | |
1291 | end | |
1292 | attack = false | |
1293 | end | |
1294 | ||
1295 | --[[function Derp() | |
1296 | attack = true | |
1297 | for i = 0,1,0.1 do | |
1298 | wait() | |
1299 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
1300 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1301 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,0.5*i) | |
1302 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1303 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-0.5*i) | |
1304 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1305 | end | |
1306 | wait(0.5) | |
1307 | attack = false | |
1308 | end ]] | |
1309 | ||
1310 | function Change() | |
1311 | if mode == "Normal" then | |
1312 | mode = "Throw" | |
1313 | elseif mode == "Throw" then | |
1314 | mode = "Normal" | |
1315 | end | |
1316 | end | |
1317 | ||
1318 | function SpearThrow(mouse) | |
1319 | attack = true | |
1320 | for i = 0,1,0.1 do | |
1321 | wait() | |
1322 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
1323 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1324 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0) | |
1325 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1326 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1327 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1328 | end | |
1329 | wait(0.1) | |
1330 | if RageBuff == true then | |
1331 | lolololdur = 0 | |
1332 | while hold == true do | |
1333 | wait() | |
1334 | if lolololdur == 10 then | |
1335 | magicsound(3) | |
1336 | MMMAGIC(prt25,1,1,1,0,0,0,BrickColor.new("Bright red")) | |
1337 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
1338 | rangepower = 30 | |
1339 | end | |
1340 | if lolololdur == 30 then | |
1341 | magicsound(2) | |
1342 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
1343 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
1344 | rangepower = 50 | |
1345 | end | |
1346 | if lolololdur == 60 then | |
1347 | magicsound(1) | |
1348 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
1349 | MMMAGIC(prt25,7,7,7,0,0,0,BrickColor.new("Bright red")) | |
1350 | rangepower = 100 | |
1351 | RAEG = true | |
1352 | end | |
1353 | lolololdur = lolololdur + 1 | |
1354 | end | |
1355 | end | |
1356 | ss(1) | |
1357 | coroutine.resume(coroutine.create(function() | |
1358 | for i = 0,1,0.2 do | |
1359 | wait() | |
1360 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1361 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
1362 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1363 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
1364 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1365 | end | |
1366 | end)) | |
1367 | prt1.CanCollide = true | |
1368 | shoottrail(mouse) | |
1369 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
1370 | wait(1) | |
1371 | prt1.Anchored = false | |
1372 | wld1.Parent = prt1 | |
1373 | wld1.Part0 = prt1 | |
1374 | wld1.Part1 = LeftArm | |
1375 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
1376 | wld1.C1 = CFrame.new(0,0,0) | |
1377 | if heromode == false then | |
1378 | else | |
1379 | wait(4) | |
1380 | end | |
1381 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
1382 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
1383 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1384 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1385 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1386 | attack = false | |
1387 | rangepower = 10 | |
1388 | RAEG = false | |
1389 | end | |
1390 | ||
1391 | function ChariotSummon() | |
1392 | attack = true | |
1393 | if Riding == false then | |
1394 | Riding = true | |
1395 | gairo2.Parent = nil | |
1396 | if chariot.Parent == nil then | |
1397 | local c = chariot:children() | |
1398 | for i = 1,#c do | |
1399 | c[i].Transparency = 1 | |
1400 | end | |
1401 | bod = Instance.new("BodyPosition") | |
1402 | bod.position = Torso.Position + Vector3.new(0,10,0) | |
1403 | bod.Parent = Torso | |
1404 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
1405 | local c = chariot:children() | |
1406 | for i = 1,#c do | |
1407 | coroutine.resume(coroutine.create(function(Part) | |
1408 | for i = 0,1,0.1 do | |
1409 | wait(0.1) | |
1410 | Part.Transparency = Part.Transparency - 0.1 | |
1411 | end | |
1412 | end),c[i]) | |
1413 | end | |
1414 | ||
1415 | player = Player | |
1416 | ch = Character | |
1417 | RH = ch.Torso["Right Hip"] | |
1418 | LH = ch.Torso["Left Hip"] | |
1419 | -- | |
1420 | RW2.Part0 = ch.Torso | |
1421 | RW2.C0 = CFrame.new(0, -1.5, 0) | |
1422 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) | |
1423 | RW2.Part1 = ch["Right Leg"] | |
1424 | RW2.Parent = ch.Torso | |
1425 | --_G.R = RW | |
1426 | -- | |
1427 | LW2.Part0 = ch.Torso | |
1428 | LW2.C0 = CFrame.new(0, -1.5, 0) | |
1429 | LW2.C1 = CFrame.new(0.5, 0.5, 0) | |
1430 | LW2.Part1 = ch["Left Leg"] | |
1431 | LW2.Parent = ch.Torso | |
1432 | --_G.L = LW | |
1433 | -- | |
1434 | ||
1435 | for i = 0,1,0.1 do | |
1436 | wait() | |
1437 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
1438 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1439 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.07*i,0,-1*i) | |
1440 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1441 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.07*i,0,1*i) | |
1442 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1443 | RW2.C0 = CFrame.new(0, -1.5, -0.3*i) * CFrame.fromEulerAnglesXYZ(0.8*i,0,0) | |
1444 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1445 | LW2.C0 = CFrame.new(0, -1.5, 0.1*i) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
1446 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1447 | end | |
1448 | wait(0.1) | |
1449 | char1.Anchored = false | |
1450 | chariot.Parent = mien | |
1451 | charw1.Parent = char1 | |
1452 | charw1.Part1 = Torso | |
1453 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3.5,1) | |
1454 | Character.Humanoid.WalkSpeed = 20 | |
1455 | wait(0.5) | |
1456 | bod.Parent = nil | |
1457 | for i = 0,1,0.1 do | |
1458 | wait() | |
1459 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
1460 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1461 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.07-0.07*i,0,-1+1*i) | |
1462 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1463 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.07-1.07*i,0,1-1*i) | |
1464 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1465 | end | |
1466 | else | |
1467 | ||
1468 | player = Player | |
1469 | ch = Character | |
1470 | RH = ch.Torso["Right Hip"] | |
1471 | LH = ch.Torso["Left Hip"] | |
1472 | -- | |
1473 | RW2.Part0 = ch.Torso | |
1474 | RW2.C0 = CFrame.new(0, -1.5, -0.3) * CFrame.fromEulerAnglesXYZ(0.8,0,0) | |
1475 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1476 | RW2.Part1 = ch["Right Leg"] | |
1477 | RW2.Parent = ch.Torso | |
1478 | --_G.R = RW | |
1479 | -- | |
1480 | LW2.Part0 = ch.Torso | |
1481 | LW2.C0 = CFrame.new(0, -1.5, 0.1) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1482 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1483 | LW2.Part1 = ch["Left Leg"] | |
1484 | LW2.Parent = ch.Torso | |
1485 | --_G.L = LW | |
1486 | -- | |
1487 | ||
1488 | char1.Anchored = false | |
1489 | chariot.Parent = mien | |
1490 | charw1.Parent = char1 | |
1491 | charw1.Part1 = Torso | |
1492 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3.5,1) | |
1493 | Character.Humanoid.WalkSpeed = 20 | |
1494 | end | |
1495 | elseif Riding == true then | |
1496 | Riding = false | |
1497 | ||
1498 | RW2.Parent = nil | |
1499 | LW2.Parent = nil | |
1500 | RH.Parent = player.Character.Torso | |
1501 | LH.Parent = player.Character.Torso | |
1502 | ||
1503 | Character.Humanoid.WalkSpeed = 16 | |
1504 | gairo2.Parent = char1 | |
1505 | gairo2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1506 | gairo2.P = 20e+003 | |
1507 | gairo2.cframe = char1.CFrame | |
1508 | charw1.Parent = nil | |
1509 | end | |
1510 | attack = false | |
1511 | end | |
1512 | ||
1513 | function HeroMode() | |
1514 | if mana >= 200 and Character.Humanoid.Health == Character.Humanoid.MaxHealth then | |
1515 | HeroBar = 400 | |
1516 | attack = true | |
1517 | for i = 0,1,0.1 do | |
1518 | wait() | |
1519 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
1520 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1521 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
1522 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1523 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0) | |
1524 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1525 | end | |
1526 | coroutine.resume(coroutine.create(function() | |
1527 | for i = 0,1,0.05 do | |
1528 | wait() | |
1529 | fentext5.BackgroundTransparency = fentext5.BackgroundTransparency - 0.05 | |
1530 | fentext6.BackgroundTransparency = fentext6.BackgroundTransparency - 0.05 | |
1531 | end | |
1532 | end)) | |
1533 | mana = 0 | |
1534 | magicsound(1) | |
1535 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("New Yeller")) | |
1536 | heromode = true | |
1537 | local heropart1 = prt10:Clone() | |
1538 | heropart1.Parent = modelzorz | |
1539 | heropart1.Transparency = 0.5 | |
1540 | heropart1.Reflectance = 0.2 | |
1541 | heropart1.BrickColor = BrickColor.new("New Yeller") | |
1542 | heropart1.Mesh.Scale = Vector3.new(0.25,0.9,0.25) | |
1543 | local heropart2 = prt11:Clone() | |
1544 | heropart2.Parent = modelzorz | |
1545 | heropart2.Transparency = 0.5 | |
1546 | heropart2.Reflectance = 0.2 | |
1547 | heropart2.BrickColor = BrickColor.new("New Yeller") | |
1548 | heropart2.Mesh.Scale = Vector3.new(0.25,1,0.25) | |
1549 | local heropart3 = prt12:Clone() | |
1550 | heropart3.Parent = modelzorz | |
1551 | heropart3.Transparency = 0.5 | |
1552 | heropart3.Reflectance = 0.2 | |
1553 | heropart3.BrickColor = BrickColor.new("New Yeller") | |
1554 | heropart3.Mesh.Scale = Vector3.new(0.25,1.1,0.25) | |
1555 | local heropart4 = prt13:Clone() | |
1556 | heropart4.Parent = modelzorz | |
1557 | heropart4.Transparency = 0.5 | |
1558 | heropart4.Reflectance = 0.2 | |
1559 | heropart4.BrickColor = BrickColor.new("New Yeller") | |
1560 | heropart4.Mesh.Scale = Vector3.new(0.25,1.2,0.25) | |
1561 | local heropart5 = prt14:Clone() | |
1562 | heropart5.Parent = modelzorz | |
1563 | heropart5.Transparency = 0.5 | |
1564 | heropart5.Reflectance = 0.2 | |
1565 | heropart5.BrickColor = BrickColor.new("New Yeller") | |
1566 | heropart5.Mesh.Scale = Vector3.new(0.25,1.3,0.25) | |
1567 | local heropart6 = prt15:Clone() | |
1568 | heropart6.Parent = modelzorz | |
1569 | heropart6.Transparency = 0.5 | |
1570 | heropart6.Reflectance = 0.2 | |
1571 | heropart6.BrickColor = BrickColor.new("New Yeller") | |
1572 | heropart6.Mesh.Scale = Vector3.new(0.25,1.4,0.25) | |
1573 | local heropart7 = prt16:Clone() | |
1574 | heropart7.Parent = modelzorz | |
1575 | heropart7.Transparency = 0.5 | |
1576 | heropart7.Reflectance = 0.2 | |
1577 | heropart7.BrickColor = BrickColor.new("New Yeller") | |
1578 | heropart7.Mesh.Scale = Vector3.new(0.25,1.5,0.25) | |
1579 | local heropart8 = prt17:Clone() | |
1580 | heropart8.Parent = modelzorz | |
1581 | heropart8.Transparency = 0.5 | |
1582 | heropart8.Reflectance = 0.2 | |
1583 | heropart8.BrickColor = BrickColor.new("New Yeller") | |
1584 | heropart8.Mesh.Scale = Vector3.new(0.25,0.9,0.25) | |
1585 | local heropart9 = prt18:Clone() | |
1586 | heropart9.Parent = modelzorz | |
1587 | heropart9.Transparency = 0.5 | |
1588 | heropart9.Reflectance = 0.2 | |
1589 | heropart9.BrickColor = BrickColor.new("New Yeller") | |
1590 | heropart9.Mesh.Scale = Vector3.new(0.25,1,0.25) | |
1591 | local heropart10 = prt19:Clone() | |
1592 | heropart10.Parent = modelzorz | |
1593 | heropart10.Transparency = 0.5 | |
1594 | heropart10.Reflectance = 0.2 | |
1595 | heropart10.BrickColor = BrickColor.new("New Yeller") | |
1596 | heropart10.Mesh.Scale = Vector3.new(0.25,1.1,0.25) | |
1597 | local heropart11 = prt20:Clone() | |
1598 | heropart11.Parent = modelzorz | |
1599 | heropart11.Transparency = 0.5 | |
1600 | heropart11.Reflectance = 0.2 | |
1601 | heropart11.BrickColor = BrickColor.new("New Yeller") | |
1602 | heropart11.Mesh.Scale = Vector3.new(0.25,1.2,0.25) | |
1603 | local heropart12 = prt21:Clone() | |
1604 | heropart12.Parent = modelzorz | |
1605 | heropart12.Transparency = 0.5 | |
1606 | heropart12.Reflectance = 0.2 | |
1607 | heropart12.BrickColor = BrickColor.new("New Yeller") | |
1608 | heropart12.Mesh.Scale = Vector3.new(0.25,1.3,0.25) | |
1609 | local heropart13 = prt22:Clone() | |
1610 | heropart13.Parent = modelzorz | |
1611 | heropart13.Transparency = 0.5 | |
1612 | heropart13.Reflectance = 0.2 | |
1613 | heropart13.BrickColor = BrickColor.new("New Yeller") | |
1614 | heropart13.Mesh.Scale = Vector3.new(0.25,1.4,0.25) | |
1615 | local heropart14 = prt23:Clone() | |
1616 | heropart14.Parent = modelzorz | |
1617 | heropart14.Transparency = 0.5 | |
1618 | heropart14.Reflectance = 0.2 | |
1619 | heropart14.BrickColor = BrickColor.new("New Yeller") | |
1620 | heropart14.Mesh.Scale = Vector3.new(0.25,1.5,0.25) | |
1621 | local heropart15 = prt27:Clone() | |
1622 | heropart15.Parent = modelzorz | |
1623 | heropart15.Transparency = 0.5 | |
1624 | heropart15.Reflectance = 0.2 | |
1625 | heropart15.BrickColor = BrickColor.new("New Yeller") | |
1626 | heropart15.Mesh.Scale = Vector3.new(0.4,0.7,1.1) | |
1627 | local heropart16 = prt28:Clone() | |
1628 | heropart16.Parent = modelzorz | |
1629 | heropart16.Transparency = 0.5 | |
1630 | heropart16.Reflectance = 0.2 | |
1631 | heropart16.BrickColor = BrickColor.new("New Yeller") | |
1632 | heropart16.Mesh.Scale = Vector3.new(0.4,0.7,1.1) | |
1633 | ||
1634 | local heroweld1 = Instance.new("Weld") | |
1635 | heroweld1.Parent = heropart1 | |
1636 | heroweld1.Part0 = heropart1 | |
1637 | heroweld1.Part1 = prt10 | |
1638 | heroweld1.C0 = CFrame.new(0,0.3,0) | |
1639 | local heroweld2 = Instance.new("Weld") | |
1640 | heroweld2.Parent = heropart2 | |
1641 | heroweld2.Part0 = heropart2 | |
1642 | heroweld2.Part1 = prt11 | |
1643 | heroweld2.C0 = CFrame.new(0,0.3,0) | |
1644 | local heroweld3 = Instance.new("Weld") | |
1645 | heroweld3.Parent = heropart3 | |
1646 | heroweld3.Part0 = heropart3 | |
1647 | heroweld3.Part1 = prt12 | |
1648 | heroweld3.C0 = CFrame.new(0,0.3,0) | |
1649 | local heroweld4 = Instance.new("Weld") | |
1650 | heroweld4.Parent = heropart4 | |
1651 | heroweld4.Part0 = heropart4 | |
1652 | heroweld4.Part1 = prt13 | |
1653 | heroweld4.C0 = CFrame.new(0,0.3,0) | |
1654 | local heroweld5 = Instance.new("Weld") | |
1655 | heroweld5.Parent = heropart5 | |
1656 | heroweld5.Part0 = heropart5 | |
1657 | heroweld5.Part1 = prt14 | |
1658 | heroweld5.C0 = CFrame.new(0,0.3,0) | |
1659 | local heroweld6 = Instance.new("Weld") | |
1660 | heroweld6.Parent = heropart6 | |
1661 | heroweld6.Part0 = heropart6 | |
1662 | heroweld6.Part1 = prt15 | |
1663 | heroweld6.C0 = CFrame.new(0,0.3,0) | |
1664 | local heroweld7 = Instance.new("Weld") | |
1665 | heroweld7.Parent = heropart7 | |
1666 | heroweld7.Part0 = heropart7 | |
1667 | heroweld7.Part1 = prt16 | |
1668 | heroweld7.C0 = CFrame.new(0,0.3,0) | |
1669 | local heroweld8 = Instance.new("Weld") | |
1670 | heroweld8.Parent = heropart8 | |
1671 | heroweld8.Part0 = heropart8 | |
1672 | heroweld8.Part1 = prt17 | |
1673 | heroweld8.C0 = CFrame.new(0,0.3,0) | |
1674 | local heroweld9 = Instance.new("Weld") | |
1675 | heroweld9.Parent = heropart9 | |
1676 | heroweld9.Part0 = heropart9 | |
1677 | heroweld9.Part1 = prt18 | |
1678 | heroweld9.C0 = CFrame.new(0,0.3,0) | |
1679 | local heroweld10 = Instance.new("Weld") | |
1680 | heroweld10.Parent = heropart10 | |
1681 | heroweld10.Part0 = heropart10 | |
1682 | heroweld10.Part1 = prt19 | |
1683 | heroweld10.C0 = CFrame.new(0,0.3,0) | |
1684 | local heroweld11 = Instance.new("Weld") | |
1685 | heroweld11.Parent = heropart11 | |
1686 | heroweld11.Part0 = heropart11 | |
1687 | heroweld11.Part1 = prt20 | |
1688 | heroweld11.C0 = CFrame.new(0,0.3,0) | |
1689 | local heroweld12 = Instance.new("Weld") | |
1690 | heroweld12.Parent = heropart12 | |
1691 | heroweld12.Part0 = heropart12 | |
1692 | heroweld12.Part1 = prt21 | |
1693 | heroweld12.C0 = CFrame.new(0,0.3,0) | |
1694 | local heroweld13 = Instance.new("Weld") | |
1695 | heroweld13.Parent = heropart13 | |
1696 | heroweld13.Part0 = heropart13 | |
1697 | heroweld13.Part1 = prt22 | |
1698 | heroweld13.C0 = CFrame.new(0,0.3,0) | |
1699 | local heroweld14 = Instance.new("Weld") | |
1700 | heroweld14.Parent = heropart14 | |
1701 | heroweld14.Part0 = heropart14 | |
1702 | heroweld14.Part1 = prt23 | |
1703 | heroweld14.C0 = CFrame.new(0,0.3,0) | |
1704 | local heroweld15 = Instance.new("Weld") | |
1705 | heroweld15.Parent = heropart15 | |
1706 | heroweld15.Part0 = heropart15 | |
1707 | heroweld15.Part1 = prt27 | |
1708 | heroweld15.C0 = CFrame.new(0,-0.1,0.1) | |
1709 | local heroweld16 = Instance.new("Weld") | |
1710 | heroweld16.Parent = heropart16 | |
1711 | heroweld16.Part0 = heropart16 | |
1712 | heroweld16.Part1 = prt28 | |
1713 | heroweld16.C0 = CFrame.new(0,-0.1,0.1) | |
1714 | ||
1715 | coroutine.resume(coroutine.create(function() | |
1716 | while HeroBar > 0 do | |
1717 | wait(0.1) | |
1718 | mana = 0 | |
1719 | HeroBar = HeroBar - 1 | |
1720 | --Character.Humanoid.Health = Character.Humanoid.Health + 0.1 | |
1721 | local bawleffect = Instance.new("Part") | |
1722 | bawleffect.formFactor = 1 | |
1723 | bawleffect.CanCollide = false | |
1724 | bawleffect.Name = "Effect" | |
1725 | bawleffect.Locked = true | |
1726 | bawleffect.Size = Vector3.new(1,1,1) | |
1727 | bawleffect.Parent = Character | |
1728 | bawleffect.Anchored = true | |
1729 | bawleffect.BrickColor = BrickColor.new("New Yeller") | |
1730 | bawleffect.CFrame = prt25.CFrame * CFrame.new(math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-2,5)+math.random()) | |
1731 | local bawlmesh = Instance.new("SpecialMesh") | |
1732 | bawlmesh.Parent = bawleffect | |
1733 | bawlmesh.Scale = Vector3.new(0.1,0.1,0.1) | |
1734 | bawlmesh.MeshType = "Sphere" | |
1735 | coroutine.resume(coroutine.create(function(Part) | |
1736 | wait(0.1) | |
1737 | for i = 0,1,0.1 do | |
1738 | wait() | |
1739 | Part.Reflectance = i | |
1740 | Part.Transparency = i | |
1741 | end | |
1742 | Part.Parent = nil | |
1743 | end),bawleffect) | |
1744 | end | |
1745 | heromode = false | |
1746 | for i = 0,1,0.05 do | |
1747 | wait() | |
1748 | fentext5.BackgroundTransparency = fentext5.BackgroundTransparency + 0.05 | |
1749 | fentext6.BackgroundTransparency = fentext6.BackgroundTransparency + 0.05 | |
1750 | heropart1.Transparency = heropart1.Transparency + 0.05 | |
1751 | heropart2.Transparency = heropart2.Transparency + 0.05 | |
1752 | heropart3.Transparency = heropart3.Transparency + 0.05 | |
1753 | heropart4.Transparency = heropart4.Transparency + 0.05 | |
1754 | heropart5.Transparency = heropart5.Transparency + 0.05 | |
1755 | heropart6.Transparency = heropart6.Transparency + 0.05 | |
1756 | heropart7.Transparency = heropart7.Transparency + 0.05 | |
1757 | heropart8.Transparency = heropart8.Transparency + 0.05 | |
1758 | heropart9.Transparency = heropart9.Transparency + 0.05 | |
1759 | heropart10.Transparency = heropart10.Transparency + 0.05 | |
1760 | heropart11.Transparency = heropart11.Transparency + 0.05 | |
1761 | heropart12.Transparency = heropart12.Transparency + 0.05 | |
1762 | heropart13.Transparency = heropart13.Transparency + 0.05 | |
1763 | heropart14.Transparency = heropart14.Transparency + 0.05 | |
1764 | heropart15.Transparency = heropart15.Transparency + 0.05 | |
1765 | heropart16.Transparency = heropart16.Transparency + 0.05 | |
1766 | end | |
1767 | heropart1.Parent = nil | |
1768 | heropart2.Parent = nil | |
1769 | heropart3.Parent = nil | |
1770 | heropart4.Parent = nil | |
1771 | heropart5.Parent = nil | |
1772 | heropart6.Parent = nil | |
1773 | heropart7.Parent = nil | |
1774 | heropart8.Parent = nil | |
1775 | heropart9.Parent = nil | |
1776 | heropart10.Parent = nil | |
1777 | heropart11.Parent = nil | |
1778 | heropart12.Parent = nil | |
1779 | heropart13.Parent = nil | |
1780 | heropart14.Parent = nil | |
1781 | heropart15.Parent = nil | |
1782 | heropart16.Parent = nil | |
1783 | end)) | |
1784 | wait(0.1) | |
1785 | for i = 0,1,0.1 do | |
1786 | wait() | |
1787 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
1788 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1789 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
1790 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1791 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
1792 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1793 | end | |
1794 | attack = false | |
1795 | end | |
1796 | end | |
1797 | ||
1798 | function Imbue() | |
1799 | if mana >= 50 then | |
1800 | attack = true | |
1801 | for i = 0,1,0.1 do | |
1802 | wait() | |
1803 | MMMAGIC(RightArm,2,2,2,0,-1,0,BrickColor.new("White")) | |
1804 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5*i,1.57) * CFrame.new(0,1,0) | |
1805 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,-1.57*i,0) | |
1806 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1807 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,0) | |
1808 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1809 | end | |
1810 | for i = 0,1,0.05 do | |
1811 | wait() | |
1812 | MMMAGIC(RightArm,3,3,3,0,-1-2*i,0,BrickColor.new("White")) | |
1813 | end | |
1814 | mana = mana - 50 | |
1815 | Imbued = true | |
1816 | coroutine.resume(coroutine.create(function() | |
1817 | lasersound(1) | |
1818 | local Bawl1 = Instance.new("Part") | |
1819 | Bawl1.Parent = modelzorz | |
1820 | Bawl1.CanCollide = false | |
1821 | Bawl1.BrickColor = BrickColor.new("White") | |
1822 | Bawl1.Position = Torso.Position | |
1823 | Bawl1.Transparency = 1 | |
1824 | Bawl1.Size = Vector3.new(1,1,1) | |
1825 | local BawlMesh1 = Instance.new("SpecialMesh") | |
1826 | BawlMesh1.Parent = Bawl1 | |
1827 | BawlMesh1.MeshType = "Sphere" | |
1828 | BawlMesh1.Scale = Vector3.new(0,0,0) | |
1829 | local BawlWeld1 = Instance.new("Weld") | |
1830 | BawlWeld1.Parent = Bawl1 | |
1831 | BawlWeld1.Part0 = Bawl1 | |
1832 | BawlWeld1.Part1 = prt25 | |
1833 | BawlWeld1.C0 = CFrame.new(1.5,0,0) | |
1834 | EVENMOARMAGIX(Bawl1,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
1835 | local Bawl2 = Instance.new("Part") | |
1836 | Bawl2.Parent = modelzorz | |
1837 | Bawl2.CanCollide = false | |
1838 | Bawl2.BrickColor = BrickColor.new("White") | |
1839 | Bawl2.Position = Torso.Position | |
1840 | Bawl2.Transparency = 1 | |
1841 | Bawl2.Size = Vector3.new(1,1,1) | |
1842 | local BawlMesh2 = Instance.new("SpecialMesh") | |
1843 | BawlMesh2.Parent = Bawl2 | |
1844 | BawlMesh2.MeshType = "Sphere" | |
1845 | BawlMesh2.Scale = Vector3.new(0,0,0) | |
1846 | local BawlWeld2 = Instance.new("Weld") | |
1847 | BawlWeld2.Parent = Bawl2 | |
1848 | BawlWeld2.Part0 = Bawl2 | |
1849 | BawlWeld2.Part1 = prt25 | |
1850 | BawlWeld2.C0 = CFrame.new(-1.5,0,0) | |
1851 | EVENMOARMAGIX(Bawl2,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
1852 | coroutine.resume(coroutine.create(function() | |
1853 | while Imbued == true do | |
1854 | wait(0.1) | |
1855 | BawlWeld1.C0 = BawlWeld1.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.3) | |
1856 | BawlWeld2.C0 = BawlWeld2.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.3) | |
1857 | MMMAGIC(Bawl1,2,2,2,0,0,0,BrickColor.new("White")) | |
1858 | MMMAGIC(Bawl2,2,2,2,0,0,0,BrickColor.new("White")) | |
1859 | end | |
1860 | Bawl1.Parent = nil | |
1861 | Bawl2.Parent = nil | |
1862 | end)) | |
1863 | end)) | |
1864 | MMMAGIC(RightArm,5,5,5,0,-1-2,0,BrickColor.new("White")) | |
1865 | wait(0.5) | |
1866 | for i = 0,1,0.1 do | |
1867 | wait() | |
1868 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.5-0.5*i,1.57) * CFrame.new(0,1,0) | |
1869 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,-1.57+1.57*i,0) | |
1870 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1871 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i*i,0,0) | |
1872 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1873 | end | |
1874 | attack = false | |
1875 | end | |
1876 | end | |
1877 | ||
1878 | function Rest() | |
1879 | attack = true | |
1880 | Resting = true | |
1881 | Character.Humanoid.WalkSpeed = 0 | |
1882 | gairo2.Parent = char1 | |
1883 | gairo2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1884 | gairo2.P = 20e+003 | |
1885 | gairo2.cframe = char1.CFrame | |
1886 | bod = Instance.new("BodyPosition") | |
1887 | bod.position = char1.Position | |
1888 | bod.Parent = char1 | |
1889 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
1890 | for i = 0,1,0.1 do | |
1891 | wait() | |
1892 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8*i,1.57) * CFrame.new(0,1,0) | |
1893 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5*i,0,0) | |
1894 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1895 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
1896 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1897 | RW2.C0 = CFrame.new(0.1*i, -1.5, -0.3-0.2*i) * CFrame.fromEulerAnglesXYZ(0.8+0.77*i,0,0.5*i) | |
1898 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1899 | LW2.C0 = CFrame.new(-0.1*i, -1.5, 0.1-0.6*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.5*i) | |
1900 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1901 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0.3*i,0,0) * CFrame.new(0,3.5-1*i,1+1*i) | |
1902 | end | |
1903 | bod.Parent = nil | |
1904 | coroutine.resume(coroutine.create(function() | |
1905 | while Resting == true do | |
1906 | wait(math.random(5,15)) | |
1907 | for i = 1,2 do | |
1908 | wait() | |
1909 | for i = 0,1,0.2 do | |
1910 | wait() | |
1911 | if Resting == true then | |
1912 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8-0.3*i,1.57) * CFrame.new(0,1,0) | |
1913 | end | |
1914 | end | |
1915 | for i = 0,1,0.2 do | |
1916 | wait() | |
1917 | if Resting == true then | |
1918 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8-0.3+0.3*i,1.57) * CFrame.new(0,1,0) | |
1919 | end | |
1920 | end | |
1921 | end | |
1922 | end | |
1923 | end)) | |
1924 | coroutine.resume(coroutine.create(function() | |
1925 | while Resting == true do | |
1926 | wait() | |
1927 | for i = 0,1,0.01 do | |
1928 | wait() | |
1929 | if Resting == true then | |
1930 | --wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8*i,1.57) * CFrame.new(0,1,0) | |
1931 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+0.2*i,0,0) | |
1932 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1933 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2*i,0,0) | |
1934 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1935 | RW2.C0 = CFrame.new(0.1, -1.5, -0.3-0.2) * CFrame.fromEulerAnglesXYZ(0.8+0.77,0,0.5) | |
1936 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1937 | LW2.C0 = CFrame.new(-0.1, -1.5, 0.1-0.6) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,-0.5) | |
1938 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1939 | --charw1.C0 = CFrame.fromEulerAnglesXYZ(0.3*i,0,0) * CFrame.new(0,3.5-1*i,1+1*i) | |
1940 | end | |
1941 | end | |
1942 | for i = 0,1,0.01 do | |
1943 | wait() | |
1944 | if Resting == true then | |
1945 | --wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8*i,1.57) * CFrame.new(0,1,0) | |
1946 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+0.2-0.2*i,0,0) | |
1947 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1948 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2-0.2*i,0,0) | |
1949 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1950 | RW2.C0 = CFrame.new(0.1, -1.5, -0.3-0.2) * CFrame.fromEulerAnglesXYZ(0.8+0.77,0,0.5) | |
1951 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1952 | LW2.C0 = CFrame.new(-0.1, -1.5, 0.1-0.6) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,-0.5) | |
1953 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1954 | --charw1.C0 = CFrame.fromEulerAnglesXYZ(0.3*i,0,0) * CFrame.new(0,3.5-1*i,1+1*i) | |
1955 | end | |
1956 | end | |
1957 | end | |
1958 | end)) | |
1959 | humanoid = Character.Humanoid | |
1960 | lhh = humanoid.Health | |
1961 | while Resting == true do | |
1962 | wait() | |
1963 | if mana < 400 then | |
1964 | mana = mana + 1 | |
1965 | end | |
1966 | Character.Humanoid.Health = Character.Humanoid.Health + 0.1 | |
1967 | if humanoid.Health < lhh then | |
1968 | Resting = false | |
1969 | print(lhh - humanoid.Health) | |
1970 | test = lhh - humanoid.Health | |
1971 | lhh = humanoid.Health | |
1972 | else | |
1973 | end | |
1974 | end | |
1975 | if Sleeping == true then | |
1976 | bod = Instance.new("BodyPosition") | |
1977 | bod.position = char1.Position | |
1978 | bod.Parent = char1 | |
1979 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
1980 | for i = 0,1,0.1 do | |
1981 | wait() | |
1982 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.2*i,0,0) | |
1983 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8,1.57) * CFrame.new(0,1,0) | |
1984 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5-1.07*i,0,0) | |
1985 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1986 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5-1.07*i,0,0) | |
1987 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1988 | RW2.C0 = CFrame.new(0.1-0.1*i, -1.5, -0.3-0.2+0.2*i) * CFrame.fromEulerAnglesXYZ(0.8+0.77-1.2*i,0,0.5-0.5*i) | |
1989 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1990 | LW2.C0 = CFrame.new(-0.1+0.1*i, -1.5, 0.1-0.6+0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07-1.2*i,0,-0.5+0.5*i) | |
1991 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1992 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0.3+1.27*i,0,0) * CFrame.new(0,3.5-1-1*i,1+1-3*i) | |
1993 | end | |
1994 | bod.Parent = nil | |
1995 | humanoid = Character.Humanoid | |
1996 | lhh = humanoid.Health | |
1997 | while Sleeping == true do | |
1998 | wait() | |
1999 | if mana < 400 then | |
2000 | mana = mana + 5 | |
2001 | end | |
2002 | Character.Humanoid.Health = Character.Humanoid.Health + 0.5 | |
2003 | if humanoid.Health < lhh then | |
2004 | Sleeping = false | |
2005 | print(lhh - humanoid.Health) | |
2006 | test = lhh - humanoid.Health | |
2007 | lhh = humanoid.Health | |
2008 | else | |
2009 | end | |
2010 | end | |
2011 | end | |
2012 | bod = Instance.new("BodyPosition") | |
2013 | bod.position = char1.Position | |
2014 | bod.Parent = char1 | |
2015 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
2016 | for i = 0,1,0.1 do | |
2017 | wait() | |
2018 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2019 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0.8-0.8*i,1.57) * CFrame.new(0,1,0) | |
2020 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
2021 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2022 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2023 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2024 | RW2.C0 = CFrame.new(0.1-0.1*i, -1.5, -0.3-0.2+0.2*i) * CFrame.fromEulerAnglesXYZ(0.8+0.77-0.77*i,0,0.5-0.5*i) | |
2025 | RW2.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2026 | LW2.C0 = CFrame.new(-0.1+0.1*i, -1.5, 0.1-0.6+0.6*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07-2.07*i,0,-0.5+0.5*i) | |
2027 | LW2.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2028 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0.3-0.3*i,0,0) * CFrame.new(0,3.5-1+1*i,1+1-1*i) | |
2029 | end | |
2030 | bod.Parent = nil | |
2031 | gairo2.Parent = nil | |
2032 | Character.Humanoid.WalkSpeed = 16 | |
2033 | Resting = false | |
2034 | Sleeping = false | |
2035 | attack = false | |
2036 | end | |
2037 | ||
2038 | function SpearThrow2(mouse) | |
2039 | if mana >= 50 or heromode == true then | |
2040 | attack = true | |
2041 | for i = 0,1,0.1 do | |
2042 | wait() | |
2043 | if heromode == true then | |
2044 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2045 | else | |
2046 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2047 | end | |
2048 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
2049 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2050 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0) | |
2051 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2052 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2053 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2054 | end | |
2055 | wait(0.1) | |
2056 | if RageBuff == true then | |
2057 | lolololdur = 0 | |
2058 | while hold == true do | |
2059 | wait() | |
2060 | if heromode == true then | |
2061 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2062 | else | |
2063 | if lolololdur >= 60 then | |
2064 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("Bright red")) | |
2065 | else | |
2066 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2067 | end | |
2068 | end | |
2069 | if lolololdur == 10 then | |
2070 | magicsound(3) | |
2071 | MMMAGIC(prt25,1,1,1,0,0,0,BrickColor.new("Bright red")) | |
2072 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2073 | rangepower = 30 | |
2074 | end | |
2075 | if lolololdur == 30 then | |
2076 | magicsound(2) | |
2077 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2078 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2079 | rangepower = 50 | |
2080 | end | |
2081 | if lolololdur == 60 then | |
2082 | magicsound(1) | |
2083 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2084 | MMMAGIC(prt25,7,7,7,0,0,0,BrickColor.new("Bright red")) | |
2085 | rangepower = 100 | |
2086 | RAEG = true | |
2087 | end | |
2088 | lolololdur = lolololdur + 1 | |
2089 | end | |
2090 | end | |
2091 | ss(1) | |
2092 | coroutine.resume(coroutine.create(function() | |
2093 | for i = 0,1,0.2 do | |
2094 | wait() | |
2095 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2096 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
2097 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2098 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
2099 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2100 | end | |
2101 | end)) | |
2102 | if heromode == false then | |
2103 | mana = mana - 50 | |
2104 | end | |
2105 | if Riding == true then | |
2106 | for i = 1,6 do | |
2107 | coroutine.resume(coroutine.create(function() | |
2108 | shoottrail2(mouse) | |
2109 | end)) | |
2110 | end | |
2111 | else | |
2112 | for i = 1,2 do | |
2113 | coroutine.resume(coroutine.create(function() | |
2114 | shoottrail2(mouse) | |
2115 | end)) | |
2116 | end | |
2117 | end | |
2118 | prt1.CanCollide = true | |
2119 | shoottrail(mouse) | |
2120 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
2121 | wait(1) | |
2122 | prt1.Anchored = false | |
2123 | wld1.Parent = prt1 | |
2124 | wld1.Part0 = prt1 | |
2125 | wld1.Part1 = LeftArm | |
2126 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
2127 | wld1.C1 = CFrame.new(0,0,0) | |
2128 | if heromode == false then | |
2129 | else | |
2130 | wait(8) | |
2131 | end | |
2132 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2133 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2134 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2135 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2136 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2137 | attack = false | |
2138 | rangepower = 10 | |
2139 | RAEG = false | |
2140 | end | |
2141 | end | |
2142 | ||
2143 | function BouncingSpear(mouse) | |
2144 | attack = true | |
2145 | for i = 0,1,0.1 do | |
2146 | wait() | |
2147 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
2148 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2149 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0) | |
2150 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2151 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2152 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2153 | end | |
2154 | wait(0.1) | |
2155 | if RageBuff == true then | |
2156 | lolololdur = 0 | |
2157 | while hold == true do | |
2158 | wait() | |
2159 | if lolololdur == 10 then | |
2160 | magicsound(3) | |
2161 | MMMAGIC(prt25,1,1,1,0,0,0,BrickColor.new("Bright red")) | |
2162 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2163 | rangepower = 30 | |
2164 | end | |
2165 | if lolololdur == 30 then | |
2166 | magicsound(2) | |
2167 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2168 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2169 | rangepower = 50 | |
2170 | end | |
2171 | if lolololdur == 60 then | |
2172 | magicsound(1) | |
2173 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2174 | MMMAGIC(prt25,7,7,7,0,0,0,BrickColor.new("Bright red")) | |
2175 | rangepower = 100 | |
2176 | RAEG = true | |
2177 | end | |
2178 | lolololdur = lolololdur + 1 | |
2179 | end | |
2180 | end | |
2181 | ss(1) | |
2182 | coroutine.resume(coroutine.create(function() | |
2183 | for i = 0,1,0.2 do | |
2184 | wait() | |
2185 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2186 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
2187 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2188 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
2189 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2190 | end | |
2191 | end)) | |
2192 | Bouncing = true | |
2193 | prt1.CanCollide = true | |
2194 | spread2 = 100000 | |
2195 | cloning = 0 | |
2196 | wait() | |
2197 | attack = true | |
2198 | while wld1.Parent ~= nil and Bouncing == true and attack == true do | |
2199 | if wld1.Parent == nil then | |
2200 | Bouncing = false | |
2201 | end | |
2202 | cloning = cloning + 1 | |
2203 | if cloning == 5 and heromode == false then | |
2204 | cloning = 0 | |
2205 | for i = 1,2 do | |
2206 | coroutine.resume(coroutine.create(function() | |
2207 | shoottrail2(mouse) | |
2208 | end)) | |
2209 | end | |
2210 | end | |
2211 | shoottrail(mouse) | |
2212 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
2213 | if heromode == true then | |
2214 | rangepower = 40 | |
2215 | spread = 2000 | |
2216 | spread2 = 2500 | |
2217 | --spread2 = 100000 | |
2218 | --spread = 100000 | |
2219 | range = 30 | |
2220 | range2 = 200 | |
2221 | elseif heromode == false then | |
2222 | rangepower = 10 | |
2223 | spread = 2000 | |
2224 | spread2 = 2500 | |
2225 | --spread2 = 100000 | |
2226 | --spread = 100000 | |
2227 | range = 50 | |
2228 | range2 = 200 | |
2229 | end | |
2230 | wait(0) | |
2231 | end | |
2232 | wait(1) | |
2233 | rangepower = 10 | |
2234 | spread = 0 | |
2235 | range = 1000 | |
2236 | range2 = 1000 | |
2237 | spread2 = 500 | |
2238 | cloning = 0 | |
2239 | Bouncing = false | |
2240 | prt1.Anchored = false | |
2241 | wld1.Parent = prt1 | |
2242 | wld1.Part0 = prt1 | |
2243 | wld1.Part1 = LeftArm | |
2244 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
2245 | wld1.C1 = CFrame.new(0,0,0) | |
2246 | if heromode == false then | |
2247 | else | |
2248 | wait(4) | |
2249 | end | |
2250 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2251 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2252 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2253 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2254 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2255 | attack = false | |
2256 | rangepower = 10 | |
2257 | RAEG = false | |
2258 | end | |
2259 | ||
2260 | function ThrowSpam(mouse) | |
2261 | attack = true | |
2262 | for i = 0,1,0.1 do | |
2263 | wait() | |
2264 | if heromode == true then | |
2265 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2266 | else | |
2267 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2268 | end | |
2269 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
2270 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2271 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0) | |
2272 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2273 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2274 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2275 | end | |
2276 | wait(0.1) | |
2277 | if RageBuff == true then | |
2278 | lolololdur = 0 | |
2279 | while hold == true do | |
2280 | wait() | |
2281 | if heromode == true then | |
2282 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2283 | else | |
2284 | if lolololdur >= 60 then | |
2285 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("Bright red")) | |
2286 | else | |
2287 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2288 | end | |
2289 | end | |
2290 | if lolololdur == 10 then | |
2291 | magicsound(3) | |
2292 | MMMAGIC(prt25,1,1,1,0,0,0,BrickColor.new("Bright red")) | |
2293 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2294 | rangepower = 30 | |
2295 | end | |
2296 | if lolololdur == 30 then | |
2297 | magicsound(2) | |
2298 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2299 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2300 | rangepower = 50 | |
2301 | end | |
2302 | if lolololdur == 60 then | |
2303 | magicsound(1) | |
2304 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2305 | MMMAGIC(prt25,7,7,7,0,0,0,BrickColor.new("Bright red")) | |
2306 | rangepower = 100 | |
2307 | RAEG = true | |
2308 | end | |
2309 | lolololdur = lolololdur + 1 | |
2310 | end | |
2311 | end | |
2312 | ss(1) | |
2313 | coroutine.resume(coroutine.create(function() | |
2314 | for i = 1,10 do | |
2315 | coroutine.resume(coroutine.create(function() | |
2316 | wait(1) | |
2317 | shoottrail2(mouse) | |
2318 | end)) | |
2319 | end | |
2320 | end)) | |
2321 | coroutine.resume(coroutine.create(function() | |
2322 | for i = 0,1,0.2 do | |
2323 | wait() | |
2324 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2325 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
2326 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2327 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
2328 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2329 | end | |
2330 | end)) | |
2331 | prt1.CanCollide = true | |
2332 | shoottrail(mouse) | |
2333 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
2334 | wait(1) | |
2335 | prt1.Anchored = false | |
2336 | wld1.Parent = prt1 | |
2337 | wld1.Part0 = prt1 | |
2338 | wld1.Part1 = LeftArm | |
2339 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
2340 | wld1.C1 = CFrame.new(0,0,0) | |
2341 | if heromode == false then | |
2342 | else | |
2343 | wait(4) | |
2344 | end | |
2345 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2346 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2347 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2348 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2349 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2350 | attack = false | |
2351 | rangepower = 10 | |
2352 | RAEG = false | |
2353 | end | |
2354 | ||
2355 | function ThrowSpam2(mouse) | |
2356 | attack = true | |
2357 | for i = 0,1,0.1 do | |
2358 | wait() | |
2359 | if heromode == true then | |
2360 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2361 | else | |
2362 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2363 | end | |
2364 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0) | |
2365 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2366 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0) | |
2367 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2368 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2369 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2370 | end | |
2371 | wait(0.1) | |
2372 | if RageBuff == true then | |
2373 | lolololdur = 0 | |
2374 | while hold == true do | |
2375 | wait() | |
2376 | if heromode == true then | |
2377 | MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("New Yeller")) | |
2378 | else | |
2379 | if lolololdur >= 60 then | |
2380 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("Bright red")) | |
2381 | else | |
2382 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2383 | end | |
2384 | end | |
2385 | if lolololdur == 10 then | |
2386 | magicsound(3) | |
2387 | MMMAGIC(prt25,1,1,1,0,0,0,BrickColor.new("Bright red")) | |
2388 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2389 | rangepower = 30 | |
2390 | end | |
2391 | if lolololdur == 30 then | |
2392 | magicsound(2) | |
2393 | MMMAGIC(prt25,3,3,3,0,0,0,BrickColor.new("Bright red")) | |
2394 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2395 | rangepower = 50 | |
2396 | end | |
2397 | if lolololdur == 60 then | |
2398 | magicsound(1) | |
2399 | MMMAGIC(prt25,5,5,5,0,0,0,BrickColor.new("Bright red")) | |
2400 | MMMAGIC(prt25,7,7,7,0,0,0,BrickColor.new("Bright red")) | |
2401 | rangepower = 100 | |
2402 | RAEG = true | |
2403 | end | |
2404 | lolololdur = lolololdur + 1 | |
2405 | end | |
2406 | end | |
2407 | ss(1) | |
2408 | coroutine.resume(coroutine.create(function() | |
2409 | for i = 1,30 do | |
2410 | wait(0.1) | |
2411 | coroutine.resume(coroutine.create(function() | |
2412 | shoottrail2(mouse) | |
2413 | end)) | |
2414 | end | |
2415 | coroutine.resume(coroutine.create(function() | |
2416 | for i = 0,1,0.2 do | |
2417 | wait() | |
2418 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2419 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0) | |
2420 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2421 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4) | |
2422 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2423 | end | |
2424 | end)) | |
2425 | prt1.CanCollide = true | |
2426 | shoottrail(mouse) | |
2427 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
2428 | wait(1) | |
2429 | prt1.Anchored = false | |
2430 | wld1.Parent = prt1 | |
2431 | wld1.Part0 = prt1 | |
2432 | wld1.Part1 = LeftArm | |
2433 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
2434 | wld1.C1 = CFrame.new(0,0,0) | |
2435 | if heromode == false then | |
2436 | else | |
2437 | wait(4) | |
2438 | end | |
2439 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2440 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2441 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2442 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2443 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2444 | attack = false | |
2445 | rangepower = 10 | |
2446 | RAEG = false | |
2447 | end)) | |
2448 | end | |
2449 | ||
2450 | function WRYYY() | |
2451 | attack = true | |
2452 | if Riding == false then | |
2453 | Riding = true | |
2454 | bod = Instance.new("BodyPosition") | |
2455 | bod.position = Torso.Position + Vector3.new(0,50,0) | |
2456 | bod.Parent = Torso | |
2457 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
2458 | for i = 0,1,0.1 do | |
2459 | wait() | |
2460 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2461 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1*i,0,0) | |
2462 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2463 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,0) | |
2464 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2465 | end | |
2466 | if chariot.Parent == nil then | |
2467 | local c = chariot:children() | |
2468 | for i = 1,#c do | |
2469 | c[i].Transparency = 1 | |
2470 | end | |
2471 | local c = chariot:children() | |
2472 | for i = 1,#c do | |
2473 | coroutine.resume(coroutine.create(function(Part) | |
2474 | for i = 0,1,0.1 do | |
2475 | wait(0.1) | |
2476 | Part.Transparency = Part.Transparency - 0.1 | |
2477 | end | |
2478 | end),c[i]) | |
2479 | end | |
2480 | wait(0.1) | |
2481 | gairo2.Parent = nil | |
2482 | char1.Anchored = false | |
2483 | chariot.Parent = mien | |
2484 | charw1.Parent = char1 | |
2485 | charw1.Part1 = Torso | |
2486 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0) | |
2487 | Character.Humanoid.WalkSpeed = 20 | |
2488 | wait(1) | |
2489 | else | |
2490 | gairo2.Parent = nil | |
2491 | char1.Anchored = false | |
2492 | chariot.Parent = mien | |
2493 | charw1.Parent = char1 | |
2494 | charw1.Part1 = Torso | |
2495 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0) | |
2496 | Character.Humanoid.WalkSpeed = 20 | |
2497 | wait(1) | |
2498 | end | |
2499 | bod.position = Torso.Position - Vector3.new(0,50,0) | |
2500 | for i = 0,1,0.1 do | |
2501 | wait() | |
2502 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2503 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1-1.5*i,0,0) | |
2504 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2505 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1.5*i,0,0) | |
2506 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2507 | end | |
2508 | local c = game.Workspace:GetChildren(); | |
2509 | for i = 1, #c do | |
2510 | local hum = c[i]:findFirstChild("Humanoid") | |
2511 | if hum ~= nil and hum.Health ~= 0 then | |
2512 | local head = c[i]:findFirstChild("Head"); | |
2513 | if head ~= nil then | |
2514 | local targ = head.Position - char1.Position; | |
2515 | local mag = targ.magnitude; | |
2516 | if mag <= 6 and c[i].Name ~= Player.Name then | |
2517 | wait() | |
2518 | WRYHit(head,char1,50) | |
2519 | end | |
2520 | end | |
2521 | end | |
2522 | end | |
2523 | wait(0.5) | |
2524 | bod.Parent = nil | |
2525 | end | |
2526 | attack = false | |
2527 | end | |
2528 | ||
2529 | function GroundSlasher() | |
2530 | attack = true | |
2531 | gairo.Parent = Head | |
2532 | gairo.cframe = Head.CFrame | |
2533 | spikecona1=char18.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2534 | spikecona2=char19.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2535 | spikecona3=char20.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2536 | spikecona4=char21.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2537 | spikecona5=char22.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2538 | spikecona6=char23.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2539 | spikecona7=char24.Touched:connect(function(hit) SpikeDamage(hit,10,20) end) | |
2540 | for i = 0,1,0.1 do | |
2541 | wait() | |
2542 | gairo.cframe = Head.CFrame * CFrame.fromEulerAnglesXYZ(-0.1*i,0,0) | |
2543 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2544 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-3*i,0,0) | |
2545 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2546 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i,0,0) | |
2547 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2548 | end | |
2549 | blah = 0 | |
2550 | for i = 0,1,0.01 do | |
2551 | wait() | |
2552 | blah = blah + 0.5 | |
2553 | charw17.C0 = CFrame.fromEulerAnglesXYZ(0,blah,0) * CFrame.new(0,0,2) | |
2554 | end | |
2555 | gairo.Parent = nil | |
2556 | for i = 0,1,0.1 do | |
2557 | wait() | |
2558 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-3+3*i,0,0) | |
2559 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2560 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2+2*i,0,0) | |
2561 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2562 | end | |
2563 | spikecona1:disconnect() | |
2564 | spikecona2:disconnect() | |
2565 | spikecona3:disconnect() | |
2566 | spikecona4:disconnect() | |
2567 | spikecona5:disconnect() | |
2568 | spikecona6:disconnect() | |
2569 | spikecona7:disconnect() | |
2570 | wait(1) | |
2571 | attack = false | |
2572 | end | |
2573 | ||
2574 | function SpearWave(mouse) | |
2575 | attack = true | |
2576 | spearwave = true | |
2577 | prt1.CanCollide = true | |
2578 | shoottrail(Torso.Position) | |
2579 | --ShootArrow(mouse.hit.p, 200, mouse.Target) | |
2580 | wait(1) | |
2581 | prt1.Anchored = false | |
2582 | wld1.Parent = prt1 | |
2583 | wld1.Part0 = prt1 | |
2584 | wld1.Part1 = LeftArm | |
2585 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0) | |
2586 | wld1.C1 = CFrame.new(0,0,0) | |
2587 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
2588 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2589 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2590 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2591 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2592 | spearwave = false | |
2593 | attack = false | |
2594 | end | |
2595 | ||
2596 | function Halo() | |
2597 | if HealBuff == false and mana >= 50 then | |
2598 | attack = true | |
2599 | HealBuff = true | |
2600 | for i = 0,1,0.1 do | |
2601 | wait() | |
2602 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2603 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2604 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2605 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2606 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2607 | end | |
2608 | mana = mana - 50 | |
2609 | purify(1) | |
2610 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2611 | Character.Humanoid.MaxHealth = 200 | |
2612 | wait() | |
2613 | Character.Humanoid.Health = Character.Humanoid.Health * 2 | |
2614 | local las=Instance.new("Part",workspace) | |
2615 | las.Anchored=true | |
2616 | las.Locked=true | |
2617 | las.CanCollide=false | |
2618 | las.TopSurface=0 | |
2619 | las.BottomSurface=0 | |
2620 | las.FormFactor = "Custom" | |
2621 | las.BrickColor=BrickColor.new("White") | |
2622 | las.Size=Vector3.new(1,1,1) | |
2623 | las.CFrame=CFrame.new((prt25.Position+Torso.Position)/2,Torso.Position) *CFrame.Angles(math.rad(90),0,0) | |
2624 | local msh=Instance.new("SpecialMesh",las) | |
2625 | mag = (prt25.Position-Torso.Position).magnitude | |
2626 | msh.Scale=Vector3.new(1,mag,1) | |
2627 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2628 | for i = 0,1,0.1 do | |
2629 | wait() | |
2630 | Part.Transparency = Part.Transparency + 0.1 | |
2631 | Mesh.Scale = Mesh.Scale + Vector3.new(-0.05,0.7,-0.05) | |
2632 | end | |
2633 | Part.Parent = nil | |
2634 | end),las,msh) | |
2635 | local halo = Instance.new("Part") | |
2636 | halo.Parent = modelzorz | |
2637 | halo.CanCollide = false | |
2638 | halo.BrickColor = BrickColor.new("White") | |
2639 | halo.Position = Torso.Position | |
2640 | halo.Transparency = 1 | |
2641 | halo.Size = Vector3.new(1,1,1) | |
2642 | local haloMesh = Instance.new("SpecialMesh") | |
2643 | haloMesh.Parent = halo | |
2644 | haloMesh.MeshType = "Sphere" | |
2645 | haloMesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2646 | haloMesh.Scale = Vector3.new(0,1,0) | |
2647 | local haloWeld = Instance.new("Weld") | |
2648 | haloWeld.Parent = halo | |
2649 | haloWeld.Part0 = halo | |
2650 | haloWeld.Part1 = Head | |
2651 | haloWeld.C0 = CFrame.new(0,0,-1.7) * CFrame.fromEulerAnglesXYZ(1.57,0,0) | |
2652 | coroutine.resume(coroutine.create(function() | |
2653 | for i = 0,1,0.1 do | |
2654 | wait() | |
2655 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2656 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2657 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2658 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2659 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2660 | end | |
2661 | end)) | |
2662 | attack = false | |
2663 | for i = 0,1,0.1 do | |
2664 | wait() | |
2665 | halo.Transparency = halo.Transparency - 0.1 | |
2666 | haloMesh.Scale = haloMesh.Scale + Vector3.new(0.1,0,0.1) | |
2667 | end | |
2668 | while Character.Humanoid.Health >= 100 do | |
2669 | wait() | |
2670 | end | |
2671 | Character.Humanoid.MaxHealth = 100 | |
2672 | wait() | |
2673 | for i = 0,1,0.1 do | |
2674 | wait() | |
2675 | halo.Transparency = halo.Transparency + 0.1 | |
2676 | end | |
2677 | halo.Parent = nil | |
2678 | HealBuff = false | |
2679 | end | |
2680 | end | |
2681 | ||
2682 | function HaloOther(mouse) | |
2683 | if mana >= 50 and mouse.Target.Parent:findFirstChild("Humanoid")~=nil then | |
2684 | attack = true | |
2685 | durp = mouse.Target | |
2686 | for i = 0,1,0.1 do | |
2687 | wait() | |
2688 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2689 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2690 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2691 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2692 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2693 | end | |
2694 | mana = mana - 50 | |
2695 | purify(1) | |
2696 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2697 | durp.Parent.Humanoid.MaxHealth = 200 | |
2698 | wait() | |
2699 | durp.Parent.Humanoid.Health = durp.Parent.Humanoid.Health * 2 | |
2700 | local las=Instance.new("Part",workspace) | |
2701 | las.Anchored=true | |
2702 | las.Locked=true | |
2703 | las.CanCollide=false | |
2704 | las.TopSurface=0 | |
2705 | las.BottomSurface=0 | |
2706 | las.FormFactor = "Custom" | |
2707 | las.BrickColor=BrickColor.new("White") | |
2708 | las.Size=Vector3.new(1,1,1) | |
2709 | las.CFrame=CFrame.new((prt25.Position+durp.Parent.Torso.Position)/2,durp.Parent.Torso.Position) *CFrame.Angles(math.rad(90),0,0) | |
2710 | local msh=Instance.new("SpecialMesh",las) | |
2711 | mag = (prt25.Position-durp.Parent.Torso.Position).magnitude | |
2712 | msh.Scale=Vector3.new(1,mag,1) | |
2713 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2714 | for i = 0,1,0.1 do | |
2715 | wait() | |
2716 | Part.Transparency = Part.Transparency + 0.1 | |
2717 | Mesh.Scale = Mesh.Scale + Vector3.new(-0.05,0.7,-0.05) | |
2718 | end | |
2719 | Part.Parent = nil | |
2720 | end),las,msh) | |
2721 | local halo = Instance.new("Part") | |
2722 | halo.Parent = durp.Parent | |
2723 | halo.CanCollide = false | |
2724 | halo.BrickColor = BrickColor.new("White") | |
2725 | halo.Position = Torso.Position | |
2726 | halo.Transparency = 1 | |
2727 | halo.Size = Vector3.new(1,1,1) | |
2728 | local haloMesh = Instance.new("SpecialMesh") | |
2729 | haloMesh.Parent = halo | |
2730 | haloMesh.MeshType = "Sphere" | |
2731 | haloMesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2732 | haloMesh.Scale = Vector3.new(0,1,0) | |
2733 | local haloWeld = Instance.new("Weld") | |
2734 | haloWeld.Parent = halo | |
2735 | haloWeld.Part0 = halo | |
2736 | haloWeld.Part1 = durp.Parent:findFirstChild("Head") | |
2737 | haloWeld.C0 = CFrame.new(0,0,-1.7) * CFrame.fromEulerAnglesXYZ(1.57,0,0) | |
2738 | coroutine.resume(coroutine.create(function() | |
2739 | for i = 0,1,0.1 do | |
2740 | wait() | |
2741 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2742 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2743 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2744 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2745 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2746 | end | |
2747 | end)) | |
2748 | attack = false | |
2749 | for i = 0,1,0.1 do | |
2750 | wait() | |
2751 | halo.Transparency = halo.Transparency - 0.1 | |
2752 | haloMesh.Scale = haloMesh.Scale + Vector3.new(0.1,0,0.1) | |
2753 | end | |
2754 | while durp.Parent.Humanoid.Health >= 100 do | |
2755 | wait() | |
2756 | end | |
2757 | durp.Parent.Humanoid.MaxHealth = 100 | |
2758 | wait() | |
2759 | if halo.Parent ~= nil then | |
2760 | for i = 0,1,0.1 do | |
2761 | wait() | |
2762 | halo.Transparency = halo.Transparency + 0.1 | |
2763 | end | |
2764 | halo.Parent = nil | |
2765 | end | |
2766 | end | |
2767 | end | |
2768 | ||
2769 | function HealOther(mouse) | |
2770 | if mana >= 20 and mouse.Target.Parent:findFirstChild("Humanoid")~=nil then | |
2771 | attack = true | |
2772 | durp = mouse.Target | |
2773 | for i = 0,1,0.1 do | |
2774 | wait() | |
2775 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2776 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2777 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2778 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2779 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2780 | end | |
2781 | mana = mana - 20 | |
2782 | purify(1) | |
2783 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2784 | EVENMOARMAGIX(durp.Parent.Torso,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2785 | durp.Parent.Humanoid.Health = durp.Parent.Humanoid.Health + 20 | |
2786 | coroutine.resume(coroutine.create(function() | |
2787 | for i = 0,1,0.1 do | |
2788 | wait() | |
2789 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2790 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2791 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2792 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2793 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2794 | end | |
2795 | end)) | |
2796 | attack = false | |
2797 | end | |
2798 | end | |
2799 | ||
2800 | function BuffWalk() | |
2801 | if WalkBuff == false and mana >= 50 then | |
2802 | attack = true | |
2803 | WalkBuff = true | |
2804 | for i = 0,1,0.1 do | |
2805 | wait() | |
2806 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2807 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2808 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2809 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2810 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2811 | end | |
2812 | mana = mana - 50 | |
2813 | lasersound(1) | |
2814 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2815 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 5 | |
2816 | coroutine.resume(coroutine.create(function() | |
2817 | for i = 0,1,0.1 do | |
2818 | wait() | |
2819 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2820 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2821 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2822 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2823 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2824 | end | |
2825 | end)) | |
2826 | attack = false | |
2827 | for i = 0,120 do | |
2828 | wait(0.1) | |
2829 | if LeftLeg~=nil then | |
2830 | MMMAGIC(LeftLeg,2,2,2,0,-0.8,0,BrickColor.new("White")) | |
2831 | end | |
2832 | if RightLeg~=nil then | |
2833 | MMMAGIC(RightLeg,2,2,2,0,-0.8,0,BrickColor.new("White")) | |
2834 | end | |
2835 | end | |
2836 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed - 5 | |
2837 | WalkBuff = false | |
2838 | end | |
2839 | end | |
2840 | ||
2841 | function BuffWalkOther(mouse) | |
2842 | if mana >= 50 and mouse.Target.Parent:findFirstChild("Humanoid")~=nil then | |
2843 | attack = true | |
2844 | durp = mouse.Target | |
2845 | for i = 0,1,0.1 do | |
2846 | wait() | |
2847 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2848 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2849 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2850 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2851 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2852 | end | |
2853 | mana = mana - 50 | |
2854 | lasersound(1) | |
2855 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("White")) | |
2856 | durp.Parent.Humanoid.WalkSpeed = durp.Parent.Humanoid.WalkSpeed + 5 | |
2857 | local las=Instance.new("Part",workspace) | |
2858 | las.Anchored=true | |
2859 | las.Locked=true | |
2860 | las.CanCollide=false | |
2861 | las.TopSurface=0 | |
2862 | las.BottomSurface=0 | |
2863 | las.FormFactor = "Custom" | |
2864 | las.BrickColor=BrickColor.new("White") | |
2865 | las.Size=Vector3.new(1,1,1) | |
2866 | las.CFrame=CFrame.new((prt25.Position+durp.Parent.Torso.Position)/2,durp.Parent.Torso.Position) *CFrame.Angles(math.rad(90),0,0) | |
2867 | local msh=Instance.new("SpecialMesh",las) | |
2868 | mag = (prt25.Position-durp.Parent.Torso.Position).magnitude | |
2869 | msh.Scale=Vector3.new(1,mag,1) | |
2870 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2871 | for i = 0,1,0.1 do | |
2872 | wait() | |
2873 | Part.Transparency = Part.Transparency + 0.1 | |
2874 | Mesh.Scale = Mesh.Scale + Vector3.new(-0.05,0.7,-0.05) | |
2875 | end | |
2876 | Part.Parent = nil | |
2877 | end),las,msh) | |
2878 | coroutine.resume(coroutine.create(function() | |
2879 | for i = 0,1,0.1 do | |
2880 | wait() | |
2881 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2882 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2883 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2884 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2885 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2886 | end | |
2887 | end)) | |
2888 | attack = false | |
2889 | coroutine.resume(coroutine.create(function(Him) | |
2890 | for i = 0,120 do | |
2891 | wait(0.1) | |
2892 | if Him.Parent:findFirstChild("Left Leg")~=nil then | |
2893 | MMMAGIC(Him.Parent["Left Leg"],2,2,2,0,-0.8,0,BrickColor.new("White")) | |
2894 | end | |
2895 | if Him.Parent:findFirstChild("Right Leg")~=nil then | |
2896 | MMMAGIC(Him.Parent["Right Leg"],2,2,2,0,-0.8,0,BrickColor.new("White")) | |
2897 | end | |
2898 | end | |
2899 | Him.Parent.Humanoid.WalkSpeed = Him.Parent.Humanoid.WalkSpeed - 5 | |
2900 | end),durp) | |
2901 | end | |
2902 | end | |
2903 | ||
2904 | function BuffRage(mouse) | |
2905 | if RageBuff == false and mana >= 100 then | |
2906 | attack = true | |
2907 | RageBuff = true | |
2908 | for i = 0,1,0.1 do | |
2909 | wait() | |
2910 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2911 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2912 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2913 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2914 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2915 | end | |
2916 | mana = mana - 100 | |
2917 | lasersound(1) | |
2918 | EVENMOARMAGIX(prt25,5,3,5,0,0,0,0,0,0,BrickColor.new("Bright red")) | |
2919 | coroutine.resume(coroutine.create(function() | |
2920 | for i = 0,1,0.1 do | |
2921 | wait() | |
2922 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
2923 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
2924 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2925 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
2926 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2927 | end | |
2928 | end)) | |
2929 | attack = false | |
2930 | for i = 1,10 do | |
2931 | wait(1) | |
2932 | local msh1 = Instance.new("SpecialMesh") | |
2933 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
2934 | msh1.MeshType = "Sphere" | |
2935 | S=Instance.new("Part") | |
2936 | S.Name="Effect" | |
2937 | S.formFactor=0 | |
2938 | S.Size=Vector3.new(1,1,1) | |
2939 | S.BrickColor=BrickColor.new("Bright red") | |
2940 | S.Reflectance = 0 | |
2941 | S.TopSurface=0 | |
2942 | S.BottomSurface=0 | |
2943 | S.Transparency=0 | |
2944 | S.Anchored=false | |
2945 | S.CanCollide=false | |
2946 | S.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2947 | S.Parent=Character | |
2948 | msh1.Parent = S | |
2949 | W=Instance.new("Weld") | |
2950 | W.Parent=S | |
2951 | W.Part0=S | |
2952 | W.Part1=prt25 | |
2953 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2954 | ||
2955 | end | |
2956 | RageBuff = false | |
2957 | end | |
2958 | end | |
2959 | ||
2960 | function HealOther(mouse) | |
2961 | if mana >= 0 then | |
2962 | attack = true | |
2963 | Healing = true | |
2964 | durp = mouse.Target | |
2965 | for i = 0,1,0.1 do | |
2966 | wait() | |
2967 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1*i,1.57) * CFrame.new(0,1,0) | |
2968 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2969 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2970 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
2971 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2972 | end | |
2973 | if mouse.Hit.p ~= nil then | |
2974 | purify(1) | |
2975 | local las=Instance.new("Part") | |
2976 | las.Parent = modelzorz | |
2977 | las.Anchored=true | |
2978 | las.Locked=true | |
2979 | las.CanCollide=false | |
2980 | las.TopSurface=0 | |
2981 | las.BottomSurface=0 | |
2982 | las.FormFactor = "Custom" | |
2983 | las.Transparency = 1 | |
2984 | las.BrickColor=BrickColor.new("White") | |
2985 | las.Size=Vector3.new(1,1,1) | |
2986 | las.CFrame=CFrame.new(mouse.Hit.p) | |
2987 | local msh=Instance.new("SpecialMesh",las) | |
2988 | msh.Scale=Vector3.new(10,5000,10) | |
2989 | local las2=Instance.new("Part",modelzorz) | |
2990 | las2.Anchored=true | |
2991 | las2.Locked=true | |
2992 | las2.CanCollide=false | |
2993 | las2.TopSurface=0 | |
2994 | las2.BottomSurface=0 | |
2995 | las2.FormFactor = "Custom" | |
2996 | las2.BrickColor=BrickColor.new("White") | |
2997 | las2.Size=Vector3.new(1,1,1) | |
2998 | las2.CFrame=CFrame.new((prt25.Position+las.Position)/2,las.Position) *CFrame.Angles(math.rad(90),0,0) | |
2999 | las2.Transparency = 1 | |
3000 | local msh2=Instance.new("SpecialMesh",las2) | |
3001 | mag = (prt25.Position-las.Position).magnitude | |
3002 | msh2.Scale=Vector3.new(1,mag,1) | |
3003 | for i = 0,1,0.1 do | |
3004 | wait() | |
3005 | las.Transparency = las.Transparency - 0.05 | |
3006 | las2.Transparency = las2.Transparency - 0.05 | |
3007 | end | |
3008 | while mouse.Target ~= nil and mouse.Hit.p ~= nil and las.Parent ~= nil and las2.Parent ~= nil and Healing == true and mana >= 0 do | |
3009 | wait() | |
3010 | if heromode == false then | |
3011 | mana = mana - 1 | |
3012 | end | |
3013 | durp = mouse.Target | |
3014 | if durp.Parent:findFirstChild("Humanoid")~=nil then | |
3015 | durp.Parent.Humanoid.Health = durp.Parent.Humanoid.Health + 1 | |
3016 | end | |
3017 | las.CFrame=CFrame.new(mouse.Hit.p) | |
3018 | las2.CFrame=CFrame.new((prt25.Position+las.Position)/2,las.Position) *CFrame.Angles(math.rad(90),0,0) | |
3019 | mag = (prt25.Position-las.Position).magnitude | |
3020 | msh2.Scale=Vector3.new(1,mag,1) | |
3021 | end | |
3022 | for i = 0,1,0.1 do | |
3023 | wait() | |
3024 | las.Transparency = las.Transparency + 0.05 | |
3025 | las2.Transparency = las2.Transparency + 0.05 | |
3026 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,1-1*i,1.57) * CFrame.new(0,1,0) | |
3027 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5-1.5*i,0,0) | |
3028 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3029 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
3030 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3031 | end | |
3032 | las.Parent = nil | |
3033 | las2.Parent = nil | |
3034 | attack = false | |
3035 | end | |
3036 | end | |
3037 | end | |
3038 | ||
3039 | --[[function ChariotThrow() | |
3040 | attack = true | |
3041 | for i = 0,1,0.1 do | |
3042 | wait() | |
3043 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
3044 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-3*i,0,0) | |
3045 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3046 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i,0,0) | |
3047 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3048 | end | |
3049 | for i = 0,1,0.1 do | |
3050 | wait() | |
3051 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,50*i*i) | |
3052 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
3053 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-3+4*i*i,0,0) | |
3054 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3055 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2+4*i*i,0,0) | |
3056 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3057 | end | |
3058 | wait(0.5) | |
3059 | charw1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0) | |
3060 | wait(0.5) | |
3061 | attack = false | |
3062 | end ]] | |
3063 | ||
3064 | spread = 0 | |
3065 | range = 1000 | |
3066 | rangepower = 10 | |
3067 | function shoottrail(mouse) | |
3068 | local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100 | |
3069 | local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector) | |
3070 | local hit,pos = rayCast(prt1.Position,dir.lookVector,10,Character) | |
3071 | local rangepos = range | |
3072 | local function drawtrail(From,To) | |
3073 | local effectsmsh = Instance.new("CylinderMesh") | |
3074 | effectsmsh.Scale = Vector3.new(1,1,1) | |
3075 | effectsmsh.Name = "Mesh" | |
3076 | local effectsg = Instance.new("Part") | |
3077 | effectsg.formFactor = 3 | |
3078 | effectsg.CanCollide = false | |
3079 | effectsg.Name = "Eff" | |
3080 | effectsg.Locked = true | |
3081 | effectsg.Anchored = true | |
3082 | effectsg.Size = Vector3.new(2,0.5,2) | |
3083 | effectsg.Parent = workspace | |
3084 | effectsmsh.Parent = effectsg | |
3085 | if heromode == true then | |
3086 | effectsg.BrickColor = BrickColor.new("New Yeller") | |
3087 | else | |
3088 | effectsg.BrickColor = BrickColor.new("Black") | |
3089 | end | |
3090 | effectsg.Reflectance = 0.25 | |
3091 | local LP = From | |
3092 | local point1 = To | |
3093 | local mg = (LP - point1).magnitude | |
3094 | effectsmsh.Scale = Vector3.new(1,mg*5,1) | |
3095 | effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0) | |
3096 | --prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0) | |
3097 | prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(-1.57,0,1.57) | |
3098 | wld1.Part0 = prt25 | |
3099 | wld1.Part1 = effectsg | |
3100 | --wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
3101 | wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
3102 | wld1.C1 = CFrame.new(0,0,0) | |
3103 | coroutine.resume(coroutine.create(function() | |
3104 | for i = 0 , 1 , 0.1 do | |
3105 | wait() | |
3106 | prt1.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0) | |
3107 | effectsg.Transparency = 1*i | |
3108 | effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i) | |
3109 | end | |
3110 | effectsg.Parent = nil | |
3111 | end)) | |
3112 | end | |
3113 | local newpos = prt1.Position | |
3114 | local inc = rangepower | |
3115 | repeat | |
3116 | wait() | |
3117 | rangepos = rangepos - 10 | |
3118 | dir = dir * CFrame.Angles(math.rad(-1),0,0) | |
3119 | hit,pos = rayCast(newpos,dir.lookVector,inc,Character) | |
3120 | drawtrail(newpos,pos) | |
3121 | newpos = newpos + (dir.lookVector * inc) | |
3122 | if inc >= 20 then | |
3123 | inc = inc - 10 | |
3124 | end | |
3125 | if hit ~= nil then | |
3126 | rangepos = 0 | |
3127 | end | |
3128 | until rangepos <= 0 | |
3129 | if hit ~= nil then | |
3130 | local effectsmsh = Instance.new("SpecialMesh") | |
3131 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
3132 | effectsmsh.TextureId = "http://www.roblox.com/asset/?id=15886781" | |
3133 | effectsmsh.Scale = Vector3.new(1,1,2.5) | |
3134 | local effectsg = Instance.new("Part") | |
3135 | effectsg.formFactor = 3 | |
3136 | effectsg.CanCollide = false | |
3137 | effectsg.Name = "Arrow" | |
3138 | effectsg.Locked = true | |
3139 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
3140 | effectsg.Parent = nil | |
3141 | effectsmsh.Parent = effectsg | |
3142 | effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2 | |
3143 | prt1.CFrame = effectsg.CFrame | |
3144 | wld1.Part0 = prt1 | |
3145 | wld1.Part1 = hit | |
3146 | --local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
3147 | --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
3148 | local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5) | |
3149 | prt1.CFrame = CFrame.new(HitPos) * CFrame.fromEulerAnglesXYZ(0,1.57,0) | |
3150 | local CJ = CFrame.new(HitPos) | |
3151 | local C0 = prt1.CFrame:inverse() * CJ | |
3152 | local C1 = hit.CFrame:inverse() * CJ | |
3153 | wld1.C0 = C0 | |
3154 | wld1.C1 = C1 | |
3155 | wld1.Parent = prt1 | |
3156 | Damg = 40 | |
3157 | hs(0.8) | |
3158 | if RAEG == true then | |
3159 | magicsound(1) | |
3160 | Damg=Damg+10 | |
3161 | MMMAGIC(prt25,10,10,10,0,0,0,BrickColor.new("Bright red")) | |
3162 | MMMAGIC(prt25,8,8,8,0,0,0,BrickColor.new("Bright yellow")) | |
3163 | local c = game.Workspace:GetChildren(); | |
3164 | for i = 1, #c do | |
3165 | local hum = c[i]:findFirstChild("Humanoid") | |
3166 | if hum ~= nil and hum.Health ~= 0 then | |
3167 | local head = c[i]:findFirstChild("Head"); | |
3168 | if head ~= nil then | |
3169 | local targ = head.Position - prt25.Position; | |
3170 | local mag = targ.magnitude; | |
3171 | if mag <= 15 and c[i].Name ~= Player.Name then | |
3172 | wait() | |
3173 | DBHit(head,prt25,10) | |
3174 | end | |
3175 | end | |
3176 | end | |
3177 | end | |
3178 | end | |
3179 | if Imbued == true or heromode == true then | |
3180 | magicsound(0.7) | |
3181 | local c = game.Workspace:GetChildren(); | |
3182 | for i = 1, #c do | |
3183 | local hum = c[i]:findFirstChild("Humanoid") | |
3184 | if hum ~= nil and hum.Health ~= 0 then | |
3185 | local head = c[i]:findFirstChild("Head"); | |
3186 | if head ~= nil then | |
3187 | local targ = head.Position - prt25.Position; | |
3188 | local mag = targ.magnitude; | |
3189 | if mag <= 15 and c[i].Name ~= Player.Name then | |
3190 | wait() | |
3191 | if heromode == true and Bouncing == true then | |
3192 | DBHit(head,prt25,5) | |
3193 | else | |
3194 | DBHit(head,prt25,30) | |
3195 | end | |
3196 | end | |
3197 | end | |
3198 | end | |
3199 | end | |
3200 | local msh1 = Instance.new("SpecialMesh") --Messy Script incoming >_> | |
3201 | msh1.Scale = Vector3.new(0.01,0.01,0.01) | |
3202 | msh1.MeshType = "Sphere" | |
3203 | S=Instance.new("Part") | |
3204 | S.Name="Effect" | |
3205 | S.formFactor=0 | |
3206 | S.Size=Vector3.new(3,3,3) | |
3207 | if heromode == true then | |
3208 | S.BrickColor=BrickColor.new("New Yeller") | |
3209 | else | |
3210 | S.BrickColor=BrickColor.new("White") | |
3211 | end | |
3212 | S.Reflectance = 0 | |
3213 | S.TopSurface=0 | |
3214 | S.BottomSurface=0 | |
3215 | S.Transparency=0 | |
3216 | S.Anchored=true | |
3217 | S.CanCollide=false | |
3218 | S.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3219 | if heromode == true and Bouncing == true then | |
3220 | S.Parent=Character | |
3221 | else | |
3222 | S.Parent=workspace | |
3223 | end | |
3224 | msh1.Parent = S | |
3225 | r=Instance.new("Part") | |
3226 | r.Anchored=true | |
3227 | r.Name="Ring" | |
3228 | r.CanCollide=false | |
3229 | r.TopSurface=0 | |
3230 | r.BottomSurface=0 | |
3231 | r.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(1,0,0) | |
3232 | r.Parent=workspace | |
3233 | local ring = Instance.new("SpecialMesh") | |
3234 | ring.Parent = r | |
3235 | ring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3236 | ring.Name = "RingMesh" | |
3237 | r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1) | |
3238 | if heromode == true then | |
3239 | r.BrickColor=BrickColor.new("New Yeller") | |
3240 | else | |
3241 | r.BrickColor=BrickColor.new("White") | |
3242 | end | |
3243 | if heromode == true and Bouncing == true then | |
3244 | coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3245 | else | |
3246 | coroutine.resume(coroutine.create(function(par) for i=1, 14 do par.Transparency=i/14 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3247 | end | |
3248 | r=Instance.new("Part") | |
3249 | r.Anchored=true | |
3250 | r.Name="Ring" | |
3251 | r.CanCollide=false | |
3252 | r.TopSurface=0 | |
3253 | r.BottomSurface=0 | |
3254 | r.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(-1,0,0) | |
3255 | if heromode == true and Bouncing == true then | |
3256 | r.Parent=Character | |
3257 | else | |
3258 | r.Parent=workspace | |
3259 | end | |
3260 | local ring = Instance.new("SpecialMesh") | |
3261 | ring.Parent = r | |
3262 | ring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3263 | ring.Name = "RingMesh" | |
3264 | r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1) | |
3265 | if heromode == true then | |
3266 | r.BrickColor=BrickColor.new("New Yeller") | |
3267 | else | |
3268 | r.BrickColor=BrickColor.new("White") | |
3269 | end | |
3270 | if heromode == true and Bouncing == true then | |
3271 | coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3272 | else | |
3273 | coroutine.resume(coroutine.create(function(par) for i=1, 14 do par.Transparency=i/14 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3274 | end | |
3275 | if heromode == true and Bouncing == true then | |
3276 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.4,0.4,0.4) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3277 | else | |
3278 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 19 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.4,0.4,0.4) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.05 wait() end Part.Parent=nil end),S,S.CFrame) | |
3279 | end | |
3280 | ||
3281 | local msh1 = Instance.new("SpecialMesh") | |
3282 | msh1.Scale = Vector3.new(0.01,0.01,0.01) | |
3283 | msh1.MeshType = "Sphere" | |
3284 | S=Instance.new("Part") | |
3285 | S.Name="Effect" | |
3286 | S.formFactor=0 | |
3287 | S.Size=Vector3.new(3,3,3) | |
3288 | if heromode == true then | |
3289 | S.BrickColor=BrickColor.new("New Yeller") | |
3290 | else | |
3291 | S.BrickColor=BrickColor.new("White") | |
3292 | end | |
3293 | S.Reflectance = 0 | |
3294 | S.TopSurface=0 | |
3295 | S.BottomSurface=0 | |
3296 | S.Transparency=0 | |
3297 | S.Anchored=true | |
3298 | S.CanCollide=false | |
3299 | S.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3300 | S.Parent=Character | |
3301 | msh1.Parent = S | |
3302 | if heromode == true and Bouncing == true then | |
3303 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3304 | else | |
3305 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 19 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.05 wait() end Part.Parent=nil end),S,S.CFrame) | |
3306 | end | |
3307 | ||
3308 | local msh1 = Instance.new("SpecialMesh") | |
3309 | msh1.Scale = Vector3.new(1,0.5,1) | |
3310 | msh1.MeshType = "Sphere" | |
3311 | S=Instance.new("Part") | |
3312 | S.Name="Effect" | |
3313 | S.formFactor=0 | |
3314 | S.Size=Vector3.new(8,8,8) | |
3315 | if heromode == true then | |
3316 | S.BrickColor=BrickColor.new("New Yeller") | |
3317 | else | |
3318 | S.BrickColor=BrickColor.new("White") | |
3319 | end | |
3320 | S.Reflectance = 0 | |
3321 | S.TopSurface=0 | |
3322 | S.BottomSurface=0 | |
3323 | S.Transparency=0 | |
3324 | S.Anchored=true | |
3325 | S.CanCollide=false | |
3326 | S.CFrame=prt25.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0) | |
3327 | if heromode == true and Bouncing == true then | |
3328 | S.Parent=Character | |
3329 | else | |
3330 | S.Parent=workspace | |
3331 | end | |
3332 | msh1.Parent = S | |
3333 | if heromode == true and Bouncing == true then | |
3334 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3335 | else | |
3336 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 18 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.05 wait() end Part.Parent=nil end),S,S.CFrame) | |
3337 | end | |
3338 | Imbued = false | |
3339 | end | |
3340 | coroutine.resume(coroutine.create(function() | |
3341 | wait(15) | |
3342 | effectsg.Parent = nil | |
3343 | end)) | |
3344 | if hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
3345 | hum = hit.Parent.Humanoid | |
3346 | Damagefunc1(hit,Damg,15) | |
3347 | elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then | |
3348 | hum = hit.Parent.Parent.Humanoid | |
3349 | Damagefunc1(hit,Damg,15) | |
3350 | end | |
3351 | end | |
3352 | end | |
3353 | ||
3354 | spread2 = 500 | |
3355 | range2 = 1000 | |
3356 | rangepower = 10 | |
3357 | function shoottrail2(mouse) | |
3358 | local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100 | |
3359 | local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector) | |
3360 | local hit2,pos = rayCast(prt1.Position,dir.lookVector,10,Character) | |
3361 | local rangepos = range2 | |
3362 | local function drawtrail(From,To) | |
3363 | local effectsmsh = Instance.new("CylinderMesh") | |
3364 | effectsmsh.Scale = Vector3.new(1,1,1) | |
3365 | effectsmsh.Name = "Mesh" | |
3366 | local effectsg = Instance.new("Part") | |
3367 | effectsg.formFactor = 3 | |
3368 | effectsg.CanCollide = false | |
3369 | effectsg.Name = "Eff" | |
3370 | effectsg.Locked = true | |
3371 | effectsg.Anchored = true | |
3372 | effectsg.Size = Vector3.new(2,0.2,2) | |
3373 | effectsg.Parent = Character | |
3374 | effectsmsh.Parent = effectsg | |
3375 | if heromode == true then | |
3376 | effectsg.BrickColor = BrickColor.new("New Yeller") | |
3377 | else | |
3378 | if RAEG == true then | |
3379 | effectsg.BrickColor = BrickColor.new("Bright red") | |
3380 | else | |
3381 | effectsg.BrickColor = BrickColor.new("white") | |
3382 | end | |
3383 | end | |
3384 | effectsg.Reflectance = 0.25 | |
3385 | local LP = From | |
3386 | local point1 = To | |
3387 | local mg = (LP - point1).magnitude | |
3388 | effectsmsh.Scale = Vector3.new(1,mg*5,1) | |
3389 | effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0) | |
3390 | coroutine.resume(coroutine.create(function() | |
3391 | for i = 0 , 1 , 0.2 do | |
3392 | wait() | |
3393 | effectsg.Transparency = 1*i | |
3394 | effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i) | |
3395 | end | |
3396 | effectsg.Parent = nil | |
3397 | end)) | |
3398 | end | |
3399 | local newpos = prt1.Position | |
3400 | local inc = rangepower | |
3401 | repeat | |
3402 | wait() | |
3403 | rangepos = rangepos - 10 | |
3404 | dir = dir * CFrame.Angles(math.rad(-1),0,0) | |
3405 | hit2,pos = rayCast(newpos,dir.lookVector,inc,Character) | |
3406 | drawtrail(newpos,pos) | |
3407 | newpos = newpos + (dir.lookVector * inc) | |
3408 | if inc >= 20 then | |
3409 | inc = inc - 10 | |
3410 | end | |
3411 | if hit2 ~= nil then | |
3412 | rangepos = 0 | |
3413 | end | |
3414 | until rangepos <= 0 | |
3415 | if hit2 ~= nil then | |
3416 | local effectsmsh = Instance.new("SpecialMesh") | |
3417 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
3418 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
3419 | effectsmsh.Scale = Vector3.new(3,3,3) | |
3420 | local effectsg = Instance.new("Part") | |
3421 | effectsg.formFactor = 3 | |
3422 | effectsg.CanCollide = false | |
3423 | effectsg.Name = "Arrow" | |
3424 | effectsg.Locked = true | |
3425 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
3426 | effectsg.Parent = modelzorz | |
3427 | if heromode == true then | |
3428 | effectsg.BrickColor = BrickColor.new("New Yeller") | |
3429 | else | |
3430 | if RAEG == true then | |
3431 | effectsg.BrickColor = BrickColor.new("Bright red") | |
3432 | else | |
3433 | effectsg.BrickColor = BrickColor.new("white") | |
3434 | end | |
3435 | end | |
3436 | effectsmsh.Parent = effectsg | |
3437 | effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2 | |
3438 | local efwel = Instance.new("Weld") | |
3439 | efwel.Parent = effectsg | |
3440 | efwel.Part0 = effectsg | |
3441 | efwel.Part1 = hit2 | |
3442 | local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
3443 | --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
3444 | --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5) | |
3445 | local CJ = CFrame.new(HitPos) | |
3446 | local C0 = effectsg.CFrame:inverse() * CJ | |
3447 | local C1 = hit2.CFrame:inverse() * CJ | |
3448 | efwel.C0 = C0 | |
3449 | efwel.C1 = C1 | |
3450 | efwel.Parent = effectsg | |
3451 | Damg = 20 | |
3452 | if RAEG == true then | |
3453 | Damg=Damg+5 | |
3454 | end | |
3455 | hs(0.8) | |
3456 | if heromode == true then | |
3457 | magicsound(0.7) | |
3458 | local c = game.Workspace:GetChildren(); | |
3459 | for i = 1, #c do | |
3460 | local hum = c[i]:findFirstChild("Humanoid") | |
3461 | if hum ~= nil and hum.Health ~= 0 then | |
3462 | local head = c[i]:findFirstChild("Head"); | |
3463 | if head ~= nil then | |
3464 | local targ = head.Position - effectsg.Position; | |
3465 | local mag = targ.magnitude; | |
3466 | if mag <= 15 and c[i].Name ~= Player.Name then | |
3467 | wait() | |
3468 | DBHit(head,effectsg,5) | |
3469 | end | |
3470 | end | |
3471 | end | |
3472 | end | |
3473 | local msh1 = Instance.new("SpecialMesh") --Messy Script incoming >_> | |
3474 | msh1.Scale = Vector3.new(0.01,0.01,0.01) | |
3475 | msh1.MeshType = "Sphere" | |
3476 | S=Instance.new("Part") | |
3477 | S.Name="Effect" | |
3478 | S.formFactor=0 | |
3479 | S.Size=Vector3.new(3,3,3) | |
3480 | S.BrickColor=BrickColor.new("New Yeller") | |
3481 | S.Reflectance = 0 | |
3482 | S.TopSurface=0 | |
3483 | S.BottomSurface=0 | |
3484 | S.Transparency=0 | |
3485 | S.Anchored=true | |
3486 | S.CanCollide=false | |
3487 | S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3488 | S.Parent=workspace | |
3489 | msh1.Parent = S | |
3490 | r=Instance.new("Part") | |
3491 | r.Anchored=true | |
3492 | r.Name="Ring" | |
3493 | r.CanCollide=false | |
3494 | r.TopSurface=0 | |
3495 | r.BottomSurface=0 | |
3496 | r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(1,0,0) | |
3497 | r.Parent=workspace | |
3498 | local ring = Instance.new("SpecialMesh") | |
3499 | ring.Parent = r | |
3500 | ring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3501 | ring.Name = "RingMesh" | |
3502 | r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1) | |
3503 | r.BrickColor=BrickColor.new("New Yeller") | |
3504 | coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3505 | r=Instance.new("Part") | |
3506 | r.Anchored=true | |
3507 | r.Name="Ring" | |
3508 | r.CanCollide=false | |
3509 | r.TopSurface=0 | |
3510 | r.BottomSurface=0 | |
3511 | r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(-1,0,0) | |
3512 | r.Parent=workspace | |
3513 | local ring = Instance.new("SpecialMesh") | |
3514 | ring.Parent = r | |
3515 | ring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3516 | ring.Name = "RingMesh" | |
3517 | r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1) | |
3518 | r.BrickColor=BrickColor.new("New Yeller") | |
3519 | coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r) | |
3520 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.4,0.4,0.4) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3521 | ||
3522 | local msh1 = Instance.new("SpecialMesh") | |
3523 | msh1.Scale = Vector3.new(0.01,0.01,0.01) | |
3524 | msh1.MeshType = "Sphere" | |
3525 | S=Instance.new("Part") | |
3526 | S.Name="Effect" | |
3527 | S.formFactor=0 | |
3528 | S.Size=Vector3.new(3,3,3) | |
3529 | S.BrickColor=BrickColor.new("New Yeller") | |
3530 | S.Reflectance = 0 | |
3531 | S.TopSurface=0 | |
3532 | S.BottomSurface=0 | |
3533 | S.Transparency=0 | |
3534 | S.Anchored=true | |
3535 | S.CanCollide=false | |
3536 | S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3537 | S.Parent=Character | |
3538 | msh1.Parent = S | |
3539 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3540 | ||
3541 | local msh1 = Instance.new("SpecialMesh") | |
3542 | msh1.Scale = Vector3.new(1,0.5,1) | |
3543 | msh1.MeshType = "Sphere" | |
3544 | S=Instance.new("Part") | |
3545 | S.Name="Effect" | |
3546 | S.formFactor=0 | |
3547 | S.Size=Vector3.new(8,8,8) | |
3548 | S.BrickColor=BrickColor.new("New Yeller") | |
3549 | S.Reflectance = 0 | |
3550 | S.TopSurface=0 | |
3551 | S.BottomSurface=0 | |
3552 | S.Transparency=0 | |
3553 | S.Anchored=true | |
3554 | S.CanCollide=false | |
3555 | S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0) | |
3556 | S.Parent=workspace | |
3557 | msh1.Parent = S | |
3558 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3559 | end | |
3560 | coroutine.resume(coroutine.create(function() | |
3561 | wait(3) | |
3562 | effectsg.Parent = nil | |
3563 | end)) | |
3564 | if hit2.Parent:FindFirstChild("Humanoid") ~= nil then | |
3565 | hum = hit2.Parent.Humanoid | |
3566 | attackdebounce = false | |
3567 | Damagefunc1(hit2,Damg,15) | |
3568 | elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then | |
3569 | hum = hit2.Parent.Parent.Humanoid | |
3570 | attackdebounce = false | |
3571 | Damagefunc1(hit2,Damg,15) | |
3572 | end | |
3573 | end | |
3574 | end | |
3575 | ||
3576 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
3577 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
3578 | end | |
3579 | ||
3580 | function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
3581 | local msh1 = Instance.new("BlockMesh") | |
3582 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
3583 | S=Instance.new("Part") | |
3584 | S.Name="Effect" | |
3585 | S.formFactor=0 | |
3586 | S.Size=Vector3.new(x1,y1,z1) | |
3587 | S.BrickColor=color | |
3588 | S.Reflectance = 0 | |
3589 | S.TopSurface=0 | |
3590 | S.BottomSurface=0 | |
3591 | S.Transparency=0 | |
3592 | S.Anchored=true | |
3593 | S.CanCollide=false | |
3594 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3595 | S.Parent=Character | |
3596 | msh1.Parent = S | |
3597 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3598 | end | |
3599 | ||
3600 | function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
3601 | local msh1 = Instance.new("BlockMesh") | |
3602 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3603 | S=Instance.new("Part") | |
3604 | S.Name="Effect" | |
3605 | S.formFactor=0 | |
3606 | S.Size=Vector3.new(1,1,1) | |
3607 | S.BrickColor=color | |
3608 | S.Reflectance = 0 | |
3609 | S.TopSurface=0 | |
3610 | S.BottomSurface=0 | |
3611 | S.Transparency=0 | |
3612 | S.Anchored=true | |
3613 | S.CanCollide=false | |
3614 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3615 | S.Parent=Character | |
3616 | msh1.Parent = S | |
3617 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3618 | end | |
3619 | ||
3620 | function MOREMAGIX(part,cframe,x,y,z,color) | |
3621 | p2=Instance.new("Part") | |
3622 | p2.Name="Blast" | |
3623 | p2.TopSurface=0 | |
3624 | p2.BottomSurface=0 | |
3625 | p2.CanCollide=false | |
3626 | p2.Anchored=true | |
3627 | p2.BrickColor=color | |
3628 | p2.Size=Vector3.new(x,y,z) | |
3629 | p2.formFactor="Symmetric" | |
3630 | p2.CFrame=part.CFrame*CFrame.new(0,cframe,0) | |
3631 | p2.Parent=workspace | |
3632 | m=Instance.new("BlockMesh") | |
3633 | m.Parent=p2 | |
3634 | m.Name="BlastMesh" | |
3635 | coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) | |
3636 | end | |
3637 | ||
3638 | function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3639 | local msh1 = Instance.new("SpecialMesh") | |
3640 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
3641 | msh1.MeshType = "Sphere" | |
3642 | S=Instance.new("Part") | |
3643 | S.Name="Effect" | |
3644 | S.formFactor=0 | |
3645 | S.Size=Vector3.new(x1,y1,z1) | |
3646 | S.BrickColor=color | |
3647 | S.Reflectance = 0 | |
3648 | S.TopSurface=0 | |
3649 | S.BottomSurface=0 | |
3650 | S.Transparency=0 | |
3651 | S.Anchored=true | |
3652 | S.CanCollide=false | |
3653 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3654 | S.Parent=Character | |
3655 | msh1.Parent = S | |
3656 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3657 | end | |
3658 | ||
3659 | function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3660 | local msh1 = Instance.new("SpecialMesh") | |
3661 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3662 | msh1.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3663 | S=Instance.new("Part") | |
3664 | S.Name="Effect" | |
3665 | S.formFactor=0 | |
3666 | S.Size=Vector3.new(1,1,1) | |
3667 | S.BrickColor=color | |
3668 | S.Reflectance = 0 | |
3669 | S.TopSurface=0 | |
3670 | S.BottomSurface=0 | |
3671 | S.Transparency=0 | |
3672 | S.Anchored=true | |
3673 | S.CanCollide=false | |
3674 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3675 | S.Parent=Character | |
3676 | msh1.Parent = S | |
3677 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3678 | end | |
3679 | ||
3680 | function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3681 | local msh1 = Instance.new("SpecialMesh") | |
3682 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3683 | msh1.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
3684 | S=Instance.new("Part") | |
3685 | S.Name="Effect" | |
3686 | S.formFactor=0 | |
3687 | S.Size=Vector3.new(1,1,1) | |
3688 | S.BrickColor=color | |
3689 | S.Reflectance = 0 | |
3690 | S.TopSurface=0 | |
3691 | S.BottomSurface=0 | |
3692 | S.Transparency=0 | |
3693 | S.Anchored=true | |
3694 | S.CanCollide=false | |
3695 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3696 | S.Parent=Character | |
3697 | msh1.Parent = S | |
3698 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3699 | end | |
3700 | ||
3701 | function ss(pitch) | |
3702 | ||
3703 | local SlashSound = Instance.new("Sound") | |
3704 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
3705 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
3706 | SlashSound.Parent = workspace | |
3707 | SlashSound.Volume = .7 | |
3708 | SlashSound.Pitch = pitch | |
3709 | SlashSound.PlayOnRemove = true | |
3710 | coroutine.resume(coroutine.create(function() | |
3711 | wait(0) | |
3712 | SlashSound.Parent = nil | |
3713 | end)) | |
3714 | end | |
3715 | function equipsound(pitch) | |
3716 | ||
3717 | local SlashSound = Instance.new("Sound") | |
3718 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
3719 | SlashSound.Parent = workspace | |
3720 | SlashSound.Volume = .5 | |
3721 | SlashSound.Pitch = pitch | |
3722 | SlashSound.PlayOnRemove = true | |
3723 | coroutine.resume(coroutine.create(function() | |
3724 | wait(0) | |
3725 | SlashSound.Parent = nil | |
3726 | end)) | |
3727 | end | |
3728 | function magicsound(pitch) | |
3729 | ||
3730 | local SlashSound = Instance.new("Sound") | |
3731 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
3732 | SlashSound.Parent = workspace | |
3733 | SlashSound.Volume = .5 | |
3734 | SlashSound.Pitch = pitch | |
3735 | SlashSound.PlayOnRemove = true | |
3736 | coroutine.resume(coroutine.create(function() | |
3737 | wait(0) | |
3738 | SlashSound.Parent = nil | |
3739 | end)) | |
3740 | end | |
3741 | function critsound(pitch) | |
3742 | ||
3743 | local SlashSound = Instance.new("Sound") | |
3744 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
3745 | SlashSound.Parent = workspace | |
3746 | SlashSound.Volume = .7 | |
3747 | SlashSound.Pitch = pitch | |
3748 | SlashSound.PlayOnRemove = true | |
3749 | coroutine.resume(coroutine.create(function() | |
3750 | wait(0) | |
3751 | SlashSound.Parent = nil | |
3752 | end)) | |
3753 | end | |
3754 | function spikesound(pitch) | |
3755 | ||
3756 | local SlashSound = Instance.new("Sound") | |
3757 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
3758 | SlashSound.Parent = workspace | |
3759 | SlashSound.Volume = .7 | |
3760 | SlashSound.Pitch = pitch | |
3761 | SlashSound.PlayOnRemove = true | |
3762 | coroutine.resume(coroutine.create(function() | |
3763 | wait(0) | |
3764 | SlashSound.Parent = nil | |
3765 | end)) | |
3766 | end | |
3767 | function lasersound(pitch) | |
3768 | ||
3769 | local SlashSound = Instance.new("Sound") | |
3770 | SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav" | |
3771 | SlashSound.Parent = workspace | |
3772 | SlashSound.Volume = .5 | |
3773 | SlashSound.Pitch = pitch | |
3774 | SlashSound.PlayOnRemove = true | |
3775 | coroutine.resume(coroutine.create(function() | |
3776 | wait(0) | |
3777 | SlashSound.Parent = nil | |
3778 | end)) | |
3779 | end | |
3780 | function hs(pitch) | |
3781 | local SlashSound = Instance.new("Sound") | |
3782 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209590" | |
3783 | SlashSound.Parent = workspace | |
3784 | SlashSound.Volume = .5 | |
3785 | SlashSound.Pitch = pitch | |
3786 | SlashSound.PlayOnRemove = true | |
3787 | coroutine.resume(coroutine.create(function() | |
3788 | wait(0) | |
3789 | SlashSound.Parent = nil | |
3790 | end)) | |
3791 | end | |
3792 | function purify(pitch) | |
3793 | local SlashSound = Instance.new("Sound") | |
3794 | SlashSound.SoundId = "http://roblox.com/asset/?id=2101144" | |
3795 | SlashSound.Parent = workspace | |
3796 | SlashSound.Volume = .5 | |
3797 | SlashSound.Pitch = pitch | |
3798 | SlashSound.PlayOnRemove = true | |
3799 | coroutine.resume(coroutine.create(function() | |
3800 | wait(0) | |
3801 | SlashSound.Parent = nil | |
3802 | end)) | |
3803 | end | |
3804 | ||
3805 | Damagefunc1=function(hit,Damage,Knockback) | |
3806 | if attackdebounce == false then | |
3807 | attackdebounce = true | |
3808 | coroutine.resume(coroutine.create(function() | |
3809 | wait(0.1) | |
3810 | attackdebounce = false | |
3811 | end)) | |
3812 | if hit.Parent==nil then | |
3813 | return | |
3814 | end | |
3815 | CPlayer=Bin | |
3816 | h=hit.Parent:FindFirstChild("Humanoid") | |
3817 | if h==nil then | |
3818 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
3819 | end | |
3820 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
3821 | if mana < 400 then | |
3822 | mana = mana + math.random(20,30) | |
3823 | end | |
3824 | if mana > 400 then | |
3825 | mana = 400 | |
3826 | end | |
3827 | if Bouncing == false then | |
3828 | if HeroBar < 400 then | |
3829 | HeroBar = HeroBar + math.random(5,15) | |
3830 | end | |
3831 | if HeroBar > 400 then | |
3832 | HeroBar = 400 | |
3833 | end | |
3834 | end | |
3835 | if heromode == false then | |
3836 | Damage=Damage | |
3837 | else | |
3838 | Damage=Damage*1.5 | |
3839 | end | |
3840 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil or game.Players:GetPlayerFromCharacter(hit.Parent.Parent)~=nil then | |
3841 | return | |
3842 | end]] | |
3843 | c=Instance.new("ObjectValue") | |
3844 | c.Name="creator" | |
3845 | c.Value=game.Players.LocalPlayer | |
3846 | c.Parent=h | |
3847 | game:GetService("Debris"):AddItem(c,.5) | |
3848 | -- print(c.Value) | |
3849 | if math.random(0,99)+math.random()<=5 then | |
3850 | CRIT=true | |
3851 | Damage=Damage*1.5 | |
3852 | --[[ Knockback=Knockback*2 | |
3853 | r=Instance.new("BodyAngularVelocity") | |
3854 | r.P=3000 | |
3855 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
3856 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
3857 | r.Parent=hit.Parent.Torso]] | |
3858 | critsound(2) | |
3859 | ||
3860 | end | |
3861 | Damage=Damage+math.random(0,10) | |
3862 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) | |
3863 | h:TakeDamage(Damage) | |
3864 | showDamage(hit.Parent,Damage,.5) | |
3865 | vp=Instance.new("BodyVelocity") | |
3866 | vp.P=500 | |
3867 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
3868 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
3869 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
3870 | if Knockback>0 then | |
3871 | vp.Parent=hit.Parent.Torso | |
3872 | end | |
3873 | game:GetService("Debris"):AddItem(vp,.25) | |
3874 | --[[ r=Instance.new("BodyAngularVelocity") | |
3875 | r.P=3000 | |
3876 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
3877 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
3878 | r.Parent=hit.Parent.Torso]] | |
3879 | game:GetService("Debris"):AddItem(r,.5) | |
3880 | c=Instance.new("ObjectValue") | |
3881 | c.Name="creator" | |
3882 | c.Value=Player | |
3883 | c.Parent=h | |
3884 | game:GetService("Debris"):AddItem(c,.5) | |
3885 | CRIT=false | |
3886 | hitDeb=true | |
3887 | AttackPos=6 | |
3888 | end | |
3889 | end | |
3890 | end | |
3891 | ||
3892 | DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D | |
3893 | if hit.Parent==nil then | |
3894 | return | |
3895 | end | |
3896 | h=hit.Parent:FindFirstChild("Humanoid") | |
3897 | if h==nil then | |
3898 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
3899 | end | |
3900 | t=hit.Parent:FindFirstChild("Torso") | |
3901 | if h~=nil and t~=nil then | |
3902 | if h.Parent==Character then | |
3903 | return | |
3904 | end | |
3905 | if Bouncing == false then | |
3906 | if HeroBar < 400 then | |
3907 | HeroBar = HeroBar + math.random(5,15) | |
3908 | end | |
3909 | if HeroBar > 400 then | |
3910 | HeroBar = 400 | |
3911 | end | |
3912 | end | |
3913 | if heromode == false then | |
3914 | Damage=Dmg+math.random(0,9) | |
3915 | else | |
3916 | Damage=Dmg+math.random(2,10) | |
3917 | end | |
3918 | h:TakeDamage(Damage) | |
3919 | c=Instance.new("ObjectValue") | |
3920 | c.Name="creator" | |
3921 | c.Value=game.Players.LocalPlayer | |
3922 | c.Parent=h | |
3923 | game:GetService("Debris"):AddItem(c,.5) | |
3924 | showDamage(hit.Parent,Damage,.5) | |
3925 | vl=Instance.new("BodyVelocity") | |
3926 | vl.P=4500 | |
3927 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
3928 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0) | |
3929 | vl.Parent=t | |
3930 | game:GetService("Debris"):AddItem(vl,.2) | |
3931 | rl=Instance.new("BodyAngularVelocity") | |
3932 | rl.P=3000 | |
3933 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
3934 | rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3935 | rl.Parent=t | |
3936 | game:GetService("Debris"):AddItem(rl,.2) | |
3937 | else | |
3938 | if hit.CanCollide==false then | |
3939 | return | |
3940 | end | |
3941 | MagicCom:disconnect() | |
3942 | -- DBExplode(DB) | |
3943 | end | |
3944 | end | |
3945 | ||
3946 | WRYHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D | |
3947 | if hit.Parent==nil then | |
3948 | return | |
3949 | end | |
3950 | h=hit.Parent:FindFirstChild("Humanoid") | |
3951 | t=hit.Parent:FindFirstChild("Torso") | |
3952 | if h~=nil and t~=nil then | |
3953 | if h.Parent==Character then | |
3954 | return | |
3955 | end | |
3956 | if mana < 400 then | |
3957 | mana = mana + math.random(10,30) | |
3958 | end | |
3959 | if mana > 400 then | |
3960 | mana = 400 | |
3961 | end | |
3962 | if Bouncing == false then | |
3963 | if HeroBar < 400 then | |
3964 | HeroBar = HeroBar + math.random(5,15) | |
3965 | end | |
3966 | if HeroBar > 400 then | |
3967 | HeroBar = 400 | |
3968 | end | |
3969 | end | |
3970 | if heromode == false then | |
3971 | Damage=Dmg+math.random(0,9) | |
3972 | else | |
3973 | Damage=Dmg+math.random(2,10) | |
3974 | end | |
3975 | h:TakeDamage(Damage) | |
3976 | critsound(2) | |
3977 | c=Instance.new("ObjectValue") | |
3978 | c.Name="creator" | |
3979 | c.Value=game.Players.LocalPlayer | |
3980 | c.Parent=h | |
3981 | game:GetService("Debris"):AddItem(c,.5) | |
3982 | showDamage(hit.Parent,Damage,.5) | |
3983 | vl=Instance.new("BodyVelocity") | |
3984 | vl.P=4500 | |
3985 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
3986 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0) | |
3987 | vl.Parent=t | |
3988 | game:GetService("Debris"):AddItem(vl,.2) | |
3989 | rl=Instance.new("BodyAngularVelocity") | |
3990 | rl.P=3000 | |
3991 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
3992 | rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3993 | rl.Parent=t | |
3994 | game:GetService("Debris"):AddItem(rl,.2) | |
3995 | else | |
3996 | if hit.CanCollide==false then | |
3997 | return | |
3998 | end | |
3999 | MagicCom:disconnect() | |
4000 | -- DBExplode(DB) | |
4001 | end | |
4002 | end | |
4003 | ||
4004 | SpikeDamage=function(hit,Damage,Knockback) | |
4005 | if attackdebounce == false then | |
4006 | attackdebounce = true | |
4007 | coroutine.resume(coroutine.create(function() | |
4008 | wait(0.5) | |
4009 | attackdebounce = false | |
4010 | end)) | |
4011 | if hit.Parent==nil then | |
4012 | return | |
4013 | end | |
4014 | CPlayer=Bin | |
4015 | h=hit.Parent:FindFirstChild("Humanoid") | |
4016 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
4017 | if mana < 400 then | |
4018 | mana = mana + math.random(5,10) | |
4019 | end | |
4020 | if mana > 400 then | |
4021 | mana = 400 | |
4022 | end | |
4023 | if Bouncing == false then | |
4024 | if HeroBar < 400 then | |
4025 | HeroBar = HeroBar + math.random(5,15) | |
4026 | end | |
4027 | if HeroBar > 400 then | |
4028 | HeroBar = 400 | |
4029 | end | |
4030 | end | |
4031 | if heromode == false then | |
4032 | Damage=Damage | |
4033 | else | |
4034 | Damage=Damage*1.5 | |
4035 | end | |
4036 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
4037 | return | |
4038 | end]] | |
4039 | c=Instance.new("ObjectValue") | |
4040 | c.Name="creator" | |
4041 | c.Value=game.Players.LocalPlayer | |
4042 | c.Parent=h | |
4043 | game:GetService("Debris"):AddItem(c,.5) | |
4044 | -- print(c.Value) | |
4045 | if math.random(0,99)+math.random()<=5 then | |
4046 | CRIT=true | |
4047 | Damage=Damage*1.5 | |
4048 | --[[ Knockback=Knockback*2 | |
4049 | r=Instance.new("BodyAngularVelocity") | |
4050 | r.P=3000 | |
4051 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4052 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4053 | r.Parent=hit.Parent.Torso]] | |
4054 | critsound(2) | |
4055 | ||
4056 | end | |
4057 | Damage=Damage+math.random(0,10) | |
4058 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) | |
4059 | h:TakeDamage(Damage) | |
4060 | showDamage(hit.Parent,Damage,.5) | |
4061 | vp=Instance.new("BodyVelocity") | |
4062 | vp.P=500 | |
4063 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
4064 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
4065 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
4066 | if Knockback>0 then | |
4067 | vp.Parent=hit.Parent.Torso | |
4068 | end | |
4069 | game:GetService("Debris"):AddItem(vp,.25) | |
4070 | --[[ r=Instance.new("BodyAngularVelocity") | |
4071 | r.P=3000 | |
4072 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4073 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4074 | r.Parent=hit.Parent.Torso]] | |
4075 | game:GetService("Debris"):AddItem(r,.5) | |
4076 | c=Instance.new("ObjectValue") | |
4077 | c.Name="creator" | |
4078 | c.Value=Player | |
4079 | c.Parent=h | |
4080 | game:GetService("Debris"):AddItem(c,.5) | |
4081 | CRIT=false | |
4082 | hitDeb=true | |
4083 | AttackPos=6 | |
4084 | end | |
4085 | end | |
4086 | end | |
4087 | ||
4088 | showDamage=function(Char,Dealt,du) | |
4089 | m=Instance.new("Model") | |
4090 | m.Name=tostring(Dealt) | |
4091 | h=Instance.new("Humanoid") | |
4092 | h.Health=0 | |
4093 | h.MaxHealth=0 | |
4094 | h.Parent=m | |
4095 | c=Instance.new("Part") | |
4096 | c.Transparency=0 | |
4097 | c.BrickColor=BrickColor:Red() | |
4098 | if CRIT==true then | |
4099 | c.BrickColor=BrickColor.new("Really red") | |
4100 | end | |
4101 | c.Name="Head" | |
4102 | c.TopSurface=0 | |
4103 | c.BottomSurface=0 | |
4104 | c.formFactor="Plate" | |
4105 | c.Size=Vector3.new(1,.4,1) | |
4106 | ms=Instance.new("CylinderMesh") | |
4107 | ms.Bevel=.1 | |
4108 | ms.Scale=Vector3.new(.8,.8,.8) | |
4109 | if CRIT==true then | |
4110 | ms.Scale=Vector3.new(1.25,1.5,1.25) | |
4111 | ms.Bevel=.2 | |
4112 | end | |
4113 | ms.Parent=c | |
4114 | c.Reflectance=0 | |
4115 | Instance.new("BodyGyro").Parent=c | |
4116 | c.Parent=m | |
4117 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
4118 | f=Instance.new("BodyPosition") | |
4119 | f.P=2000 | |
4120 | f.D=100 | |
4121 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4122 | f.position=c.Position+Vector3.new(0,3,0) | |
4123 | f.Parent=c | |
4124 | game:GetService("Debris"):AddItem(m,.5+du) | |
4125 | c.CanCollide=false | |
4126 | m.Parent=workspace | |
4127 | c.CanCollide=false | |
4128 | end | |
4129 | ||
4130 | hold = false | |
4131 | ||
4132 | function ob1d(mouse) | |
4133 | if attack == true then return end | |
4134 | hold = true | |
4135 | if mode == "Normal" then | |
4136 | if combo == 0 then | |
4137 | combo = 1 | |
4138 | onehit() | |
4139 | coroutine.resume(coroutine.create(function() | |
4140 | wait(0.5) | |
4141 | if attack == false then | |
4142 | combo = 0 | |
4143 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
4144 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4145 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4146 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4147 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4148 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4149 | end | |
4150 | end)) | |
4151 | elseif combo == 1 then | |
4152 | combo = 2 | |
4153 | twohit() | |
4154 | coroutine.resume(coroutine.create(function() | |
4155 | wait(0.5) | |
4156 | if attack == false then | |
4157 | combo = 0 | |
4158 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
4159 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4160 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4161 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4162 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4163 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4164 | end | |
4165 | end)) | |
4166 | elseif combo == 2 then | |
4167 | combo = 3 | |
4168 | threehit() | |
4169 | coroutine.resume(coroutine.create(function() | |
4170 | wait(0.5) | |
4171 | if attack == false then | |
4172 | combo = 0 | |
4173 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
4174 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4175 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4176 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4177 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4178 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4179 | end | |
4180 | end)) | |
4181 | elseif combo == 3 then | |
4182 | combo = 4 | |
4183 | fourhit(mouse) | |
4184 | wait(0.5) | |
4185 | combo = 0 | |
4186 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
4187 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4188 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4189 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4190 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4191 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4192 | end | |
4193 | elseif mode == "Throw" then | |
4194 | SpearThrow(mouse) | |
4195 | end | |
4196 | end | |
4197 | ||
4198 | function ob1u(mouse) | |
4199 | hold = false | |
4200 | end | |
4201 | ||
4202 | buttonhold = false | |
4203 | ||
4204 | function Key(key,mouse) | |
4205 | if key == "q" then | |
4206 | if Resting == true then | |
4207 | Resting = false | |
4208 | Sleeping = true | |
4209 | end | |
4210 | end | |
4211 | if key == "k" then | |
4212 | if Riding == true then | |
4213 | if Resting == false and Sleeping == false then | |
4214 | Sleeping = false | |
4215 | Rest() | |
4216 | elseif Resting == true then | |
4217 | Sleeping = false | |
4218 | Resting = false | |
4219 | end | |
4220 | end | |
4221 | end | |
4222 | if key == "t" then | |
4223 | coroutine.resume(coroutine.create(function() | |
4224 | wait(0.1) | |
4225 | rangepower = 10 | |
4226 | spread = 0 | |
4227 | range = 1000 | |
4228 | range2 = 1000 | |
4229 | spread2 = 500 | |
4230 | cloning = 0 | |
4231 | wld1.Parent = prt1 | |
4232 | wld1.Part0 = prt1 | |
4233 | wld1.Part1 = LeftArm | |
4234 | wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0) | |
4235 | wld1.C1 = CFrame.new(0,0,0) | |
4236 | Bouncing = false | |
4237 | attack = false | |
4238 | end)) | |
4239 | end | |
4240 | if attack == true then return end | |
4241 | if key == "q" then | |
4242 | Change() | |
4243 | end | |
4244 | --[[NORMAL ATTACKS]]-- | |
4245 | if key == "e" then | |
4246 | if Riding == false then | |
4247 | SpinSlash() | |
4248 | else | |
4249 | GroundSlasher() | |
4250 | end | |
4251 | end | |
4252 | if key == "r" then | |
4253 | hold = true | |
4254 | --SpearWave(mouse) | |
4255 | SpearThrow2(mouse) | |
4256 | end | |
4257 | if key == "t" then | |
4258 | BouncingSpear(mouse) | |
4259 | end | |
4260 | if key == "y" then | |
4261 | if Riding == true then | |
4262 | ThrowSpam(mouse) | |
4263 | else | |
4264 | ThrowSpam2(mouse) | |
4265 | end | |
4266 | end | |
4267 | --[[MISC MOVES]]-- | |
4268 | if key == "f" then | |
4269 | ChariotSummon() | |
4270 | end | |
4271 | if key == "g" then | |
4272 | WRYYY() | |
4273 | end | |
4274 | if key == "h" then | |
4275 | HeroMode() | |
4276 | end | |
4277 | if key == "j" then | |
4278 | if Imbued == false then | |
4279 | Imbue() | |
4280 | end | |
4281 | end | |
4282 | --[[BUFF ATTACKS]]-- | |
4283 | if key == "z" then | |
4284 | if Riding == false then | |
4285 | else | |
4286 | Halo() | |
4287 | end | |
4288 | end | |
4289 | if key == "x" then | |
4290 | if Riding == false then | |
4291 | else | |
4292 | HaloOther(mouse) | |
4293 | end | |
4294 | end | |
4295 | if key == "c" then | |
4296 | if Riding == false then | |
4297 | else | |
4298 | HealOther(mouse) | |
4299 | end | |
4300 | end | |
4301 | --[[if key == "v" then | |
4302 | if Riding == false then | |
4303 | else | |
4304 | BuffWalk() | |
4305 | end | |
4306 | end ]] | |
4307 | if key == "v" then | |
4308 | if Riding == false then | |
4309 | else | |
4310 | BuffWalkOther(mouse) | |
4311 | end | |
4312 | end | |
4313 | if key == "b" then | |
4314 | if Riding == false then | |
4315 | else | |
4316 | BuffRage(mouse) | |
4317 | end | |
4318 | end | |
4319 | end | |
4320 | ||
4321 | function key2(key,mouse) | |
4322 | if key == "c" then | |
4323 | Healing = false | |
4324 | end | |
4325 | if key == "r" then | |
4326 | hold = false | |
4327 | end | |
4328 | end | |
4329 | ||
4330 | function s(mouse) | |
4331 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
4332 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
4333 | mouse.KeyDown:connect(function(key) Key(key,mouse) end) | |
4334 | --mouse.KeyDown:connect(key,mouse) | |
4335 | mouse.KeyUp:connect(key2,mouse) | |
4336 | player = Player | |
4337 | ch = Character | |
4338 | RSH = ch.Torso["Right Shoulder"] | |
4339 | LSH = ch.Torso["Left Shoulder"] | |
4340 | -- | |
4341 | RW.Part0 = ch.Torso | |
4342 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
4343 | RW.C1 = CFrame.new(0, 0.5, 0) | |
4344 | RW.Part1 = ch["Right Arm"] | |
4345 | RW.Parent = ch.Torso | |
4346 | --_G.R = RW | |
4347 | -- | |
4348 | LW.Part0 = ch.Torso | |
4349 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
4350 | LW.C1 = CFrame.new(0, 0.5, 0) | |
4351 | LW.Part1 = ch["Left Arm"] | |
4352 | LW.Parent = ch.Torso | |
4353 | --_G.L = LW | |
4354 | -- | |
4355 | equipanim() | |
4356 | end | |
4357 | ||
4358 | function ds(mouse) | |
4359 | hideanim() | |
4360 | RW.Parent = nil | |
4361 | LW.Parent = nil | |
4362 | RSH.Parent = player.Character.Torso | |
4363 | LSH.Parent = player.Character.Torso | |
4364 | end | |
4365 | ||
4366 | Bin.Selected:connect(s) | |
4367 | Bin.Deselected:connect(ds) | |
4368 | ||
4369 | function onRunning(speed) | |
4370 | if attack == true then return end | |
4371 | if speed>0 then | |
4372 | walking = true | |
4373 | --[[for i = 0,1,0.1 do | |
4374 | wait() | |
4375 | if attack == false then | |
4376 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4377 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4378 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4379 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4380 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4381 | end | |
4382 | end ]] | |
4383 | else | |
4384 | walking = false | |
4385 | --[[for i = 0,1,0.1 do | |
4386 | wait() | |
4387 | if attack == false then | |
4388 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
4389 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4390 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4391 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4392 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4393 | end | |
4394 | end ]] | |
4395 | end | |
4396 | end | |
4397 | Character.Humanoid.Running:connect(onRunning) | |
4398 | ||
4399 | dur = 0 | |
4400 | coroutine.resume(coroutine.create(function() | |
4401 | while true do | |
4402 | wait(0) | |
4403 | if Riding == true then | |
4404 | if Torso.Velocity.magnitude > 1 then | |
4405 | spikecon=char17.Touched:connect(function(hit) SpikeDamage(hit,10,30) end) | |
4406 | --if Resting == false then | |
4407 | coroutine.resume(coroutine.create(function() | |
4408 | if Resting == false or Sleeping == false then | |
4409 | if idle == true then | |
4410 | idle = false | |
4411 | for i = 0,1,0.2 do | |
4412 | wait(0) | |
4413 | RW2.C0 = CFrame.new(0, -1.5, -0.3) * CFrame.fromEulerAnglesXYZ(0.8-0.1*i,0,0) | |
4414 | end | |
4415 | end | |
4416 | end | |
4417 | end)) | |
4418 | dur = dur + 0.3 | |
4419 | charw17.C0 = CFrame.fromEulerAnglesXYZ(0,dur,0) * CFrame.new(0,0,2) | |
4420 | --end | |
4421 | elseif Torso.Velocity.magnitude < 2 then | |
4422 | wait(0) | |
4423 | coroutine.resume(coroutine.create(function() | |
4424 | if Resting == false or Sleeping == false then | |
4425 | if idle == false then | |
4426 | idle = true | |
4427 | for i = 0,1,0.2 do | |
4428 | wait(0) | |
4429 | RW2.C0 = CFrame.new(0, -1.5, -0.3) * CFrame.fromEulerAnglesXYZ(0.8-0.1+0.1*i,0,0) | |
4430 | end | |
4431 | end | |
4432 | end | |
4433 | end)) | |
4434 | --end | |
4435 | if spikecon ~= nil then | |
4436 | spikecon:disconnect() | |
4437 | end | |
4438 | end | |
4439 | end | |
4440 | end | |
4441 | end)) | |
4442 | blehbeh = 0 | |
4443 | while true do | |
4444 | wait(0) | |
4445 | blehbeh = blehbeh + 1 | |
4446 | if blehbeh == 5 then | |
4447 | if mana < 400 then | |
4448 | mana = mana + 1 | |
4449 | end | |
4450 | blehbeh = 0 | |
4451 | end | |
4452 | fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0) | |
4453 | fentext.Text = "Mana("..mana..")" | |
4454 | fentext3.BackgroundColor3 = Color3.new(1,1,1) | |
4455 | fentext6.Size = UDim2.new(HeroBar*0.007,0,0.200000006,0) | |
4456 | end | |
4457 | ||
4458 | ||
4459 | -- mediafire |