SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | print("controls:") | |
172 | print("z - make it morning") | |
173 | print("x - make it night") | |
174 | print("c - clean workspace") | |
175 | print("v - heal the player your mouse is pointing at") | |
176 | print("f - make the player your mouse is pointing at fat") | |
177 | print("n - make everyone fat") | |
178 | print("e - annihilate the player your mouse is pointing at") | |
179 | print("p - suicide") | |
180 | print("k - kill other players") | |
181 | print("b - control the player your mouse it pointing at") | |
182 | print("r - tp evryone to you") | |
183 | print("t - send the player your mouse is pointing at to 'heaven'") | |
184 | print("q - spawn pet") | |
185 | print("g - spawn a blackhole") | |
186 | oil = game.Players.LocalPlayer | |
187 | sauce = oil.Character | |
188 | tor = sauce:FindFirstChild("Torso") or sauce:FindFirstChild("UpperTorso") | |
189 | head = sauce:FindFirstChild("Head") | |
190 | larm = sauce:FindFirstChild("Left Arm") or sauce:FindFirstChild("LeftUpperArm") | |
191 | rarm = sauce:FindFirstChild("Right Arm") or sauce:FindFirstChild("RightUpperArm") | |
192 | rleg = sauce:FindFirstChild("Right Leg") or sauce:FindFirstChild("RightUpperLeg") | |
193 | lleg = sauce:FindFirstChild("Left Leg") or sauce:FindFirstChild("LeftUpperLeg") | |
194 | hum = sauce:FindFirstChildOfClass("Humanoid") | |
195 | humroot = sauce:FindFirstChild("HumanoidRootPart") | |
196 | mou = oil:GetMouse() | |
197 | remoteequipped = true | |
198 | controlling = false | |
199 | light = game:GetService("Lighting") | |
200 | tool = Instance.new("Tool", oil.Backpack) | |
201 | tool.Name = "Remote" | |
202 | hand = Instance.new("Part", tool) | |
203 | hand.Name = "Handle" | |
204 | hand.Size = Vector3.new(1, 1, 1) | |
205 | hand.Transparency = 1 | |
206 | p1 = Instance.new("Part", hand) | |
207 | p1.Size = Vector3.new(0.6, 0.1, 1.2) | |
208 | p1.Material = "Metal" | |
209 | p1.Name = "p1" | |
210 | p2 = Instance.new("Part", hand) | |
211 | p2.Size = Vector3.new(0.4, 0.1, 0.1) | |
212 | p2.Material = "Metal" | |
213 | p2.Name = "p2" | |
214 | p2.Shape = "Cylinder" | |
215 | p3 = Instance.new("Part", hand) | |
216 | p3.Shape = "Ball" | |
217 | p3.Material = "Neon" | |
218 | p3.Size = Vector3.new(0.15, 0.15, 0.15) | |
219 | p3.BrickColor = BrickColor.new("Crimson") | |
220 | p3.Name = "p3" | |
221 | p4 = Instance.new("Part", hand) | |
222 | p4.Size = Vector3.new(0.2, 0.4, 0.4) | |
223 | p4.Material = "Neon" | |
224 | p4.Name = "p4" | |
225 | p4.BrickColor = BrickColor.new("Maroon") | |
226 | p4.Shape = "Cylinder" | |
227 | w1 = Instance.new("Weld", p1) | |
228 | w1.Part0 = hand | |
229 | w1.Part1 = p1 | |
230 | w1.C1 = CFrame.new(0, 0, 0.6) | |
231 | w1.Name = "w1" | |
232 | w2 = Instance.new("Weld", p2) | |
233 | w2.Part0 = hand | |
234 | w2.Part1 = p2 | |
235 | w2.C1 = CFrame.new(1.3, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
236 | w3 = Instance.new("Weld", p3) | |
237 | w3.Part0 = hand | |
238 | w3.Part1 = p3 | |
239 | w3.C1 = CFrame.new(0, 0, 1.5) | |
240 | w4 = Instance.new("Weld", p4) | |
241 | w4.Part0 = hand | |
242 | w4.Part1 = p4 | |
243 | w4.C1 = CFrame.new(0.1, 0, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) | |
244 | ||
245 | ||
246 | tool.Equipped:connect(function() | |
247 | remoteequipped = true | |
248 | function pressed(key) | |
249 | if remoteequipped == true then | |
250 | if key == "x" then | |
251 | light.TimeOfDay = 21 | |
252 | elseif key == "z" then | |
253 | light.TimeOfDay = 7 | |
254 | elseif key == "c" then | |
255 | for i,v in pairs(workspace:GetChildren()) do | |
256 | if v:IsA("Part") and v.Name ~= "Base" then | |
257 | v.Locked = false | |
258 | v:remove() | |
259 | end | |
260 | if v:IsA("Model") and not v:FindFirstChildOfClass("Humanoid") then | |
261 | v:remove() | |
262 | end | |
263 | end | |
264 | elseif key == "p" then | |
265 | hum.Health = 0 | |
266 | elseif key == "k" then | |
267 | for i,v in pairs(workspace:GetChildren()) do | |
268 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
269 | khum = v:FindFirstChildOfClass("Humanoid") | |
270 | khum.Health = 0 | |
271 | end | |
272 | end | |
273 | elseif key == "r" then | |
274 | for i,v in pairs(workspace:GetChildren()) do | |
275 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
276 | vtor = v:FindFirstChild("Torso" )or v:FindFirstChild("UpperTorso") | |
277 | vtor.CFrame = tor.CFrame * CFrame.new(0, 0, -5) | |
278 | end | |
279 | end | |
280 | elseif key == "v" then | |
281 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
282 | mouhum = mou.Target.Parent:FindFirstChildOfClass("Humanoid") | |
283 | mouhum.Health = mouhum.MaxHealth | |
284 | mouhead = mou.Target.Parent:FindFirstChild("Head") | |
285 | bill = Instance.new("BillboardGui", mouhead) | |
286 | bill.AlwaysOnTop = true | |
287 | bill.StudsOffset = Vector3.new(0, 2, 0) | |
288 | bill.Adornee = mouhead | |
289 | bill.Size = UDim2.new(5, 35, 5, 35) | |
290 | btext = Instance.new("TextLabel", bill) | |
291 | btext.Text = mou.Target.Parent.Name.." has been Healed!" | |
292 | btext.Font = "Bodoni" | |
293 | btext.TextSize = 30 | |
294 | btext.TextScaled = true | |
295 | btext.BorderSizePixel = 0 | |
296 | btext.BackgroundTransparency = 1 | |
297 | btext.Size = UDim2.new(1.5, 0, 0.5, 0) | |
298 | btext.TextColor = BrickColor.new("Bright green") | |
299 | game:GetService("Debris"):AddItem(bill, 2) | |
300 | end | |
301 | elseif key == "e" then | |
302 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
303 | local nomoretor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso") | |
304 | local nomorehum = mou.Target.parent:FindFirstChildOfClass("Humanoid") | |
305 | local explo = Instance.new("Explosion", workspace) | |
306 | explo.Position = nomoretor.Position | |
307 | nomorehum.Health = 0 | |
308 | end | |
309 | elseif key == "f" then | |
310 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
311 | local fatman = mou.Target.Parent | |
312 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
313 | fatmanhum.WalkSpeed = 8 | |
314 | local fattor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso") | |
315 | local hinum = Instance.new("Sound", fattor) | |
316 | hinum.SoundId = "rbxassetid://1278031541" | |
317 | hinum.Volume = 10 | |
318 | local realfat = Instance.new("Part", fattor) | |
319 | realfat.BrickColor = fattor.BrickColor | |
320 | realfat.Material = "SmoothPlastic" | |
321 | local supaweld = Instance.new("Weld", realfat) | |
322 | supaweld.Part0 = fattor | |
323 | supaweld.Part1 = realfat | |
324 | local fat = Instance.new("SpecialMesh", realfat) | |
325 | fat.MeshType = "Sphere" | |
326 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
327 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
328 | hinum:Play() | |
329 | if fatman:FindFirstChildOfClass("Shirt") then | |
330 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
331 | end | |
332 | end | |
333 | elseif key == "b" then | |
334 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") and controlling == false then | |
335 | controlling = true | |
336 | cman = mou.Target.Parent | |
337 | mtor = cman:FindFirstChild("Torso") or cman:FindFirstChild("UpperTorso") | |
338 | mlarm = cman:FindFirstChild("Left Arm") or cman:FindFirstChild("LeftUpperArm") | |
339 | mrarm = cman:FindFirstChild("Right Arm") or cman:FindFirstChild("RightUpperArm") | |
340 | mlleg = cman:FindFirstChild("Left Leg") or cman:FindFirstChild("LeftUpperLeg") | |
341 | mrleg = cman:FindFirstChild("Right Leg") or cman:FindFirstChild("RightUpperLeg") | |
342 | mhead = cman:FindFirstChild("Head") | |
343 | mhum = cman:FindFirstChildOfClass("Humanoid") | |
344 | mhum.PlatformStand = true | |
345 | hum.NameOcclusion = "NoOcclusion" | |
346 | mface = head:FindFirstChild("face") | |
347 | mface.Transparency = 1 | |
348 | humroot.Transparency = 1 | |
349 | for i,v in pairs(sauce:GetChildren()) do | |
350 | if v:IsA("Part") then | |
351 | v.Transparency = 1 | |
352 | end | |
353 | if v:IsA("Accessory") then | |
354 | v.Handle.Transparency = 1 | |
355 | end | |
356 | end | |
357 | ow1 = Instance.new("Weld", tor) | |
358 | ow1.Part0 = tor | |
359 | ow1.Part1 = mtor | |
360 | ow2 = Instance.new("Weld", larm) | |
361 | ow2.Part0 = larm | |
362 | ow2.Part1 = mlarm | |
363 | ow3 = Instance.new("Weld", rarm) | |
364 | ow3.Part0 = rarm | |
365 | ow3.Part1 = mrarm | |
366 | ow4 = Instance.new("Weld", lleg) | |
367 | ow4.Part0 = lleg | |
368 | ow4.Part1 = mlleg | |
369 | ow5 = Instance.new("Weld", rleg) | |
370 | ow5.Part0 = rleg | |
371 | ow5.Part1 = mrleg | |
372 | ow6 = Instance.new("Weld", head) | |
373 | ow6.Part0 = head | |
374 | ow6.Part1 = mhead | |
375 | elseif controlling == true then | |
376 | controlling = false | |
377 | ow1:Destroy() | |
378 | ow2:Destroy() | |
379 | ow3:Destroy() | |
380 | ow4:Destroy() | |
381 | ow5:Destroy() | |
382 | ow6:Destroy() | |
383 | mhum.PlatformStand = false | |
384 | hum.NameOcclusion = "OccludeAll" | |
385 | humrootTransparency = 1 | |
386 | mface.Transparency = 0 | |
387 | for i,v in pairs(sauce:GetChildren()) do | |
388 | if v:IsA("Part") and v ~= humroot then | |
389 | v.Transparency = 0 | |
390 | end | |
391 | if v:IsA("Accessory") then | |
392 | v.Handle.Transparency = 0 | |
393 | end | |
394 | end | |
395 | end | |
396 | elseif key == "n" then | |
397 | for i,v in pairs(workspace:GetChildren()) do | |
398 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
399 | local fatman = v | |
400 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
401 | fatmanhum.WalkSpeed = 8 | |
402 | local fattor = fatman:FindFirstChild("Torso") or fatman:FindFirstChild("UpperTorso") | |
403 | local hinum2 = Instance.new("Sound", fattor) | |
404 | hinum2.SoundId = "rbxassetid://1278031541" | |
405 | hinum2.Volume = 10 | |
406 | local realfat = Instance.new("Part", fattor) | |
407 | realfat.BrickColor = fattor.BrickColor | |
408 | realfat.Material = "SmoothPlastic" | |
409 | local supaweld = Instance.new("Weld", realfat) | |
410 | supaweld.Part0 = fattor | |
411 | supaweld.Part1 = realfat | |
412 | local fat = Instance.new("SpecialMesh", realfat) | |
413 | fat.MeshType = "Sphere" | |
414 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
415 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
416 | hinum2:Play() | |
417 | if fatman:FindFirstChildOfClass("Shirt") then | |
418 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
419 | end | |
420 | end | |
421 | end | |
422 | elseif key == "t" then | |
423 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
424 | local goneman = mou.Target.Parent | |
425 | local gonehead = goneman:FindFirstChild("Head") | |
426 | local gonetor = goneman:FindFirstChild("Torso") or goneman:FindFirstChild("UpperTorso") | |
427 | local lightb = Instance.new("Part", goneman) | |
428 | lightb.Shape = "Cylinder" | |
429 | lightb.CanCollide = false | |
430 | lightb.Anchored = true | |
431 | lightb.Size = Vector3.new(300, 10, 10) | |
432 | lightb.Material = "Neon" | |
433 | lightb.Transparency = 0.5 | |
434 | lightb.BrickColor = BrickColor.new("New Yeller") | |
435 | lightb.CFrame = gonetor.CFrame * CFrame.new(0, 140, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) | |
436 | local start = gonetor.CFrame | |
437 | local finish = lightb.CFrame * CFrame.new(140, 0, 0) | |
438 | for i = 0,1,.01 do | |
439 | gonetor.CFrame = start:lerp(finish, i) | |
440 | wait() | |
441 | end | |
442 | gonehead.Size = Vector3.new(50, 50, 50) | |
443 | lightb:Destroy() | |
444 | end | |
445 | elseif key == "q" then | |
446 | if mou.Target ~= nil then | |
447 | local dont = Instance.new("Part", sauce) | |
448 | dont.CFrame = mou.Hit | |
449 | dont.Material = "Sand" | |
450 | dont.BrickColor = BrickColor.new("Pastel yellow") | |
451 | dont.Size = Vector3.new(3, 3, 3) | |
452 | dont.Shape = "Ball" | |
453 | dont.Anchored = true | |
454 | local obj = Instance.new("Sound", dont) | |
455 | local feats = {463838589, 691897627, 179270320, 425407550, 1074595721, 1065045593, 142688397, 1308566029, 1402510823} | |
456 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
457 | obj.Volume = 10 | |
458 | obj.Looped = true | |
459 | obj:Play() | |
460 | oil.Chatted:connect(function(msg) | |
461 | if msg:lower():sub(1, 7) == "plastic" then | |
462 | dont.Material = "Plastic" | |
463 | elseif msg:lower():sub(1, 5) == "slate" then | |
464 | dont.Material = "Slate" | |
465 | elseif msg:lower():sub(1, 3) == "ice" then | |
466 | dont.Material = "Ice" | |
467 | elseif msg:lower():sub(1, 5) == "metal" then | |
468 | dont.Material = "Metal" | |
469 | elseif msg:lower():sub(1, 4) == "neon" then | |
470 | dont.Material = "Neon" | |
471 | elseif msg:lower():sub(1, 5) == "grass" then | |
472 | dont.Material = "Grass" | |
473 | elseif msg:lower():sub(1, 4) == "sand" then | |
474 | dont.Material = "Sand" | |
475 | elseif msg:lower():sub(1, 9) == "woodplank" then | |
476 | dont.Material = "WoodPlanks" | |
477 | elseif msg:lower():sub(1, 4) == "wood" then | |
478 | dont.Material = "Wood" | |
479 | elseif msg:lower():sub(1, 6) == "marble" then | |
480 | dont.Material = "Marble" | |
481 | elseif msg:lower():sub(1, 8) == "concrete" then | |
482 | dont.Material = "Concrete" | |
483 | elseif msg:lower():sub(1, 5) == "brick" then | |
484 | dont.Material = "Brick" | |
485 | elseif msg:lower():sub(1, 7) == "granite" then | |
486 | dont.Material = "Granite" | |
487 | elseif msg:lower():sub(1, 6) == "pebble" then | |
488 | dont.Material = "Pebble" | |
489 | elseif msg:lower():sub(1, 11) == "cobblestone" then | |
490 | dont.Material = "Cobblestone" | |
491 | elseif msg:lower():sub(1, 13) == "corrodedmetal" then | |
492 | dont.Material = "CorrodedMetal" | |
493 | elseif msg:lower():sub(1, 12) == "diamondplate" then | |
494 | dont.Material = "DiamondPlate" | |
495 | elseif msg:lower():sub(1, 4) == "foil" then | |
496 | dont.Material = "Foil" | |
497 | elseif msg:lower():sub(1, 6) == "fabric" then | |
498 | dont.Material = "Fabric" | |
499 | elseif msg:lower():sub(1, 6) == "yellow" then | |
500 | dont.BrickColor = BrickColor.new("New Yeller") | |
501 | elseif msg:lower():sub(1, 6) == "purple" then | |
502 | dont.BrickColor = BrickColor.new("Bright violet") | |
503 | elseif msg:lower():sub(1, 3) == "red" then | |
504 | dont.BrickColor = BrickColor.new("Crimson") | |
505 | elseif msg:lower():sub(1, 5) == "black" then | |
506 | dont.BrickColor = BrickColor.new("Really black") | |
507 | elseif msg:lower():sub(1, 5) == "white" then | |
508 | dont.BrickColor = BrickColor.new("Institutional white") | |
509 | elseif msg:lower():sub(1, 4) == "pink" then | |
510 | dont.BrickColor = BrickColor.new("Hot pink") | |
511 | elseif msg:lower():sub(1, 5) == "green" then | |
512 | dont.BrickColor = BrickColor.new("Bright green") | |
513 | elseif msg:lower():sub(1, 4) == "grey" then | |
514 | dont.BrickColor = BrickColor.new("Medium stone grey") | |
515 | elseif msg:lower():sub(1, 5) == "brown" then | |
516 | dont.BrickColor = BrickColor.new("Burnt Sienna") | |
517 | elseif msg:lower():sub(1, 6) == "orange" then | |
518 | dont.BrickColor = BrickColor.new("Deep orange") | |
519 | elseif msg:lower():sub(1, 4) == "blue" then | |
520 | dont.BrickColor = BrickColor.new("Really blue") | |
521 | elseif msg:lower():sub(1, 4) == "cyan" then | |
522 | dont.BrickColor = BrickColor.new("Cyan") | |
523 | elseif msg:lower():sub(1, 6) == "pastel" then | |
524 | dont.BrickColor = BrickColor.new("Pastel yellow") | |
525 | elseif msg:lower():sub(1, 5) == "ghost" then | |
526 | dont.Transparency = 0.7 | |
527 | elseif msg:lower():sub(1, 5) == "alive" then | |
528 | dont.Transparency = 0 | |
529 | elseif msg:lower():sub(1, 5) == "block" then | |
530 | dont.Shape = "Block" | |
531 | elseif msg:lower():sub(1, 4) == "ball" then | |
532 | dont.Shape = "Ball" | |
533 | elseif msg:lower():sub(1, 3) == "bye" then | |
534 | dont:Destroy() | |
535 | elseif msg:lower():sub(1, 17) == "pick another song" then | |
536 | obj:Stop() | |
537 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
538 | obj.Volume = 10 | |
539 | obj.Looped = true | |
540 | obj:Play() | |
541 | elseif msg:lower():sub(1, 4) == "play" then | |
542 | obj:Play() | |
543 | elseif msg:lower():sub(1, 4) == "stop" then | |
544 | obj:Stop() | |
545 | elseif msg:lower():sub(1, 3) == "add" then | |
546 | obj:Stop() | |
547 | local arg = msg:sub(5, 999) | |
548 | obj.SoundId = "rbxassetid://"..arg | |
549 | obj:Play() | |
550 | end | |
551 | end) | |
552 | while true do | |
553 | for i = 0,1,.001 do | |
554 | dont.CFrame = dont.CFrame:lerp(tor.CFrame * CFrame.new(0, 5, 3), i) | |
555 | dont.Size = Vector3.new(obj.PlaybackLoudness/80, obj.PlaybackLoudness/80, obj.PlaybackLoudness/80) | |
556 | wait() | |
557 | end | |
558 | wait() | |
559 | end | |
560 | end | |
561 | elseif key == "g" then | |
562 | if mou.Target ~= nil then | |
563 | local MAN = mou.Target.Parent | |
564 | local MANT = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso") | |
565 | local hole = Instance.new("Part", workspace) | |
566 | hole.Shape = "Ball" | |
567 | hole.Size = Vector3.new(0.7, 0.7, 0.7) | |
568 | hole.BrickColor = BrickColor.new("Eggplant") | |
569 | hole.Anchored = true | |
570 | hole.Material = "Neon" | |
571 | hole.CFrame = mou.Hit | |
572 | for i,v in pairs(workspace:GetChildren()) do | |
573 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
574 | local owtor = v | |
575 | blacktor = owtor:FindFirstChild("Torso") or owtor:FindFirstChild("UpperTorso") | |
576 | bodpos = Instance.new("BodyPosition", blacktor) | |
577 | bodpos.Position = hole.Position | |
578 | bodpos.P = 5000000000 | |
579 | bodpos.MaxForce = Vector3.new(500000000, 500000000, 500000000) | |
580 | end | |
581 | end | |
582 | end | |
583 | ||
584 | end | |
585 | end | |
586 | end | |
587 | mou.KeyDown:connect(pressed) | |
588 | end) | |
589 | tool.Unequipped:connect(function() | |
590 | remoteequipped = false | |
591 | end) | |
592 | --//=========================\\-- | |
593 | --|| CREATED BY SHACKLUSTER ||-- | |
594 | --\\=========================//-- | |
595 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
596 | local Player = owner | |
597 | local Mouse,mouse,UserInputService,ContextActionService | |
598 | do | |
599 | script.Parent = Player.Character | |
600 | local CAS = {Actions={}} | |
601 | local Event = Instance.new("RemoteEvent") | |
602 | Event.Name = "UserInput_Event" | |
603 | Event.Parent = Player.Character | |
604 | local fakeEvent = function() | |
605 | local t = {_fakeEvent=true} | |
606 | t.Connect = function(self,f)self.Function=f end | |
607 | t.connect = t.Connect | |
608 | return t | |
609 | end | |
610 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
611 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
612 | function CAS:BindAction(name,fun,touch,...) | |
613 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
614 | end | |
615 | function CAS:UnbindAction(name) | |
616 | CAS.Actions[name] = nil | |
617 | end | |
618 | local function te(self,ev,...) | |
619 | local t = m[ev] | |
620 | if t and t._fakeEvent and t.Function then | |
621 | t.Function(...) | |
622 | end | |
623 | end | |
624 | m.TrigEvent = te | |
625 | UIS.TrigEvent = te | |
626 | Event.OnServerEvent:Connect(function(plr,io) | |
627 | if plr~=Player then return end | |
628 | if io.isMouse then | |
629 | m.Target = io.Target | |
630 | m.Hit = io.Hit | |
631 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
632 | if io.UserInputState == Enum.UserInputState.Begin then | |
633 | m:TrigEvent("Button1Down") | |
634 | else | |
635 | m:TrigEvent("Button1Up") | |
636 | end | |
637 | else | |
638 | for n,t in pairs(CAS.Actions) do | |
639 | for _,k in pairs(t.Keys) do | |
640 | if k==io.KeyCode then | |
641 | t.Function(t.Name,io.UserInputState,io) | |
642 | end | |
643 | end | |
644 | end | |
645 | if io.UserInputState == Enum.UserInputState.Begin then | |
646 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
647 | UIS:TrigEvent("InputBegan",io,false) | |
648 | else | |
649 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
650 | UIS:TrigEvent("InputEnded",io,false) | |
651 | end | |
652 | end | |
653 | end) | |
654 | NLS([==[ | |
655 | local Player = game:GetService("Players").LocalPlayer | |
656 | ||
657 | local Char = Player.Character | |
658 | local Event = Char:WaitForChild("UserInput_Event") | |
659 | ||
660 | local UIS = game:GetService("UserInputService") | |
661 | ||
662 | local input = function(io,a) | |
663 | if a then return end | |
664 | local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState} | |
665 | Event:FireServer(io) | |
666 | end | |
667 | UIS.InputBegan:Connect(input) | |
668 | UIS.InputEnded:Connect(input) | |
669 | local Changed = false | |
670 | local Mouse = Player:GetMouse() | |
671 | local h,t = Mouse.Hit,Mouse.Target | |
672 | while wait(1/30) do | |
673 | if h~=Mouse.Hit or t~=Mouse.Target then | |
674 | Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit}) | |
675 | h,t=Mouse.Hit,Mouse.Target | |
676 | end | |
677 | end | |
678 | ]==],Player.Character) | |
679 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
680 | end | |
681 | ||
682 | wait(0.2) | |
683 | ||
684 | Player = owner | |
685 | PlayerGui = Player.PlayerGui | |
686 | Cam = workspace.CurrentCamera | |
687 | Backpack = Player.Backpack | |
688 | Character = Player.Character | |
689 | Humanoid = Character.Humanoid | |
690 | RootPart = Character["HumanoidRootPart"] | |
691 | Torso = Character["Torso"] | |
692 | Head = Character["Head"] | |
693 | RightArm = Character["Right Arm"] | |
694 | LeftArm = Character["Left Arm"] | |
695 | RightLeg = Character["Right Leg"] | |
696 | LeftLeg = Character["Left Leg"] | |
697 | RootJoint = RootPart["RootJoint"] | |
698 | Neck = Torso["Neck"] | |
699 | RightShoulder = Torso["Right Shoulder"] | |
700 | LeftShoulder = Torso["Left Shoulder"] | |
701 | RightHip = Torso["Right Hip"] | |
702 | LeftHip = Torso["Left Hip"] | |
703 | local sick = Instance.new("Sound",Character) | |
704 | sick.SoundId = "rbxassetid://945264562" | |
705 | sick.Looped = true | |
706 | sick.Pitch = 1 | |
707 | sick.Volume = 10 | |
708 | sick:Play() | |
709 | local sick2 = Instance.new("Sound",Character) | |
710 | sick2.SoundId = "rbxassetid://1454553151" | |
711 | sick2.Looped = true | |
712 | sick2.Pitch = 1 | |
713 | sick2.Volume = 10 | |
714 | Humanoid.DisplayDistanceType = "None" | |
715 | Player:ClearCharacterAppearance() | |
716 | ||
717 | IT = Instance.new | |
718 | CF = CFrame.new | |
719 | VT = Vector3.new | |
720 | RAD = math.rad | |
721 | C3 = Color3.new | |
722 | UD2 = UDim2.new | |
723 | BRICKC = BrickColor.new | |
724 | ANGLES = CFrame.Angles | |
725 | EULER = CFrame.fromEulerAnglesXYZ | |
726 | COS = math.cos | |
727 | ACOS = math.acos | |
728 | SIN = math.sin | |
729 | ASIN = math.asin | |
730 | ABS = math.abs | |
731 | MRANDOM = math.random | |
732 | FLOOR = math.floor | |
733 | ||
734 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
735 | local NEWMESH = IT(MESH) | |
736 | if MESH == "SpecialMesh" then | |
737 | NEWMESH.MeshType = MESHTYPE | |
738 | if MESHID ~= "nil" and MESHID ~= "" then | |
739 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
740 | end | |
741 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
742 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
743 | end | |
744 | end | |
745 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
746 | NEWMESH.Scale = SCALE | |
747 | NEWMESH.Parent = PARENT | |
748 | return NEWMESH | |
749 | end | |
750 | ||
751 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
752 | local NEWPART = IT("Part") | |
753 | NEWPART.formFactor = FORMFACTOR | |
754 | NEWPART.Reflectance = REFLECTANCE | |
755 | NEWPART.Transparency = TRANSPARENCY | |
756 | NEWPART.CanCollide = false | |
757 | NEWPART.Locked = true | |
758 | NEWPART.Anchored = true | |
759 | if ANCHOR == false then | |
760 | NEWPART.Anchored = false | |
761 | end | |
762 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
763 | NEWPART.Name = NAME | |
764 | NEWPART.Size = SIZE | |
765 | NEWPART.Position = Torso.Position | |
766 | NEWPART.Material = MATERIAL | |
767 | NEWPART:BreakJoints() | |
768 | NEWPART.Parent = PARENT | |
769 | return NEWPART | |
770 | end | |
771 | ||
772 | ||
773 | ||
774 | local HBill = Instance.new("BillboardGui",Head) | |
775 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame") | |
776 | local HName = Instance.new("TextLabel") | |
777 | HBill.Size = UDim2.new(15,0,2.2,0) | |
778 | HBill.Name = "Health Display" | |
779 | HBill.StudsOffset = Vector3.new(3.675,2,0) | |
780 | HBill.AlwaysOnTop = true | |
781 | HBill.Enabled = true | |
782 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
783 | HMain.BackgroundTransparency = 1 | |
784 | HMain.Size = UDim2.new(.5,0,.5,0) | |
785 | HName.Parent = HMain | |
786 | HName.BackgroundTransparency = 1 | |
787 | HName.BackgroundColor3 = Color3.new(0,0,0) | |
788 | HName.BorderColor3 = Color3.new(0,0,0) | |
789 | HName.BorderSizePixel = 2 | |
790 | HName.Size = UDim2.new(1,0,.75,0) | |
791 | HName.Font = "SciFi" | |
792 | HName.Text = "Demon Of Death" | |
793 | HName.TextScaled = true | |
794 | HName.TextColor3 = Color3.new(255,0,0) | |
795 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
796 | HName.TextStrokeTransparency = 0 | |
797 | HName.TextYAlignment = "Bottom" | |
798 | ||
799 | ||
800 | --//=================================\\ | |
801 | --|| CUSTOMIZATION | |
802 | --\\=================================// | |
803 | ||
804 | Class_Name = "SatanBot.exe" | |
805 | Weapon_Name = "Add-ons" | |
806 | ||
807 | Custom_Colors = { | |
808 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
809 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
810 | ||
811 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
812 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
813 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
814 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
815 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
816 | ||
817 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
818 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
819 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
820 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
821 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
822 | } | |
823 | ||
824 | ||
825 | Player_Size = 1 --Size of the player. | |
826 | Animation_Speed = 3 | |
827 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
828 | ||
829 | local Speed = 35 | |
830 | local Effects2 = {} | |
831 | ||
832 | --//=================================\\ | |
833 | --|| END OF CUSTOMIZATION | |
834 | --\\=================================// | |
835 | ||
836 | local function weldBetween(a, b) | |
837 | local weldd = Instance.new("ManualWeld") | |
838 | weldd.Part0 = a | |
839 | weldd.Part1 = b | |
840 | weldd.C0 = CFrame.new() | |
841 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
842 | weldd.Parent = a | |
843 | return weldd | |
844 | end | |
845 | ||
846 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
847 | local acs = Instance.new("Part") | |
848 | acs.CanCollide = false | |
849 | acs.Anchored = false | |
850 | acs.Size = Vector3.new(0,0,0) | |
851 | acs.CFrame = attachmentpart.CFrame | |
852 | acs.Parent = attachmentpart | |
853 | acs.BrickColor = color | |
854 | local meshs = Instance.new("SpecialMesh") | |
855 | meshs.MeshId = mesh | |
856 | meshs.TextureId = texture | |
857 | meshs.Parent = acs | |
858 | meshs.Scale = scale | |
859 | meshs.Offset = offset | |
860 | weldBetween(attachmentpart,acs) | |
861 | end | |
862 | ||
863 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
864 | if TYPE == "Gem" then | |
865 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
866 | acs.Anchored = false | |
867 | acs.CanCollide = false | |
868 | acs.CFrame = PART.CFrame | |
869 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
870 | weldBetween(PART,acs) | |
871 | elseif TYPE == "Skull" then | |
872 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
873 | acs.Anchored = false | |
874 | acs.CanCollide = false | |
875 | acs.CFrame = PART.CFrame | |
876 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
877 | weldBetween(PART,acs) | |
878 | elseif TYPE == "Eye" then | |
879 | local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
880 | acs.Anchored = false | |
881 | acs.CanCollide = false | |
882 | acs.CFrame = PART.CFrame | |
883 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
884 | weldBetween(PART,acs) | |
885 | end | |
886 | end | |
887 | ||
888 | createbodypart("Eye", "Really red", Head, VT(0.2, 0, -0.55), VT(2, 6, 2)) | |
889 | createbodypart("Eye", "Really red", Head, VT(-0.2, 0, -0.55), VT(2, 6, 2)) | |
890 | createbodypart("Eye", "Really red", Head, VT(0, 0, -0.6), VT(2, 8, 2)) | |
891 | ||
892 | --//=================================\\ | |
893 | --|| USEFUL VALUES | |
894 | --\\=================================// | |
895 | ||
896 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
897 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
898 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
899 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
900 | local CO1 = 0 | |
901 | local CO2 = 0 | |
902 | local CO3 = 0 | |
903 | local CO4 = 0 | |
904 | local CHANGEDEFENSE = 0 | |
905 | local CHANGEDAMAGE = 0 | |
906 | local CHANGEMOVEMENT = 0 | |
907 | local ANIM = "Idle" | |
908 | local ATTACK = false | |
909 | local EQUIPPED = false | |
910 | local HOLD = false | |
911 | local COMBO = 1 | |
912 | local LASTPOINT = nil | |
913 | local BLCF = nil | |
914 | local SCFR = nil | |
915 | local KEYHOLD = false | |
916 | local STAGGERHITANIM = false | |
917 | local STAGGERANIM = false | |
918 | local STUNANIM = false | |
919 | local CRITCHANCENUMBER = 0 | |
920 | local IDLENUMBER = 0 | |
921 | local DONUMBER = 0 | |
922 | local HANDIDLE = false | |
923 | local Rooted = false | |
924 | local SINE = 0 | |
925 | local CHANGE = 2 / Animation_Speed | |
926 | local WALKINGANIM = false | |
927 | local WALK = 0 | |
928 | local DANCE = false | |
929 | local DISABLEJUMPING = false | |
930 | local ROBLOXIDLEANIMATION = IT("Animation") | |
931 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
932 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
933 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
934 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
935 | WEAPONGUI.Name = "Weapon GUI" | |
936 | local Weapon = IT("Model") | |
937 | Weapon.Name = Weapon_Name | |
938 | local Effects = IT("Folder", Weapon) | |
939 | Effects.Name = "Effects" | |
940 | local Bombs = IT("Folder", Weapon) | |
941 | Bombs.Name = "BombsHolder" | |
942 | local ANIMATOR = Humanoid.Animator | |
943 | local ANIMATE = Character.Animate | |
944 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
945 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
946 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
947 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
948 | local UNANCHOR = true | |
949 | local MAGICPARTICLE = "655109389" | |
950 | ||
951 | local SKILLTEXTCOLOR = C3(0,0,0) | |
952 | ||
953 | --//=================================\\ | |
954 | --\\=================================// | |
955 | ||
956 | ||
957 | --//=================================\\ | |
958 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
959 | --\\=================================// | |
960 | ||
961 | ArtificialHB = Instance.new("BindableEvent", script) | |
962 | ArtificialHB.Name = "ArtificialHB" | |
963 | ||
964 | script:WaitForChild("ArtificialHB") | |
965 | ||
966 | frame = Frame_Speed | |
967 | tf = 0 | |
968 | allowframeloss = false | |
969 | tossremainder = false | |
970 | lastframe = tick() | |
971 | script.ArtificialHB:Fire() | |
972 | ||
973 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
974 | tf = tf + s | |
975 | if tf >= frame then | |
976 | if allowframeloss then | |
977 | script.ArtificialHB:Fire() | |
978 | lastframe = tick() | |
979 | else | |
980 | for i = 1, math.floor(tf / frame) do | |
981 | script.ArtificialHB:Fire() | |
982 | end | |
983 | lastframe = tick() | |
984 | end | |
985 | if tossremainder then | |
986 | tf = 0 | |
987 | else | |
988 | tf = tf - frame * math.floor(tf / frame) | |
989 | end | |
990 | end | |
991 | end) | |
992 | ||
993 | --//=================================\\ | |
994 | --\\=================================// | |
995 | ||
996 | ||
997 | ||
998 | ||
999 | ||
1000 | --//=================================\\ | |
1001 | --|| SOME FUNCTIONS | |
1002 | --\\=================================// | |
1003 | ||
1004 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1005 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1006 | end | |
1007 | ||
1008 | function PositiveAngle(NUMBER) | |
1009 | if NUMBER >= 0 then | |
1010 | NUMBER = 0 | |
1011 | end | |
1012 | return NUMBER | |
1013 | end | |
1014 | ||
1015 | function NegativeAngle(NUMBER) | |
1016 | if NUMBER <= 0 then | |
1017 | NUMBER = 0 | |
1018 | end | |
1019 | return NUMBER | |
1020 | end | |
1021 | ||
1022 | function Swait(NUMBER) | |
1023 | if NUMBER == 0 or NUMBER == nil then | |
1024 | ArtificialHB.Event:wait() | |
1025 | else | |
1026 | for i = 1, NUMBER do | |
1027 | ArtificialHB.Event:wait() | |
1028 | end | |
1029 | end | |
1030 | end | |
1031 | ||
1032 | function QuaternionFromCFrame(cf) | |
1033 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1034 | local trace = m00 + m11 + m22 | |
1035 | if trace > 0 then | |
1036 | local s = math.sqrt(1 + trace) | |
1037 | local recip = 0.5 / s | |
1038 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1039 | else | |
1040 | local i = 0 | |
1041 | if m11 > m00 then | |
1042 | i = 1 | |
1043 | end | |
1044 | if m22 > (i == 0 and m00 or m11) then | |
1045 | i = 2 | |
1046 | end | |
1047 | if i == 0 then | |
1048 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1049 | local recip = 0.5 / s | |
1050 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1051 | elseif i == 1 then | |
1052 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1053 | local recip = 0.5 / s | |
1054 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1055 | elseif i == 2 then | |
1056 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1057 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1058 | end | |
1059 | end | |
1060 | end | |
1061 | ||
1062 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1063 | local xs, ys, zs = x + x, y + y, z + z | |
1064 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1065 | local xx = x * xs | |
1066 | local xy = x * ys | |
1067 | local xz = x * zs | |
1068 | local yy = y * ys | |
1069 | local yz = y * zs | |
1070 | local zz = z * zs | |
1071 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
1072 | end | |
1073 | ||
1074 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
1075 | local fp=IT("Part") | |
1076 | fp.formFactor=formfactor | |
1077 | fp.Parent=parent | |
1078 | fp.Reflectance=reflectance | |
1079 | fp.Transparency=transparency | |
1080 | fp.CanCollide=false | |
1081 | fp.Locked=true | |
1082 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
1083 | fp.Name=name | |
1084 | fp.Size=size | |
1085 | fp.Position=Character.Torso.Position | |
1086 | NoOutlines(fp) | |
1087 | fp.Material=material | |
1088 | fp:BreakJoints() | |
1089 | return fp | |
1090 | end | |
1091 | ||
1092 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1093 | local mesh=IT(Mesh) | |
1094 | mesh.Parent=part | |
1095 | if Mesh=="SpecialMesh" then | |
1096 | mesh.MeshType=meshtype | |
1097 | mesh.MeshId=meshid | |
1098 | end | |
1099 | mesh.Offset=offset | |
1100 | mesh.Scale=scale | |
1101 | return mesh | |
1102 | end | |
1103 | ||
1104 | function QuaternionSlerp(a, b, t) | |
1105 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1106 | local startInterp, finishInterp; | |
1107 | if cosTheta >= 0.0001 then | |
1108 | if (1 - cosTheta) > 0.0001 then | |
1109 | local theta = ACOS(cosTheta) | |
1110 | local invSinTheta = 1 / SIN(theta) | |
1111 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1112 | finishInterp = SIN(t * theta) * invSinTheta | |
1113 | else | |
1114 | startInterp = 1 - t | |
1115 | finishInterp = t | |
1116 | end | |
1117 | else | |
1118 | if (1 + cosTheta) > 0.0001 then | |
1119 | local theta = ACOS(-cosTheta) | |
1120 | local invSinTheta = 1 / SIN(theta) | |
1121 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1122 | finishInterp = SIN(t * theta) * invSinTheta | |
1123 | else | |
1124 | startInterp = t - 1 | |
1125 | finishInterp = t | |
1126 | end | |
1127 | end | |
1128 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
1129 | end | |
1130 | ||
1131 | function Clerp(a, b, t) | |
1132 | local qa = {QuaternionFromCFrame(a)} | |
1133 | local qb = {QuaternionFromCFrame(b)} | |
1134 | local ax, ay, az = a.x, a.y, a.z | |
1135 | local bx, by, bz = b.x, b.y, b.z | |
1136 | local _t = 1 - t | |
1137 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1138 | end | |
1139 | ||
1140 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1141 | local frame = IT("Frame") | |
1142 | frame.BackgroundTransparency = TRANSPARENCY | |
1143 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1144 | frame.Position = POSITION | |
1145 | frame.Size = SIZE | |
1146 | frame.BackgroundColor3 = COLOR | |
1147 | frame.BorderColor3 = BORDERCOLOR | |
1148 | frame.Name = NAME | |
1149 | frame.Parent = PARENT | |
1150 | return frame | |
1151 | end | |
1152 | ||
1153 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1154 | local label = IT("TextLabel") | |
1155 | label.BackgroundTransparency = 1 | |
1156 | label.Size = UD2(1, 0, 1, 0) | |
1157 | label.Position = UD2(0, 0, 0, 0) | |
1158 | label.TextColor3 = TEXTCOLOR | |
1159 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1160 | label.TextTransparency = TRANSPARENCY | |
1161 | label.FontSize = TEXTFONTSIZE | |
1162 | label.Font = TEXTFONT | |
1163 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1164 | label.TextScaled = false | |
1165 | label.Text = TEXT | |
1166 | label.Name = NAME | |
1167 | label.Parent = PARENT | |
1168 | return label | |
1169 | end | |
1170 | ||
1171 | function NoOutlines(PART) | |
1172 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1173 | end | |
1174 | ||
1175 | ||
1176 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1177 | local NEWWELD = IT(TYPE) | |
1178 | NEWWELD.Part0 = PART0 | |
1179 | NEWWELD.Part1 = PART1 | |
1180 | NEWWELD.C0 = C0 | |
1181 | NEWWELD.C1 = C1 | |
1182 | NEWWELD.Parent = PARENT | |
1183 | return NEWWELD | |
1184 | end | |
1185 | ||
1186 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1187 | local NEWSOUND = nil | |
1188 | coroutine.resume(coroutine.create(function() | |
1189 | NEWSOUND = IT("Sound", PARENT) | |
1190 | NEWSOUND.Volume = VOLUME | |
1191 | NEWSOUND.Pitch = PITCH | |
1192 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1193 | Swait() | |
1194 | NEWSOUND:play() | |
1195 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
1196 | end)) | |
1197 | return NEWSOUND | |
1198 | end | |
1199 | ||
1200 | function CFrameFromTopBack(at, top, back) | |
1201 | local right = top:Cross(back) | |
1202 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1203 | end | |
1204 | ||
1205 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
1206 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1207 | local mesh = IT("SpecialMesh",wave) | |
1208 | mesh.MeshType = "FileMesh" | |
1209 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1210 | mesh.Scale = VT(size,size,size) | |
1211 | mesh.Offset = VT(0,0,-size/8) | |
1212 | wave.CFrame = cframe | |
1213 | coroutine.resume(coroutine.create(function(PART) | |
1214 | for i = 1, waitt do | |
1215 | Swait() | |
1216 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1217 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1218 | if doesrotate == true then | |
1219 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1220 | end | |
1221 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1222 | if wave.Transparency > 0.99 then | |
1223 | wave:remove() | |
1224 | end | |
1225 | end | |
1226 | end)) | |
1227 | end | |
1228 | ||
1229 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
1230 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1231 | local mesh = IT("SpecialMesh",wave) | |
1232 | mesh.MeshType = "FileMesh" | |
1233 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1234 | mesh.Scale = VT(size,size,size) | |
1235 | wave.CFrame = cframe | |
1236 | coroutine.resume(coroutine.create(function(PART) | |
1237 | for i = 1, waitt do | |
1238 | Swait() | |
1239 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1240 | if doesrotate == true then | |
1241 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1242 | end | |
1243 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1244 | if wave.Transparency > 0.99 then | |
1245 | wave:remove() | |
1246 | end | |
1247 | end | |
1248 | end)) | |
1249 | end | |
1250 | ||
1251 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
1252 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1253 | local mesh = IT("SpecialMesh",wave) | |
1254 | mesh.MeshType = "FileMesh" | |
1255 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
1256 | mesh.Scale = VT(size,size,size) | |
1257 | wave.CFrame = cframe | |
1258 | coroutine.resume(coroutine.create(function(PART) | |
1259 | for i = 1, waitt do | |
1260 | Swait() | |
1261 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1262 | if doesrotate == true then | |
1263 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1264 | end | |
1265 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1266 | if wave.Transparency > 0.99 then | |
1267 | wave:remove() | |
1268 | end | |
1269 | end | |
1270 | end)) | |
1271 | end | |
1272 | ||
1273 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
1274 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1275 | local mesh = IT("SpecialMesh",wave) | |
1276 | mesh.MeshType = "FileMesh" | |
1277 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1278 | mesh.Scale = VT(size,size,size) | |
1279 | mesh.Offset = VT(0,0,0) | |
1280 | wave.CFrame = cframe | |
1281 | coroutine.resume(coroutine.create(function(PART) | |
1282 | for i = 1, waitt do | |
1283 | Swait() | |
1284 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1285 | if doesrotate == true then | |
1286 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
1287 | end | |
1288 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1289 | if wave.Transparency > 0.99 then | |
1290 | wave:remove() | |
1291 | end | |
1292 | end | |
1293 | end)) | |
1294 | end | |
1295 | ||
1296 | function MagicSphere(size,waitt,cframe,color) | |
1297 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
1298 | local mesh = IT("SpecialMesh",wave) | |
1299 | mesh.MeshType = "Sphere" | |
1300 | mesh.Scale = VT(size,size,size) | |
1301 | mesh.Offset = VT(0,0,0) | |
1302 | wave.CFrame = cframe | |
1303 | coroutine.resume(coroutine.create(function(PART) | |
1304 | for i = 1, waitt do | |
1305 | Swait() | |
1306 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1307 | wave.Transparency = wave.Transparency + (1/waitt) | |
1308 | if wave.Transparency > 0.99 then | |
1309 | wave:remove() | |
1310 | end | |
1311 | end | |
1312 | end)) | |
1313 | end | |
1314 | ||
1315 | function MagicSphere2(size,waitt,cframe,color) | |
1316 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
1317 | local mesh = IT("SpecialMesh",wave) | |
1318 | mesh.MeshType = "Sphere" | |
1319 | mesh.Scale = VT(size,size,size) | |
1320 | mesh.Offset = VT(0,0,0) | |
1321 | wave.CFrame = cframe | |
1322 | coroutine.resume(coroutine.create(function(PART) | |
1323 | for i = 1, waitt do | |
1324 | Swait() | |
1325 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1326 | wave.Transparency = wave.Transparency - (1/waitt) | |
1327 | end | |
1328 | wave:remove() | |
1329 | end)) | |
1330 | end | |
1331 | ||
1332 | function BreakEffect(brickcolor,cframe,x1,y1,z1,material) | |
1333 | local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5)) | |
1334 | prt.Anchored=true | |
1335 | prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1336 | local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1)) | |
1337 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1338 | CF=Part.CFrame | |
1339 | Numbb=0 | |
1340 | randnumb=math.random()-math.random() | |
1341 | for i=0,1,0.05 do | |
1342 | wait() | |
1343 | CF=CF*CF(0,1,0) | |
1344 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1345 | Part.CFrame=CF*EULER(Numbb,0,0) | |
1346 | Part.Transparency=i | |
1347 | Numbb=Numbb+randnumb | |
1348 | end | |
1349 | Part.Parent=nil | |
1350 | end),prt) | |
1351 | end | |
1352 | ||
1353 | function MagicBlock(size,waitt,cframe,color) | |
1354 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size)) | |
1355 | local mesh = IT("BlockMesh",wave) | |
1356 | wave.CFrame = cframe | |
1357 | coroutine.resume(coroutine.create(function(PART) | |
1358 | for i = 1, waitt do | |
1359 | Swait() | |
1360 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1361 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
1362 | wave.Transparency = wave.Transparency + (1/waitt) | |
1363 | if wave.Transparency > 0.99 then | |
1364 | wave:remove() | |
1365 | end | |
1366 | end | |
1367 | end)) | |
1368 | end | |
1369 | ||
1370 | local EyeSizes={ | |
1371 | NumberSequenceKeypoint.new(0,1,0), | |
1372 | NumberSequenceKeypoint.new(1,0.2,0) | |
1373 | } | |
1374 | local EyeTrans={ | |
1375 | NumberSequenceKeypoint.new(0,0.8,0), | |
1376 | NumberSequenceKeypoint.new(1,1,0) | |
1377 | } | |
1378 | local PE=Instance.new("ParticleEmitter") | |
1379 | PE.LightEmission=0 | |
1380 | PE.Size=NumberSequence.new(EyeSizes) | |
1381 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1382 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
1383 | PE.Rotation=NumberRange.new(0,360) | |
1384 | PE.Rate=15 | |
1385 | PE.Acceleration = Vector3.new(0,75,0) | |
1386 | PE.Drag = 5 | |
1387 | PE.Enabled = false | |
1388 | PE.Speed = NumberRange.new(0,0,0) | |
1389 | PE.Texture="http://www.roblox.com/asset/?id=1179557490" | |
1390 | PE.ZOffset = 0 | |
1391 | PE.Name = "Particles" | |
1392 | ||
1393 | function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault) | |
1394 | local particle = PE:Clone() | |
1395 | particle.Parent = art | |
1396 | particle.Acceleration = accel | |
1397 | PE.Rate = rate | |
1398 | if type == "Fire" then | |
1399 | local EyeSizes={ | |
1400 | NumberSequenceKeypoint.new(0,1,0.3), | |
1401 | NumberSequenceKeypoint.new(1,0.2,0.2) | |
1402 | } | |
1403 | PE.Size = NumberSequence.new(EyeSizes) | |
1404 | elseif type == "Smoke" then | |
1405 | local EyeSizes={ | |
1406 | NumberSequenceKeypoint.new(0,1,0), | |
1407 | NumberSequenceKeypoint.new(1,5,0.5) | |
1408 | } | |
1409 | PE.Size = NumberSequence.new(EyeSizes) | |
1410 | elseif type == "Solid" then | |
1411 | local EyeSizes={ | |
1412 | NumberSequenceKeypoint.new(0,1,0), | |
1413 | NumberSequenceKeypoint.new(1,1,0) | |
1414 | } | |
1415 | PE.Size = NumberSequence.new(EyeSizes) | |
1416 | end | |
1417 | PE.Drag = drag | |
1418 | particle.Texture = "http://www.roblox.com/asset/?id="..text | |
1419 | particle.Enabled = isenabledbydefault | |
1420 | return particle | |
1421 | end | |
1422 | ||
1423 | function MakeForm(PART,TYPE) | |
1424 | if TYPE == "Cyl" then | |
1425 | local MSH = IT("CylinderMesh",PART) | |
1426 | elseif TYPE == "Ball" then | |
1427 | local MSH = IT("SpecialMesh",PART) | |
1428 | MSH.MeshType = "Sphere" | |
1429 | elseif TYPE == "Wedge" then | |
1430 | local MSH = IT("SpecialMesh",PART) | |
1431 | MSH.MeshType = "Wedge" | |
1432 | end | |
1433 | end | |
1434 | ||
1435 | --//=================================\\ | |
1436 | --\\=================================// | |
1437 | ||
1438 | function createaddongen(limb,position,size) | |
1439 | local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false) | |
1440 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1441 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false) | |
1442 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1443 | end | |
1444 | ||
1445 | function creategauntlet(limb) | |
1446 | --main-- | |
1447 | local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
1448 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1449 | local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
1450 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1451 | MakeForm(part,"Wedge") | |
1452 | local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
1453 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1454 | MakeForm(part,"Wedge") | |
1455 | local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
1456 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1457 | --neon addons | |
1458 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false) | |
1459 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1460 | --misc-- | |
1461 | createaddongen(limb,0.25,0.75) | |
1462 | createaddongen(limb,-0.2,0.25) | |
1463 | createaddongen(limb,-0.35,0.25) | |
1464 | createaddongen(limb,-0.65,0.45) | |
1465 | end | |
1466 | ||
1467 | --//=================================\\ | |
1468 | --|| WEAPON CREATION | |
1469 | --\\=================================// | |
1470 | ||
1471 | creategauntlet(RightArm) | |
1472 | creategauntlet(LeftLeg) | |
1473 | ||
1474 | if Player_Size ~= 1 then | |
1475 | for _, v in pairs (Weapon:GetChildren()) do | |
1476 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
1477 | local p1 = v.Part1 | |
1478 | v.Part1 = nil | |
1479 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
1480 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
1481 | v.Part1 = p1 | |
1482 | elseif v.ClassName == "Part" then | |
1483 | for _, b in pairs (v:GetChildren()) do | |
1484 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
1485 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
1486 | end | |
1487 | end | |
1488 | end | |
1489 | end | |
1490 | end | |
1491 | ||
1492 | for _, c in pairs(Weapon:GetChildren()) do | |
1493 | if c.ClassName == "Part" then | |
1494 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1495 | end | |
1496 | end | |
1497 | ||
1498 | Weapon.Parent = Character | |
1499 | ||
1500 | Humanoid.Died:connect(function() | |
1501 | sick:remove() | |
1502 | sick2:remove() | |
1503 | CreateSound("167285348", Head, 3, 1) | |
1504 | ATTACK = true | |
1505 | end) | |
1506 | ||
1507 | print(Class_Name.." loaded.") | |
1508 | ||
1509 | --//=================================\\ | |
1510 | --|| SPEECH | |
1511 | --\\=================================// | |
1512 | ||
1513 | function chatfunc(text,waitt) | |
1514 | local chat = coroutine.wrap(function() | |
1515 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1516 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1517 | end | |
1518 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1519 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1520 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
1521 | naeeym2.Adornee = Character.Head | |
1522 | naeeym2.Name = "TalkingBillBoard" | |
1523 | naeeym2.AlwaysOnTop = true | |
1524 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1525 | tecks2.BackgroundTransparency = 1 | |
1526 | tecks2.BorderSizePixel = 0 | |
1527 | tecks2.Text = "" | |
1528 | tecks2.Font = "SciFi" | |
1529 | tecks2.TextSize = 30 | |
1530 | tecks2.TextStrokeTransparency = 1 | |
1531 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
1532 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1533 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1534 | for i = 1,string.len(text),1 do | |
1535 | tecks2.Text = string.sub(text,1,i) | |
1536 | Swait() | |
1537 | end | |
1538 | wait(waitt) | |
1539 | coroutine.resume(coroutine.create(function() | |
1540 | for i = 1, 10 do | |
1541 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
1542 | Swait() | |
1543 | end | |
1544 | naeeym2:Destroy() | |
1545 | end)) | |
1546 | end) | |
1547 | chat() | |
1548 | end | |
1549 | ||
1550 | --//=================================\\ | |
1551 | --|| DAMAGE FUNCTIONS | |
1552 | --\\=================================// | |
1553 | ||
1554 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1555 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1556 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1557 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1558 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1559 | BODYPOSITION.P = 2000 | |
1560 | BODYPOSITION.D = 100 | |
1561 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1562 | if LABELTYPE == "Normal" then | |
1563 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1564 | elseif LABELTYPE == "Debuff" then | |
1565 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
1566 | elseif LABELTYPE == "Interruption" then | |
1567 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
1568 | end | |
1569 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1570 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1571 | BILLBOARDGUI.Adornee = STATPART | |
1572 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1573 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1574 | BILLBOARDGUI.AlwaysOnTop = false | |
1575 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1576 | TEXTLABEL.BackgroundTransparency = 1 | |
1577 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1578 | TEXTLABEL.Text = TEXT | |
1579 | TEXTLABEL.Font = "SciFi" | |
1580 | TEXTLABEL.FontSize="Size42" | |
1581 | TEXTLABEL.TextColor3 = COLOR | |
1582 | TEXTLABEL.TextStrokeTransparency = 1 | |
1583 | TEXTLABEL.TextScaled = true | |
1584 | TEXTLABEL.TextWrapped = true | |
1585 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1586 | wait(0.2) | |
1587 | for i=1, 5 do | |
1588 | wait() | |
1589 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
1590 | end | |
1591 | wait(1.2) | |
1592 | for i=1, 5 do | |
1593 | wait() | |
1594 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
1595 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
1596 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
1597 | end | |
1598 | THEPART.Parent = nil | |
1599 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1600 | end | |
1601 | ||
1602 | ||
1603 | --//=================================\\ | |
1604 | --|| DAMAGING | |
1605 | --\\=================================// | |
1606 | ||
1607 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
1608 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
1609 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1610 | local dmg = math.random(min,max) | |
1611 | if humanoid.Health > 0 then | |
1612 | if beserk == true then | |
1613 | humanoid.Health = 0 | |
1614 | else | |
1615 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
1616 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
1617 | if math.random(1,100) < critrate+1 then | |
1618 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
1619 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1620 | else | |
1621 | humanoid.Health = humanoid.Health - dmg | |
1622 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1623 | end | |
1624 | local defence = Instance.new("BoolValue",hit.Parent) | |
1625 | defence.Name = ("HitBy"..Player.Name) | |
1626 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1627 | end | |
1628 | end | |
1629 | end | |
1630 | end | |
1631 | ||
1632 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
1633 | local dmg = math.random(min,max) | |
1634 | for i,v in ipairs(workspace:GetChildren()) do | |
1635 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1636 | local body = v:GetChildren() | |
1637 | for part = 1, #body do | |
1638 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1639 | if(body[part].Position - position).Magnitude < radius then | |
1640 | if v.ClassName == "Model" then | |
1641 | if v:FindFirstChild("Humanoid") then | |
1642 | if v.Humanoid.Health ~= 0 then | |
1643 | if CanBeDodgedByJumping == true then | |
1644 | if body[part].Position.Y < position.Y+5 then | |
1645 | if math.random(1,100) < critrate+1 then | |
1646 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1647 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1648 | else | |
1649 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1650 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1651 | end | |
1652 | local defence = Instance.new("BoolValue",v) | |
1653 | defence.Name = ("HitBy"..Player.Name) | |
1654 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1655 | end | |
1656 | else | |
1657 | if beserk == true then | |
1658 | v.Humanoid.Health = 0 | |
1659 | end | |
1660 | if math.random(1,100) < critrate+1 then | |
1661 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1662 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1663 | else | |
1664 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1665 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1666 | end | |
1667 | local defence = Instance.new("BoolValue",v) | |
1668 | defence.Name = ("HitBy"..Player.Name) | |
1669 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1670 | end | |
1671 | end | |
1672 | end | |
1673 | end | |
1674 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1675 | end | |
1676 | end | |
1677 | end | |
1678 | if v.ClassName == "Part" then | |
1679 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1680 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1681 | end | |
1682 | end | |
1683 | end | |
1684 | end | |
1685 | end | |
1686 | ||
1687 | function killnearest(position,range,maxstrength) | |
1688 | for i,v in ipairs(workspace:GetChildren()) do | |
1689 | local body = v:GetChildren() | |
1690 | for part = 1, #body do | |
1691 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1692 | if(body[part].Position - position).Magnitude < range then | |
1693 | if v.ClassName == "Model" then | |
1694 | v:BreakJoints() | |
1695 | end | |
1696 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1697 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1698 | end | |
1699 | end | |
1700 | end | |
1701 | if v.ClassName == "Part" then | |
1702 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1703 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1704 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1705 | end | |
1706 | end | |
1707 | end | |
1708 | end | |
1709 | ||
1710 | --//=================================\\ | |
1711 | --|| ATTACK FUNCTIONS AND STUFF | |
1712 | --\\=================================// | |
1713 | ||
1714 | function CheckTableForString(Table, String) | |
1715 | for i, v in pairs(Table) do | |
1716 | if string.find(string.lower(String), string.lower(v)) then | |
1717 | return true | |
1718 | end | |
1719 | end | |
1720 | return false | |
1721 | end | |
1722 | ||
1723 | function CheckIntangible(Hit) | |
1724 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
1725 | if Hit and Hit.Parent then | |
1726 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
1727 | return true | |
1728 | end | |
1729 | end | |
1730 | return false | |
1731 | end | |
1732 | ||
1733 | Debris = game:GetService("Debris") | |
1734 | ||
1735 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
1736 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1737 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1738 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1739 | if RayHit and CheckIntangible(RayHit) then | |
1740 | if DelayIfHit then | |
1741 | wait() | |
1742 | end | |
1743 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
1744 | end | |
1745 | return RayHit, RayPos, RayNormal | |
1746 | end | |
1747 | ||
1748 | function turnto(position) | |
1749 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1750 | end | |
1751 | ||
1752 | function ExplodeBomb(b) | |
1753 | b.Parent = Effects | |
1754 | b.Anchored = true | |
1755 | CreateSound("215395285", b, 10, 1) | |
1756 | MagicSphere(5,50,b.CFrame,"Really red") | |
1757 | b.Transparency = 1 | |
1758 | MagicBlock(3,45,b.CFrame,"Really red") | |
1759 | --BreakEffect("Really red",b.CFrame,2,2,2,"Neon") | |
1760 | for i = 1, 10 do | |
1761 | CreateSwirl(0,5,true,-0.2,25,b.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1762 | end | |
1763 | killnearest(b.Position,30,25) | |
1764 | game:GetService("Debris"):AddItem(b, 5) | |
1765 | end | |
1766 | ||
1767 | function Detonate() | |
1768 | bomb = Bombs:GetChildren() | |
1769 | for lol = 1, #bomb do | |
1770 | if bomb[lol].ClassName == "Part" then | |
1771 | local b = bomb[lol] | |
1772 | ExplodeBomb(b) | |
1773 | end | |
1774 | end | |
1775 | end | |
1776 | ||
1777 | ||
1778 | ||
1779 | function TyranyCannon() | |
1780 | ATTACK = true | |
1781 | for i=0, 1, 0.1 / Animation_Speed do | |
1782 | Swait() | |
1783 | turnto(Mouse.Hit.p) | |
1784 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed/5) | |
1785 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1786 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1787 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1788 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1.25), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1789 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1790 | end | |
1791 | local POS = Mouse.Hit.p | |
1792 | for i = 1, 5 do | |
1793 | MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Really red") | |
1794 | Swait(5) | |
1795 | end | |
1796 | CreateSound("438666196", RightArm, 5, 1) | |
1797 | MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Really red") | |
1798 | local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Really red", "Bomb-Projectile", VT(5,5,5),false) | |
1799 | Projectile.CFrame = RightArm.CFrame * CF(0,-1,0) | |
1800 | Projectile.CanCollide = false | |
1801 | MakeForm(Projectile,"Ball") | |
1802 | local grav = Instance.new("BodyPosition",Projectile) | |
1803 | grav.P = 25000 | |
1804 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1805 | grav.position = POS | |
1806 | grav.Name = "GravityForce" | |
1807 | local harm = Projectile.Touched:Connect(function(hit) | |
1808 | if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") and Projectile.Parent ~= Effects then | |
1809 | ExplodeBomb(Projectile) | |
1810 | end | |
1811 | end) | |
1812 | ATTACK = false | |
1813 | end | |
1814 | ||
1815 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1816 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1817 | end | |
1818 | ||
1819 | function EarthShatter() | |
1820 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1821 | if HITFLOOR ~= nil then | |
1822 | ATTACK = true | |
1823 | Rooted = true | |
1824 | for i=0, 1, 0.1 / Animation_Speed/2 do | |
1825 | Swait() | |
1826 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8) | |
1827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8) | |
1829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8) | |
1830 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed/8) | |
1831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed/8) | |
1832 | end | |
1833 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
1834 | Swait() | |
1835 | RootPart.Anchored = true | |
1836 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1837 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1838 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1839 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1840 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5) | |
1841 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5) | |
1842 | end | |
1843 | local POS = RightArm.CFrame * CF(0,-1,0).p | |
1844 | for i = 1,10 do | |
1845 | CreateWave(0,10,true,0.05,25,CF(POS),"Really black") | |
1846 | CreateWave(0,6,true,-0.05,25,CF(POS),"Really black") | |
1847 | CreateWave(0,2,true,0.05,25,CF(POS),"Really black") | |
1848 | killnearest(POS,15,25) | |
1849 | CreateSound("438666141", RightArm, 5, 1) | |
1850 | for i = 1, 40 do | |
1851 | local angle = math.random(-180,180) | |
1852 | coroutine.resume(coroutine.create(function() | |
1853 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
1854 | local SpawnPosition = RayPos | |
1855 | local floor = RayHit | |
1856 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
1857 | local LastPosition = RayPos | |
1858 | local Delay = 1 | |
1859 | if floor ~= nil then | |
1860 | for i = 1, 5 do | |
1861 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace}) | |
1862 | local End = RayPos | |
1863 | LastPosition = End | |
1864 | killnearest(End,15,25) | |
1865 | local locatepart = Instance.new("Part",Effects) | |
1866 | locatepart.Size = VT(0.5,0.5,0.5) | |
1867 | locatepart.Position = End | |
1868 | locatepart.CanCollide = false | |
1869 | locatepart.Anchored = true | |
1870 | locatepart.Name = "L0" | |
1871 | locatepart.Transparency = 1 | |
1872 | if SpawnPosition then | |
1873 | CreateSwirl(0,2,false,0.05,25,CF(End),"Really black") | |
1874 | local spike = Instance.new("CornerWedgePart") | |
1875 | spike.Size = Vector3.new(1,15,1) | |
1876 | spike.Material = "Neon" | |
1877 | spike.Color = "Really black" | |
1878 | spike.Anchored = true | |
1879 | spike.CanCollide = false | |
1880 | spike.CFrame = CFrame.new(End.X,SpawnPosition.Y+2,End.Z) | |
1881 | spike.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15)) | |
1882 | spike.Name = HITFLOOR.Name.."Spike" | |
1883 | CreateSound("341300954", spike, 1, (math.random(8,12)/10)) | |
1884 | for i = 1, 3 do | |
1885 | local overlay = spike:Clone() | |
1886 | overlay.Size = overlay.Size + Vector3.new(0.2,0.2*2,0.2) | |
1887 | overlay.CFrame = spike.CFrame | |
1888 | overlay.Parent = nil | |
1889 | overlay.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15)) | |
1890 | overlay.Parent = Effects | |
1891 | table.insert(Effects2,{overlay,"Disappear",0.01,0,0,0,0}) | |
1892 | end | |
1893 | spike.Size = Vector3.new(2,25,2) | |
1894 | spike.Parent = Effects | |
1895 | table.insert(Effects2,{spike,"Disappear",0.01,0,0,0,0}) | |
1896 | end | |
1897 | Swait(5) | |
1898 | game:GetService("Debris"):AddItem(locatepart, 5) | |
1899 | end | |
1900 | end | |
1901 | end)) | |
1902 | end | |
1903 | wait(0.05) | |
1904 | end | |
1905 | for i=0, 6, 0.1 / Animation_Speed*5 do | |
1906 | Swait() | |
1907 | RootPart.Anchored = true | |
1908 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1909 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1910 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1911 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1912 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5) | |
1913 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5) | |
1914 | end | |
1915 | ATTACK = false | |
1916 | Rooted = false | |
1917 | end | |
1918 | end | |
1919 | ||
1920 | function RavagingOverthrower() | |
1921 | ATTACK = true | |
1922 | Rooted = true | |
1923 | chatfunc("I will show you what is death!!!",4) | |
1924 | for i=0, 1, 0.1 / Animation_Speed do | |
1925 | Swait() | |
1926 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1927 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1928 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1929 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1930 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1931 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1932 | end | |
1933 | CreateSound("348663022", Torso, 5, 1) | |
1934 | local StartPos = RootPart.CFrame * CF(0,0,-10).p | |
1935 | for i = 1, 5 do | |
1936 | MagicSphere2(25,25,CF(StartPos),"Really red") | |
1937 | Swait(15) | |
1938 | end | |
1939 | local soundeffect = IT("Sound",Torso) | |
1940 | soundeffect.SoundId = "rbxassetid://487186990" | |
1941 | soundeffect.Looped = true | |
1942 | soundeffect.Volume = 10 | |
1943 | soundeffect.Playing = true | |
1944 | repeat | |
1945 | turnto(Mouse.Hit.p) | |
1946 | MagicSphere2(25,25,CF(StartPos),"Really red") | |
1947 | MagicSphere(25/10,25,CF(StartPos),"Really red") | |
1948 | for i = 1, 3 do | |
1949 | CreateSwirl(0,25,true,-0.2,5,CF(StartPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1950 | end | |
1951 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
1952 | local distance = (StartPos - RayPos).magnitude | |
1953 | local RayBeam = IT("Part",Effects) | |
1954 | RayBeam.Material = "Neon" | |
1955 | RayBeam.Anchored = true | |
1956 | RayBeam.BrickColor = BRICKC"Really red" | |
1957 | local mesh = IT("SpecialMesh",RayBeam) | |
1958 | mesh.MeshType = "Cylinder" | |
1959 | RayBeam.Size = Vector3.new(distance+10, math.random(10,15), math.random(10,15)) | |
1960 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
1961 | MagicSphere(15,5,CF(RayPos),"Really red") | |
1962 | killnearest(RayPos,15,100) | |
1963 | for i = 1, 3 do | |
1964 | CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1965 | end | |
1966 | Swait() | |
1967 | if KEYHOLD == false then | |
1968 | coroutine.resume(coroutine.create(function() | |
1969 | for i = 1, 30 do | |
1970 | RayBeam.Transparency = i/30 | |
1971 | Swait() | |
1972 | end | |
1973 | RayBeam:remove() | |
1974 | end)) | |
1975 | else | |
1976 | RayBeam:remove() | |
1977 | end | |
1978 | until KEYHOLD == false | |
1979 | soundeffect:remove() | |
1980 | ATTACK = false | |
1981 | Rooted = false | |
1982 | end | |
1983 | ||
1984 | function dodadance() | |
1985 | ATTACK = true | |
1986 | Rooted = true | |
1987 | DANCE = true | |
1988 | sick:Stop() | |
1989 | sick2:Play() | |
1990 | local Animation_Speed2 = 1.5 | |
1991 | HName.Text = "Change!" | |
1992 | repeat | |
1993 | for i=0, 1.3, 0.1 / Animation_Speed2 do | |
1994 | Swait() | |
1995 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-15)), 0.15 / Animation_Speed2) | |
1996 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1997 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1998 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-180)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1999 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
2000 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
2001 | end | |
2002 | MagicSphere(5,15,Torso.CFrame,"Really red") | |
2003 | for i=0, 1.3, 0.1 / Animation_Speed2 do | |
2004 | Swait() | |
2005 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed2) | |
2006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
2007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
2009 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2010 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(-35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2011 | end | |
2012 | MagicSphere(5,15,Torso.CFrame,"Really red") | |
2013 | until DANCE == false | |
2014 | HName.Text = "Satan's Killer" | |
2015 | sick:Play() | |
2016 | sick2:Stop() | |
2017 | ATTACK = false | |
2018 | Rooted = false | |
2019 | end | |
2020 | ||
2021 | function Warp() | |
2022 | MagicSphere2(10,5,Torso.CFrame,"Really red") | |
2023 | RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z)) | |
2024 | CreateSound("282061340", Torso, 2, 1) | |
2025 | MagicSphere(5,5,Torso.CFrame,"Really red") | |
2026 | for i = 1, 3 do | |
2027 | CreateSwirl(0,5,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
2028 | end | |
2029 | killnearest(Torso.Position,12,25) | |
2030 | Swait() | |
2031 | turnto(Mouse.Hit.p) | |
2032 | end | |
2033 | ||
2034 | --//=================================\\ | |
2035 | --|| ASSIGN THINGS TO KEYS | |
2036 | --\\=================================// | |
2037 | ||
2038 | Humanoid.Changed:connect(function(Jump) | |
2039 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
2040 | Humanoid.Jump = false | |
2041 | end | |
2042 | end) | |
2043 | ||
2044 | function MouseDown(Mouse) | |
2045 | if ATTACK == false then | |
2046 | end | |
2047 | end | |
2048 | ||
2049 | function MouseUp(Mouse) | |
2050 | HOLD = false | |
2051 | end | |
2052 | ||
2053 | function KeyDown(Key) | |
2054 | KEYHOLD = true | |
2055 | if Key == "e" and ATTACK == false then | |
2056 | TyranyCannon() | |
2057 | wait(1) | |
2058 | Detonate() | |
2059 | end | |
2060 | ||
2061 | if Key == "e" and ATTACK == false then | |
2062 | EarthShatter() | |
2063 | end | |
2064 | ||
2065 | if Key == "r" and ATTACK == false then | |
2066 | RavagingOverthrower() | |
2067 | end | |
2068 | ||
2069 | if Key == "q" and ATTACK == false then | |
2070 | Warp() | |
2071 | end | |
2072 | ||
2073 | if Key == "t" and ATTACK == false then | |
2074 | CreateSound("159882644", Head, 5, 0.8) | |
2075 | end | |
2076 | ||
2077 | if Key == "t" and DANCE == true then | |
2078 | CreateSound("887591869", Head, 5, 1) | |
2079 | end | |
2080 | ||
2081 | if Key == "x" and (ATTACK == false or DANCE == true) then | |
2082 | if DANCE == false then | |
2083 | dodadance() | |
2084 | elseif DANCE == true then | |
2085 | DANCE = false | |
2086 | end | |
2087 | end | |
2088 | end | |
2089 | ||
2090 | function KeyUp(Key) | |
2091 | KEYHOLD = false | |
2092 | end | |
2093 | ||
2094 | Mouse.Button1Down:connect(function(NEWKEY) | |
2095 | MouseDown(NEWKEY) | |
2096 | end) | |
2097 | Mouse.Button1Up:connect(function(NEWKEY) | |
2098 | MouseUp(NEWKEY) | |
2099 | end) | |
2100 | Mouse.KeyDown:connect(function(NEWKEY) | |
2101 | KeyDown(NEWKEY) | |
2102 | end) | |
2103 | Mouse.KeyUp:connect(function(NEWKEY) | |
2104 | KeyUp(NEWKEY) | |
2105 | end) | |
2106 | ||
2107 | --//=================================\\ | |
2108 | --\\=================================// | |
2109 | ||
2110 | ||
2111 | function unanchor() | |
2112 | if UNANCHOR == true then | |
2113 | g = Character:GetChildren() | |
2114 | for i = 1, #g do | |
2115 | if g[i].ClassName == "Part" then | |
2116 | g[i].Anchored = false | |
2117 | end | |
2118 | end | |
2119 | end | |
2120 | end | |
2121 | ||
2122 | ||
2123 | --//=================================\\ | |
2124 | --|| WRAP THE WHOLE SCRIPT UP | |
2125 | --\\=================================// | |
2126 | ||
2127 | Humanoid.Changed:connect(function(Jump) | |
2128 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
2129 | Humanoid.Jump = false | |
2130 | end | |
2131 | end) | |
2132 | ||
2133 | ANIMATE.Parent = nil | |
2134 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2135 | IDLEANIMATION:Play() | |
2136 | ||
2137 | while true do | |
2138 | Swait() | |
2139 | SINE = SINE + CHANGE | |
2140 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2141 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2142 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2143 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2144 | local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16) | |
2145 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2146 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2147 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2148 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2149 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2150 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2151 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2152 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2153 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2154 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2155 | end | |
2156 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2157 | ANIM = "Jump" | |
2158 | if ATTACK == false then | |
2159 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2160 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2161 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2162 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2163 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2164 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2165 | end | |
2166 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2167 | ANIM = "Fall" | |
2168 | if ATTACK == false then | |
2169 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2170 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2171 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2172 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2173 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2174 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2175 | end | |
2176 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2177 | ANIM = "Idle" | |
2178 | if ATTACK == false then | |
2179 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
2180 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed) | |
2181 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(30)) * ANGLES(RAD(3), RAD(25), RAD(5)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2182 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2183 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed) | |
2184 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed) | |
2185 | end | |
2186 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2187 | ANIM = "Walk" | |
2188 | WALK = WALK + 1 / Animation_Speed | |
2189 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2190 | WALK = 0 | |
2191 | if WALKINGANIM == true then | |
2192 | WALKINGANIM = false | |
2193 | elseif WALKINGANIM == false then | |
2194 | WALKINGANIM = true | |
2195 | end | |
2196 | end | |
2197 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2198 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2199 | if ATTACK == false then | |
2200 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
2201 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed) | |
2202 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2203 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2204 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2205 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2206 | end | |
2207 | end | |
2208 | if #Effects2>0 then | |
2209 | for e=1,#Effects2 do | |
2210 | if Effects2[e]~=nil then | |
2211 | local Thing=Effects2[e] | |
2212 | if Thing~=nil then | |
2213 | local Part=Thing[1] | |
2214 | local Mode=Thing[2] | |
2215 | local Delay=Thing[3] | |
2216 | local IncX=Thing[4] | |
2217 | local IncY=Thing[5] | |
2218 | local IncZ=Thing[6] | |
2219 | local Part2=Thing[8] | |
2220 | if Thing[1].Transparency<=1 then | |
2221 | if Thing[2]=="Block1" then | |
2222 | Thing[1].CFrame=Thing[1].CFrame | |
2223 | Mesh=Thing[1].Mesh | |
2224 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2225 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2226 | elseif Thing[2]=="Cylinder" then | |
2227 | Mesh=Thing[1].Mesh | |
2228 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2229 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2230 | elseif Thing[2]=="Blood" then | |
2231 | Mesh=Thing[7] | |
2232 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
2233 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2234 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2235 | elseif Thing[2]=="Elec" then | |
2236 | Mesh=Thing[1].Mesh | |
2237 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
2238 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2239 | elseif Thing[2]=="Disappear" then | |
2240 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2241 | end | |
2242 | else | |
2243 | Part.Parent=nil | |
2244 | table.remove(Effects2,e) | |
2245 | end | |
2246 | end | |
2247 | end | |
2248 | end | |
2249 | end | |
2250 | unanchor() | |
2251 | Humanoid.MaxHealth = "inf" | |
2252 | Humanoid.Health = "inf" | |
2253 | Humanoid.Name = "Ravage" | |
2254 | if Rooted == false then | |
2255 | Disable_Jump = false | |
2256 | Humanoid.WalkSpeed = Speed | |
2257 | elseif Rooted == true then | |
2258 | Disable_Jump = true | |
2259 | Humanoid.WalkSpeed = 0 | |
2260 | end | |
2261 | q = Character:GetChildren() | |
2262 | for u = 1, #q do | |
2263 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
2264 | q[u]:remove() | |
2265 | elseif q[u].ClassName == "Shirt" then | |
2266 | q[u]:Destroy() | |
2267 | elseif q[u].ClassName == "Pants" then | |
2268 | q[u]:Destroy() | |
2269 | elseif q[u].ClassName == "CharacterMesh" then | |
2270 | q[u]:remove() | |
2271 | elseif q[u].ClassName == "ShirtGraphic" then | |
2272 | q[u]:remove() | |
2273 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
2274 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
2275 | end | |
2276 | end | |
2277 | if Head:FindFirstChild("face") then | |
2278 | Head.face:remove() | |
2279 | end | |
2280 | if Head:FindFirstChild("Died") then | |
2281 | Head.Died:remove() | |
2282 | end | |
2283 | bomb = Bombs:GetChildren() | |
2284 | for lol = 1, #bomb do | |
2285 | if bomb[lol].ClassName == "Part" then | |
2286 | MagicSphere2(2,5,bomb[lol].CFrame,"Really black") | |
2287 | end | |
2288 | end | |
2289 | end | |
2290 | ||
2291 | --//=================================\\ | |
2292 | --\\=================================// |