SHOW:
|
|
- or go back to the newest paste.
1 | local ind = false | |
2 | ||
3 | local char = owner.Character | |
4 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=2675785344" | |
5 | ||
6 | for i,v in pairs(char:GetChildren()) do | |
7 | if v.ClassName == "Hat" or v.ClassName == "Pants" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "CharacterMesh" or v.ClassName == "ShirtGraphic" then | |
8 | v:Destroy() | |
9 | end | |
10 | end | |
11 | ||
12 | wait(0.1) | |
13 | local d = nil | |
14 | d = Instance.new("Model",game.Workspace) | |
15 | d.Name = "Dimension" | |
16 | ||
17 | local o1 = Instance.new("Part",d) | |
18 | o1.CFrame = CFrame.new(69.054, 147.649, 142.236) | |
19 | o1.Orientation = Vector3.new(0,0,0) | |
20 | o1.Anchored = true | |
21 | o1.Size = Vector3.new(55.798, 1.298, 58.393) | |
22 | o1.Material = "Granite" | |
23 | o1.Transparency = 0 | |
24 | o1.CanCollide = true | |
25 | o1.BrickColor = BrickColor.new("Really black") | |
26 | ||
27 | o1.Size = o1.Size + Vector3.new(0,10,0) | |
28 | o1.CFrame = o1.CFrame - Vector3.new(0,5,0) | |
29 | ||
30 | local o2 = Instance.new("Part",d) | |
31 | o2.CFrame = CFrame.new(69.054, 152.515, 170.135) | |
32 | o2.Orientation = Vector3.new(0,0,0) | |
33 | o2.Anchored = true | |
34 | o2.Size = Vector3.new(55.798, 8.435, 2.595) | |
35 | o2.Material = "Granite" | |
36 | o2.Transparency = 0 | |
37 | o2.CanCollide = true | |
38 | o2.BrickColor = BrickColor.new("Really black") | |
39 | ||
40 | local o3 = Instance.new("Part",d) | |
41 | o3.CFrame = CFrame.new(69.054, 152.515, 114.337) | |
42 | o3.Orientation = Vector3.new(0,0,0) | |
43 | o3.Anchored = true | |
44 | o3.Size = Vector3.new(55.798, 8.435, 2.595) | |
45 | o3.Material = "Granite" | |
46 | o3.Transparency = 0 | |
47 | o3.CanCollide = true | |
48 | o3.BrickColor = BrickColor.new("Really black") | |
49 | ||
50 | local o4 = Instance.new("Part",d) | |
51 | o4.CFrame = CFrame.new(42.129, 152.839, 142.236) | |
52 | o4.Orientation = Vector3.new(0,-90,0) | |
53 | o4.Anchored = true | |
54 | o4.Size = Vector3.new(55.798, 9.083, 1.946) | |
55 | o4.Material = "Granite" | |
56 | o4.Transparency = 0 | |
57 | o4.CanCollide = true | |
58 | o4.BrickColor = BrickColor.new("Really black") | |
59 | ||
60 | local o5 = Instance.new("Part",d) | |
61 | o5.CFrame = CFrame.new(95.656, 152.839, 142.236) | |
62 | o5.Orientation = Vector3.new(0,-90,0) | |
63 | o5.Anchored = true | |
64 | o5.Size = Vector3.new(55.798, 9.083, 2.595) | |
65 | o5.Material = "Granite" | |
66 | o5.Transparency = 0 | |
67 | o5.CanCollide = true | |
68 | o5.BrickColor = BrickColor.new("Really black") | |
69 | ||
70 | local o6 = Instance.new("Part",d) | |
71 | o6.CFrame = CFrame.new(69.054, 157.251, 142.236) | |
72 | o6.Orientation = Vector3.new(0,0,0) | |
73 | o6.Anchored = true | |
74 | o6.Size = Vector3.new(55.798, 1.298, 58.393) | |
75 | o6.Material = "Granite" | |
76 | o6.Transparency = 0 | |
77 | o6.CanCollide = true | |
78 | o6.BrickColor = BrickColor.new("Really black") | |
79 | ||
80 | local ki = Instance.new("Part",d) | |
81 | ki.CFrame = CFrame.new(67.75, 151.048, 141.75) | |
82 | ki.Orientation = Vector3.new(0,0,0) | |
83 | ki.Anchored = true | |
84 | ki.Size = Vector3.new(0.5, 0.5, 0.5) | |
85 | ki.Transparency = 1 | |
86 | ki.CanCollide = false | |
87 | ki.BrickColor = BrickColor.new("Really black") | |
88 | ||
89 | local li = Instance.new("PointLight",ki) | |
90 | li.Name = "Light" | |
91 | ki.Light.Brightness = 100 | |
92 | ki.Light.Range = 1000 | |
93 | ||
94 | for i,v in pairs(d:GetChildren()) do | |
95 | v.CFrame = v.CFrame + Vector3.new(0,1000,0) | |
96 | end | |
97 | ||
98 | Places = {Vector3.new(67.75, 1144.048, 141.75)} | |
99 | ||
100 | local bdc = char["Body Colors"] | |
101 | bdc.HeadColor = BrickColor.new("Really black") | |
102 | bdc.TorsoColor = BrickColor.new("Really black") | |
103 | bdc.RightArmColor = BrickColor.new("Really black") | |
104 | bdc.LeftArmColor = BrickColor.new("Really black") | |
105 | bdc.LeftLegColor = BrickColor.new("Really black") | |
106 | bdc.RightLegColor = BrickColor.new("Really black") | |
107 | ||
108 | local hair = Instance.new("Accessory") | |
109 | hair.AttachmentPos = Vector3.new(0, 0.286, 0) | |
110 | local ha = Instance.new("Part",hair) | |
111 | ha.Name = "Handle" | |
112 | ha.Size = Vector3.new(1.782, 1.517, 1.32) | |
113 | ha.BrickColor = BrickColor.new("Really black") | |
114 | local me = Instance.new("SpecialMesh", ha) | |
115 | me.MeshId = "http://www.roblox.com/asset/?id=155495525" | |
116 | me.TextureId = "http://www.roblox.com/asset/?id=2675785344" | |
117 | me.Scale = Vector3.new(1.1, 1.1, 1.1) | |
118 | me.VertexColor = Vector3.new(1, 1, 1) | |
119 | ||
120 | hair.Parent = char | |
121 | ||
122 | local sh = Instance.new("Shirt",char) | |
123 | sh.ShirtTemplate = "rbxassetid://219915350" | |
124 | sh.Name = "Shirt" | |
125 | ||
126 | local sh2 = Instance.new("Pants",char) | |
127 | sh2.PantsTemplate = "rbxassetid://325498599" | |
128 | sh2.Name = "Pants" | |
129 | ||
130 | char.Animate:Destroy() | |
131 | ||
132 | local mus = nil | |
133 | ||
134 | local hum = char:FindFirstChildOfClass("Humanoid") | |
135 | ||
136 | local idleanim = Instance.new("Animation") | |
137 | idleanim.Name = "Roblox Idle Animation" | |
138 | idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
139 | local idleanimplay = hum:LoadAnimation(idleanim) | |
140 | idleanimplay:Play() | |
141 | ||
142 | hum.WalkSpeed = 20 | |
143 | ||
144 | local swing = Instance.new("Animation") | |
145 | swing.Name = "swing" | |
146 | swing.AnimationId = "rbxassetid://900450645" | |
147 | local swingplay = hum:LoadAnimation(swing) | |
148 | ||
149 | mus = Instance.new("Sound",char) | |
150 | mus.SoundId = "rbxassetid://900450645" | |
151 | mus.Volume = 1.3 | |
152 | mus.Looped = true | |
153 | mus.Pitch = 0.9 | |
154 | mus:Play() | |
155 | ||
156 | --This script is made by Subaru112. | |
157 | ||
158 | local plr = owner | |
159 | local char = plr.Character | |
160 | local hum = char:FindFirstChildOfClass("Humanoid") | |
161 | local remote = Instance.new("RemoteEvent", char) | |
162 | remote.Name = "ReplicationEvent" | |
163 | local client = NLS([==[ | |
164 | local mouse = game:GetService("Players").LocalPlayer:GetMouse() | |
165 | local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
166 | spawn(function() | |
167 | while game:GetService("RunService").Heartbeat:Wait() do | |
168 | remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
169 | end | |
170 | end) | |
171 | game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping) | |
172 | if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then | |
173 | remote:FireServer(1, input.KeyCode) | |
174 | end | |
175 | end) | |
176 | mouse.Button1Down:Connect(function() | |
177 | remote:FireServer(2) | |
178 | end) | |
179 | remote.OnClientEvent:Connect(function() | |
180 | game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z)) | |
181 | end) | |
182 | ]==], char) | |
183 | local RS = char.Torso["Right Shoulder"] | |
184 | local LS = char.Torso["Left Shoulder"] | |
185 | local RH = char.Torso["Right Hip"] | |
186 | local LH = char.Torso["Left Hip"] | |
187 | local rootj = char.HumanoidRootPart.RootJoint | |
188 | local throwbutton = false | |
189 | local throw = false | |
190 | local normalanim = true | |
191 | local attackd = false | |
192 | local animpose = "Idle" | |
193 | local timepos = 0 | |
194 | local sine = 0 | |
195 | local RSnor = RS.C0 | |
196 | local LSnor = LS.C0 | |
197 | local RHnor = RH.C0 | |
198 | local LHnor = LH.C0 | |
199 | local rootjnor = rootj.C0 | |
200 | local swing = nil | |
201 | local visible = nil | |
202 | visible = true | |
203 | swing = false | |
204 | ||
205 | owner.Parent[hum.Parent.Name].Character:MoveTo(Places[math.random(1,#Places)]) | |
206 | ||
207 | --------------------------------- | |
208 | --------------Set up------------- | |
209 | --------------------------------- | |
210 | ||
211 | function onTouched(fire) | |
212 | if ind == false then | |
213 | if not(fire.Parent == char) then | |
214 | if swing == true then | |
215 | swing = false | |
216 | wait(0.00001) | |
217 | local hum = fire.Parent:FindFirstChildOfClass("Humanoid") | |
218 | if hum then | |
219 | local t = hum.Parent:findFirstChild("Torso") | |
220 | local t2 = hum.Parent:findFirstChild("UpperTorso") | |
221 | if t2 then | |
222 | local c = Instance.new("Part",t2) | |
223 | c.BrickColor = BrickColor.new("Really black") | |
224 | c.Size = Vector3.new(5,2.5,5) | |
225 | c.CFrame = t2.CFrame - Vector3.new(0,4,0) | |
226 | c.Material = "Neon" | |
227 | c.Size = Vector3.new(0.1,2.5,0.1) | |
228 | c.CanCollide = false | |
229 | c.Anchored = true | |
230 | t2.Anchored = true | |
231 | for i = 1,10 do | |
232 | wait(0.0001) | |
233 | c.Size = c.Size + Vector3.new(0.5,0,0.5) | |
234 | end | |
235 | wait(0.5) | |
236 | for i = 1,30 do | |
237 | wait(0.00000000001) | |
238 | t2.CFrame = t2.CFrame - Vector3.new(0,0.2,0) | |
239 | end | |
240 | c:Destroy() | |
241 | if hum.Parent then | |
242 | t2.CFrame = ki.CFrame | |
243 | t2.Anchored = false | |
244 | if owner.Parent:FindFirstChild(hum.Parent.Name) then | |
245 | owner.Parent[hum.Parent.Name].Character:MoveTo(Places[math.random(1,#Places)]) | |
246 | owner.Parent[hum.Parent.Name].Character.UpperTorso.CFrame = ki.CFrame | |
247 | end | |
248 | end | |
249 | end | |
250 | if t then | |
251 | local c = Instance.new("Part",t) | |
252 | c.BrickColor = BrickColor.new("Really black") | |
253 | c.Size = Vector3.new(5,2.5,5) | |
254 | c.CFrame = t.CFrame - Vector3.new(0,4,0) | |
255 | c.Material = "Neon" | |
256 | c.Size = Vector3.new(0.1,2.5,0.1) | |
257 | c.CanCollide = false | |
258 | c.Anchored = true | |
259 | t.Anchored = true | |
260 | for i = 1,10 do | |
261 | wait(0.0001) | |
262 | c.Size = c.Size + Vector3.new(0.5,0,0.5) | |
263 | end | |
264 | wait(0.5) | |
265 | for i = 1,30 do | |
266 | wait(0.00000000001) | |
267 | t.CFrame = t.CFrame - Vector3.new(0,0.2,0) | |
268 | end | |
269 | c:Destroy() | |
270 | if hum.Parent then | |
271 | t.CFrame = ki.CFrame | |
272 | t.Anchored = false | |
273 | if owner.Parent:FindFirstChild(hum.Parent.Name) then | |
274 | owner.Parent[hum.Parent.Name].Character:MoveTo(Places[math.random(1,#Places)]) | |
275 | owner.Parent[hum.Parent.Name].Character.Torso.CFrame = ki.CFrame | |
276 | end | |
277 | end | |
278 | end | |
279 | end | |
280 | end | |
281 | end | |
282 | end | |
283 | end | |
284 | char["Torso"].Touched:connect(onTouched) | |
285 | ||
286 | function onTouched(fire) | |
287 | if ind == true then | |
288 | if not(fire.Parent == char) then | |
289 | if swing == true then | |
290 | swing = false | |
291 | wait(0.00001) | |
292 | local hum = fire.Parent:FindFirstChildOfClass("Humanoid") | |
293 | if hum then | |
294 | local t = hum.Parent:findFirstChild("Torso") | |
295 | local t2 = hum.Parent:findFirstChild("UpperTorso") | |
296 | if t2 then | |
297 | local c = Instance.new("Part",t2) | |
298 | c.BrickColor = BrickColor.new("Really black") | |
299 | c.Size = Vector3.new(5,2.5,5) | |
300 | c.CFrame = t2.CFrame - Vector3.new(0,4,0) | |
301 | c.Material = "Neon" | |
302 | c.Size = Vector3.new(0.1,2.5,0.1) | |
303 | c.CanCollide = false | |
304 | c.Anchored = true | |
305 | t2.Anchored = true | |
306 | for i = 1,10 do | |
307 | wait(0.0001) | |
308 | c.Size = c.Size + Vector3.new(0.5,0,0.5) | |
309 | end | |
310 | wait(0.5) | |
311 | for i = 1,30 do | |
312 | wait(0.00000000001) | |
313 | t2.CFrame = t2.CFrame - Vector3.new(0,0.2,0) | |
314 | end | |
315 | c:Destroy() | |
316 | if hum.Parent then | |
317 | for i,v in pairs(hum.Parent:GetChildren()) do | |
318 | v:Destroy() | |
319 | end | |
320 | end | |
321 | end | |
322 | if t then | |
323 | local c = Instance.new("Part",t) | |
324 | c.BrickColor = BrickColor.new("Really black") | |
325 | c.Size = Vector3.new(5,2.5,5) | |
326 | c.CFrame = t.CFrame - Vector3.new(0,4,0) | |
327 | c.Material = "Neon" | |
328 | c.Size = Vector3.new(0.1,2.5,0.1) | |
329 | c.CanCollide = false | |
330 | c.Anchored = true | |
331 | t.Anchored = true | |
332 | for i = 1,10 do | |
333 | wait(0.0001) | |
334 | c.Size = c.Size + Vector3.new(0.5,0,0.5) | |
335 | end | |
336 | wait(0.5) | |
337 | for i = 1,30 do | |
338 | wait(0.00000000001) | |
339 | t.CFrame = t.CFrame - Vector3.new(0,0.2,0) | |
340 | end | |
341 | c:Destroy() | |
342 | if hum.Parent then | |
343 | for i,v in pairs(hum.Parent:GetChildren()) do | |
344 | v:Destroy() | |
345 | end | |
346 | end | |
347 | end | |
348 | end | |
349 | end | |
350 | end | |
351 | end | |
352 | end | |
353 | char["Head"].Touched:connect(onTouched) | |
354 | ||
355 | --------------------------------- | |
356 | -------------Attacks------------- | |
357 | --------------------------------- | |
358 | ||
359 | remote.OnServerEvent:Connect(function(Player, number, key) | |
360 | if number == 1 and plr.Name == Player.Name and attackd == false then | |
361 | if key == Enum.KeyCode.Z then | |
362 | if swing == false then | |
363 | swing = true | |
364 | wait(0.3) | |
365 | swing = false | |
366 | end | |
367 | end | |
368 | ||
369 | if key == Enum.KeyCode.Q then | |
370 | hum.WalkSpeed = 30 | |
371 | ind = true | |
372 | char.Torso.CFrame = ki.CFrame | |
373 | end | |
374 | ||
375 | if key == Enum.KeyCode.J then | |
376 | char.Torso.CFrame = CFrame.new(0,3,0) | |
377 | end | |
378 | ||
379 | if key == Enum.KeyCode.E then | |
380 | hum.WalkSpeed = 20 | |
381 | ind = false | |
382 | char.Torso.CFrame = CFrame.new(0,3,0) | |
383 | end | |
384 | ||
385 | if key == Enum.KeyCode.X then | |
386 | if swing == false then | |
387 | if visible == true then | |
388 | visible = false | |
389 | swing = true | |
390 | hum.JumpPower = 0 | |
391 | ||
392 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
393 | ||
394 | for i,v in pairs(char:GetChildren()) do | |
395 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
396 | ||
397 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
398 | ||
399 | end | |
400 | if v.ClassName == "Part" then | |
401 | if not(v.Name == "HumanoidRootPart") then | |
402 | ||
403 | v.Transparency = v.Transparency + 0.1 | |
404 | ||
405 | end | |
406 | end | |
407 | end | |
408 | wait(0.01) | |
409 | ||
410 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
411 | for i,v in pairs(char:GetChildren()) do | |
412 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
413 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
414 | end | |
415 | if v.ClassName == "Part" then | |
416 | if not(v.Name == "HumanoidRootPart") then | |
417 | v.Transparency = v.Transparency + 0.1 | |
418 | end | |
419 | end | |
420 | end | |
421 | wait(0.01) | |
422 | ||
423 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
424 | for i,v in pairs(char:GetChildren()) do | |
425 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
426 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
427 | end | |
428 | if v.ClassName == "Part" then | |
429 | if not(v.Name == "HumanoidRootPart") then | |
430 | v.Transparency = v.Transparency + 0.1 | |
431 | end | |
432 | end | |
433 | end | |
434 | wait(0.01) | |
435 | ||
436 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
437 | for i,v in pairs(char:GetChildren()) do | |
438 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
439 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
440 | end | |
441 | if v.ClassName == "Part" then | |
442 | if not(v.Name == "HumanoidRootPart") then | |
443 | v.Transparency = v.Transparency + 0.1 | |
444 | end | |
445 | end | |
446 | end | |
447 | wait(0.01) | |
448 | ||
449 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
450 | for i,v in pairs(char:GetChildren()) do | |
451 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
452 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
453 | end | |
454 | if v.ClassName == "Part" then | |
455 | if not(v.Name == "HumanoidRootPart") then | |
456 | v.Transparency = v.Transparency + 0.1 | |
457 | end | |
458 | end | |
459 | end | |
460 | wait(0.01) | |
461 | ||
462 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
463 | for i,v in pairs(char:GetChildren()) do | |
464 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
465 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
466 | end | |
467 | if v.ClassName == "Part" then | |
468 | if not(v.Name == "HumanoidRootPart") then | |
469 | v.Transparency = v.Transparency + 0.1 | |
470 | end | |
471 | end | |
472 | end | |
473 | wait(0.01) | |
474 | ||
475 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
476 | for i,v in pairs(char:GetChildren()) do | |
477 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
478 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
479 | end | |
480 | if v.ClassName == "Part" then | |
481 | if not(v.Name == "HumanoidRootPart") then | |
482 | v.Transparency = v.Transparency + 0.1 | |
483 | end | |
484 | end | |
485 | end | |
486 | wait(0.01) | |
487 | ||
488 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
489 | for i,v in pairs(char:GetChildren()) do | |
490 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
491 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
492 | end | |
493 | if v.ClassName == "Part" then | |
494 | if not(v.Name == "HumanoidRootPart") then | |
495 | v.Transparency = v.Transparency + 0.1 | |
496 | end | |
497 | end | |
498 | end | |
499 | wait(0.01) | |
500 | ||
501 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
502 | for i,v in pairs(char:GetChildren()) do | |
503 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
504 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
505 | end | |
506 | if v.ClassName == "Part" then | |
507 | if not(v.Name == "HumanoidRootPart") then | |
508 | v.Transparency = v.Transparency + 0.1 | |
509 | end | |
510 | end | |
511 | end | |
512 | wait(0.01) | |
513 | ||
514 | hum.JumpPower = 50 | |
515 | swing = false | |
516 | char.Head.face.Transparency = char.Head.face.Transparency + 0.1 | |
517 | for i,v in pairs(char:GetChildren()) do | |
518 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
519 | v.Handle.Transparency = v.Handle.Transparency + 0.1 | |
520 | end | |
521 | if v.ClassName == "Part" then | |
522 | if not(v.Name == "HumanoidRootPart") then | |
523 | v.Transparency = v.Transparency + 0.1 | |
524 | end | |
525 | end | |
526 | end | |
527 | end | |
528 | end | |
529 | end | |
530 | ||
531 | if key == Enum.KeyCode.C then | |
532 | ||
533 | if swing == false then | |
534 | if visible == false then | |
535 | swing = true | |
536 | visible = true | |
537 | hum.JumpPower = 0 | |
538 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
539 | for i,v in pairs(char:GetChildren()) do | |
540 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
541 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
542 | end | |
543 | if v.ClassName == "Part" then | |
544 | if not(v.Name == "HumanoidRootPart") then | |
545 | v.Transparency = v.Transparency - 0.1 | |
546 | end | |
547 | end | |
548 | end | |
549 | wait(0.01) | |
550 | ||
551 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
552 | for i,v in pairs(char:GetChildren()) do | |
553 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
554 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
555 | end | |
556 | if v.ClassName == "Part" then | |
557 | if not(v.Name == "HumanoidRootPart") then | |
558 | v.Transparency = v.Transparency - 0.1 | |
559 | end | |
560 | end | |
561 | end | |
562 | wait(0.01) | |
563 | ||
564 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
565 | for i,v in pairs(char:GetChildren()) do | |
566 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
567 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
568 | end | |
569 | if v.ClassName == "Part" then | |
570 | if not(v.Name == "HumanoidRootPart") then | |
571 | v.Transparency = v.Transparency - 0.1 | |
572 | end | |
573 | end | |
574 | end | |
575 | wait(0.01) | |
576 | ||
577 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
578 | for i,v in pairs(char:GetChildren()) do | |
579 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
580 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
581 | end | |
582 | if v.ClassName == "Part" then | |
583 | if not(v.Name == "HumanoidRootPart") then | |
584 | v.Transparency = v.Transparency - 0.1 | |
585 | end | |
586 | end | |
587 | end | |
588 | wait(0.01) | |
589 | ||
590 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
591 | for i,v in pairs(char:GetChildren()) do | |
592 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
593 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
594 | end | |
595 | if v.ClassName == "Part" then | |
596 | if not(v.Name == "HumanoidRootPart") then | |
597 | v.Transparency = v.Transparency - 0.1 | |
598 | end | |
599 | end | |
600 | end | |
601 | wait(0.01) | |
602 | ||
603 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
604 | for i,v in pairs(char:GetChildren()) do | |
605 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
606 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
607 | end | |
608 | if v.ClassName == "Part" then | |
609 | if not(v.Name == "HumanoidRootPart") then | |
610 | v.Transparency = v.Transparency - 0.1 | |
611 | end | |
612 | end | |
613 | end | |
614 | wait(0.01) | |
615 | ||
616 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
617 | for i,v in pairs(char:GetChildren()) do | |
618 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
619 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
620 | end | |
621 | if v.ClassName == "Part" then | |
622 | if not(v.Name == "HumanoidRootPart") then | |
623 | v.Transparency = v.Transparency - 0.1 | |
624 | end | |
625 | end | |
626 | end | |
627 | wait(0.01) | |
628 | ||
629 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
630 | for i,v in pairs(char:GetChildren()) do | |
631 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
632 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
633 | end | |
634 | if v.ClassName == "Part" then | |
635 | if not(v.Name == "HumanoidRootPart") then | |
636 | v.Transparency = v.Transparency - 0.1 | |
637 | end | |
638 | end | |
639 | end | |
640 | wait(0.01) | |
641 | ||
642 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
643 | for i,v in pairs(char:GetChildren()) do | |
644 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
645 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
646 | end | |
647 | if v.ClassName == "Part" then | |
648 | if not(v.Name == "HumanoidRootPart") then | |
649 | v.Transparency = v.Transparency - 0.1 | |
650 | end | |
651 | end | |
652 | end | |
653 | wait(0.01) | |
654 | ||
655 | hum.JumpPower = 50 | |
656 | swing = false | |
657 | char.Head.face.Transparency = char.Head.face.Transparency - 0.1 | |
658 | for i,v in pairs(char:GetChildren()) do | |
659 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
660 | v.Handle.Transparency = v.Handle.Transparency - 0.1 | |
661 | end | |
662 | if v.ClassName == "Part" then | |
663 | if not(v.Name == "HumanoidRootPart") then | |
664 | v.Transparency = v.Transparency - 0.1 | |
665 | end | |
666 | end | |
667 | end | |
668 | end | |
669 | end | |
670 | end | |
671 | end | |
672 | end) | |
673 | ||
674 | --------------------------------- | |
675 | -----------Wrapping up----------- | |
676 | --------------------------------- | |
677 | ||
678 | while game:GetService("RunService").Heartbeat:Wait() do | |
679 | if normalanim then | |
680 | sine = sine + 1 | |
681 | end | |
682 | ||
683 | if d.Parent == game.Workspace then | |
684 | ||
685 | else | |
686 | d = Instance.new("Model",game.Workspace) | |
687 | d.Name = "Dimension" | |
688 | ||
689 | local o1 = Instance.new("Part",d) | |
690 | o1.CFrame = CFrame.new(69.054, 147.649, 142.236) | |
691 | o1.Orientation = Vector3.new(0,0,0) | |
692 | o1.Anchored = true | |
693 | o1.Size = Vector3.new(55.798, 1.298, 58.393) | |
694 | o1.Material = "Granite" | |
695 | o1.Transparency = 0 | |
696 | o1.CanCollide = true | |
697 | o1.BrickColor = BrickColor.new("Really black") | |
698 | ||
699 | local o2 = Instance.new("Part",d) | |
700 | o2.CFrame = CFrame.new(69.054, 152.515, 170.135) | |
701 | o2.Orientation = Vector3.new(0,0,0) | |
702 | o2.Anchored = true | |
703 | o2.Size = Vector3.new(55.798, 8.435, 2.595) | |
704 | o2.Material = "Granite" | |
705 | o2.Transparency = 0 | |
706 | o2.CanCollide = true | |
707 | o2.BrickColor = BrickColor.new("Really black") | |
708 | ||
709 | local o3 = Instance.new("Part",d) | |
710 | o3.CFrame = CFrame.new(69.054, 152.515, 114.337) | |
711 | o3.Orientation = Vector3.new(0,0,0) | |
712 | o3.Anchored = true | |
713 | o3.Size = Vector3.new(55.798, 8.435, 2.595) | |
714 | o3.Material = "Granite" | |
715 | o3.Transparency = 0 | |
716 | o3.CanCollide = true | |
717 | o3.BrickColor = BrickColor.new("Really black") | |
718 | ||
719 | local o4 = Instance.new("Part",d) | |
720 | o4.CFrame = CFrame.new(42.129, 152.839, 142.236) | |
721 | o4.Orientation = Vector3.new(0,-90,0) | |
722 | o4.Anchored = true | |
723 | o4.Size = Vector3.new(55.798, 9.083, 1.946) | |
724 | o4.Material = "Granite" | |
725 | o4.Transparency = 0 | |
726 | o4.CanCollide = true | |
727 | o4.BrickColor = BrickColor.new("Really black") | |
728 | ||
729 | local o5 = Instance.new("Part",d) | |
730 | o5.CFrame = CFrame.new(95.656, 152.839, 142.236) | |
731 | o5.Orientation = Vector3.new(0,-90,0) | |
732 | o5.Anchored = true | |
733 | o5.Size = Vector3.new(55.798, 9.083, 2.595) | |
734 | o5.Material = "Granite" | |
735 | o5.Transparency = 0 | |
736 | o5.CanCollide = true | |
737 | o5.BrickColor = BrickColor.new("Really black") | |
738 | ||
739 | local o6 = Instance.new("Part",d) | |
740 | o6.CFrame = CFrame.new(69.054, 157.251, 142.236) | |
741 | o6.Orientation = Vector3.new(0,0,0) | |
742 | o6.Anchored = true | |
743 | o6.Size = Vector3.new(55.798, 1.298, 58.393) | |
744 | o6.Material = "Granite" | |
745 | o6.Transparency = 0 | |
746 | o6.CanCollide = true | |
747 | o6.BrickColor = BrickColor.new("Really black") | |
748 | ||
749 | local ki = Instance.new("Part",d) | |
750 | ki.CFrame = CFrame.new(67.75, 151.048, 141.75) | |
751 | ki.Orientation = Vector3.new(0,0,0) | |
752 | ki.Anchored = true | |
753 | ki.Size = Vector3.new(0.5, 0.5, 0.5) | |
754 | ki.Transparency = 1 | |
755 | ki.CanCollide = false | |
756 | ki.BrickColor = BrickColor.new("Really black") | |
757 | ||
758 | local li = Instance.new("PointLight",ki) | |
759 | li.Name = "Light" | |
760 | ki.Light.Brightness = 100 | |
761 | ki.Light.Range = 1000 | |
762 | ||
763 | for i,v in pairs(d:GetChildren()) do | |
764 | v.CFrame = v.CFrame + Vector3.new(0,1000,0) | |
765 | end | |
766 | ||
767 | end | |
768 | ||
769 | hum.Health = 9999999999999999 | |
770 | ||
771 | if hair.Parent == char then | |
772 | else | |
773 | script:Destroy() | |
774 | end | |
775 | ||
776 | if mus.Parent == char then | |
777 | mus.SoundId = "rbxassetid://900450645" | |
778 | mus.Playing = true | |
779 | mus.Looped = true | |
780 | mus.Volume = 1.3 | |
781 | mus.Pitch = 0.9 | |
782 | timepos = mus.TimePosition | |
783 | else | |
784 | mus = Instance.new("Sound", char) | |
785 | mus.TimePosition = timepos | |
786 | mus.Volume = 1.3 | |
787 | end | |
788 | ||
789 | if remote.Parent == char then | |
790 | remote.Name = "ReplicationEvent" | |
791 | else | |
792 | remote = Instance.new("RemoteEvent", char) | |
793 | end | |
794 | local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char) | |
795 | if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then | |
796 | animpose = "Walking" | |
797 | elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then | |
798 | animpose = "Jumping" | |
799 | elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then | |
800 | animpose = "Falling" | |
801 | else | |
802 | animpose = "Idle" | |
803 | end | |
804 | if animpose == "Idle" and normalanim then | |
805 | if ind == false then | |
806 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
807 | RS.C0 = RS.C0:Lerp(RSnor, 0.15) | |
808 | LS.C0 = LS.C0:Lerp(LSnor, 0.15) | |
809 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
810 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
811 | end | |
812 | if ind == true then | |
813 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0, 0, 0), 0.15) | |
814 | rootj.C0 = rootj.C0 * CFrame.new(math.sin(sine / 10) / 4, 0, math.sin(sine / 5) / 10) | |
815 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0.3, 0, 0), 0.14) | |
816 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0.3, 0, 0), 0.14) | |
817 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1, 0, 0), 0.10) | |
818 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1, 0, 0), 0.10) | |
819 | end | |
820 | ||
821 | elseif animpose == "Walking" and normalanim then | |
822 | if ind == false then | |
823 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
824 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0) | |
825 | ||
826 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0) | |
827 | ||
828 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0) | |
829 | ||
830 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0) | |
831 | end | |
832 | if ind == true then | |
833 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(1.3, 0, 0), 0.15) | |
834 | rootj.C0 = rootj.C0:Lerp(rootj.C0 * CFrame.Angles(0, 0, math.sin(sine / 100)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 0.5, 0) | |
835 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.14) | |
836 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.14) | |
837 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.3, 0, 0), 0.10) | |
838 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.3, 0, 0), 0.10) | |
839 | end | |
840 | ||
841 | elseif animpose == "Jumping" and normalanim then | |
842 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15) | |
843 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.14) | |
844 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.14) | |
845 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
846 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
847 | elseif animpose == "Falling" and normalanim then | |
848 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15) | |
849 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.14) | |
850 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.14) | |
851 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.3, 0, 0), 0.10) | |
852 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.3, 0, 0), 0.10) | |
853 | end | |
854 | end |