SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | --[[ | |
143 | ___ ___ _ _ ___ ___ _ | |
144 | | \/ | (_) ( ) | \/ | | | | |
145 | | . . | __ _ _ ___ _ __ __ _|/ ___ | . . | __ _ ___| | __ | |
146 | | |\/| |/ _` | |/ _ \| '__/ _` | / __| | |\/| |/ _` / __| |/ / | |
147 | | | | | (_| | | (_) | | | (_| | \__ \ | | | | (_| \__ \ < | |
148 | \_| |_/\__,_| |\___/|_| \__,_| |___/ \_| |_/\__,_|___/_|\_\ | |
149 | _/ | | |
150 | |__/ | |
151 | _____ _ _ _ _ ___ _ | |
152 | / ___| | | | | | | / (_) | | | |
153 | \ `--.| | ___ _| | | | |/ / _ __| | | |
154 | `--. \ |/ / | | | | | | \| |/ _` | | |
155 | /\__/ / <| |_| | | | | |\ \ | (_| | | |
156 | \____/|_|\_\\__,_|_|_| \_| \_/_|\__,_| | |
157 | --]] | |
158 | ||
159 | --{Majora's Mask: Skull Kid}-- | |
160 | --{This is actually from Hyrule Warriors}-- | |
161 | --Made by Zalgo_exe/Kunoleo/SlenderMan2095 (They're all my usernames) | |
162 | --Note: If you somehow got this script and leak it, I will get seriously pissed. (Maybe.. just credit me ok? Then it'll be fine.) | |
163 | warn("Loading Script") | |
164 | wait(0.2) | |
165 | intro = true | |
166 | sine = 0 | |
167 | change = 1 | |
168 | sprint=false | |
169 | local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse(); | |
170 | local Torso = Character:FindFirstChild("Torso") | |
171 | local rootPart = Character:FindFirstChild("HumanoidRootPart") | |
172 | local Humanoid = Character:FindFirstChild("Humanoid") | |
173 | local Head = Character:FindFirstChild("Head") | |
174 | local Right_Arm = Character:FindFirstChild("Right Arm") | |
175 | local Left_Arm = Character:FindFirstChild("Left Arm") | |
176 | local Right_Leg = Character:FindFirstChild("Right Leg") | |
177 | local Left_Leg = Character:FindFirstChild("Left Leg") | |
178 | local Right_Shoulder = Torso:FindFirstChild("Right Shoulder") | |
179 | local Left_Shoulder = Torso:FindFirstChild("Left Shoulder") | |
180 | local Right_Hip = Torso:FindFirstChild("Right Hip") | |
181 | local Left_Hip = Torso:FindFirstChild("Left Hip") | |
182 | local Neck = Torso:FindFirstChild("Neck") | |
183 | local rootPart = Character:FindFirstChild("HumanoidRootPart") | |
184 | local rootJoint = rootPart:FindFirstChild("RootJoint") | |
185 | local CurrentIdle = "Idling1" | |
186 | local Degree = 0.0175438596491228 | |
187 | local canremove = false | |
188 | local debounce = false | |
189 | local UIService=game:GetService'UserInputService' | |
190 | _G.SongName = math.random(1,9025232) | |
191 | sin = math.sin | |
192 | Right_Leg.FormFactor = "Custom"; | |
193 | Left_Leg.FormFactor = "Custom"; | |
194 | rootPart.Archivable = true; | |
195 | rootJoint.Archivable = true; | |
196 | c_new = CFrame.new; | |
197 | c_angles = CFrame.Angles; | |
198 | i_new = Instance.new | |
199 | Humanoid:ClearAllChildren(); | |
200 | local isAttacking = false | |
201 | local isSprinting = false | |
202 | local Animations = false | |
203 | local Angle = 0 | |
204 | local Axis = 0 | |
205 | local angleSpeed = 1 | |
206 | local axisSpeed = angleSpeed | |
207 | local currentAnim | |
208 | local levetatingheight = 3 | |
209 | local WalkType = "Ground" | |
210 | ||
211 | Humanoid.MaxHealth = 1000 | |
212 | Humanoid.Health = Humanoid.MaxHealth | |
213 | ||
214 | Theme = Instance.new("Sound") | |
215 | Theme.Parent = Character.Torso | |
216 | Theme.SoundId = "rbxassetid://269366083" | |
217 | Theme.Volume = 9.6 | |
218 | Theme.Looped = true | |
219 | Theme.Pitch = 1 | |
220 | Theme:Play() | |
221 | ||
222 | function swait(num) | |
223 | if num == 0 or num == nil then | |
224 | game:GetService("RunService").Stepped:wait(0) | |
225 | else | |
226 | for i = 0, num do | |
227 | game:GetService("RunService").Stepped:wait(0) | |
228 | end | |
229 | end | |
230 | end | |
231 | ||
232 | for i,v in pairs(Character:GetChildren()) do | |
233 | if v:IsA('ShirtGraphic') then | |
234 | v:Destroy() | |
235 | end | |
236 | end | |
237 | ||
238 | for i,v in pairs(Character:GetChildren()) do | |
239 | if v:IsA('CharacterMesh') then | |
240 | v:Destroy() | |
241 | end | |
242 | end | |
243 | ||
244 | for i,v in pairs(Character:GetChildren()) do | |
245 | if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then | |
246 | v:Destroy() | |
247 | elseif v:IsA('Part') and v.Name=='Head' then | |
248 | v.face:Destroy() | |
249 | end | |
250 | end | |
251 | ||
252 | ||
253 | Character['Body Colors'].HeadColor=BrickColor.new('Reddish brown') | |
254 | Character['Body Colors'].TorsoColor=BrickColor.new('Reddish brown') | |
255 | Character['Body Colors'].RightArmColor=BrickColor.new('Reddish brown') | |
256 | Character['Body Colors'].LeftArmColor=BrickColor.new('Reddish brown') | |
257 | Character['Body Colors'].RightLegColor=BrickColor.new('Reddish brown') | |
258 | Character['Body Colors'].LeftLegColor=BrickColor.new('Reddish brown') | |
259 | ||
260 | shirt = Instance.new("Shirt",Character) | |
261 | pants = Instance.new("Pants",Character) | |
262 | shirt.ShirtTemplate = "rbxassetid://18622157" | |
263 | pants.PantsTemplate = "rbxassetid://18616286" | |
264 | ||
265 | Humanoid.DisplayDistanceType='None' | |
266 | ||
267 | Head.Transparency = 1 | |
268 | local _Head = Instance.new("Part",Head) | |
269 | _Head.Name = "_Head" | |
270 | _Head.Shape = Enum.PartType.Block | |
271 | _Head.CanCollide = false | |
272 | _Head.BrickColor = BrickColor.new("Reddish brown") | |
273 | _Head.Transparency = 0 | |
274 | _Head.Material = "Wood" | |
275 | _Head.Size = Vector3.new(1.5, 1.5, 1.5) | |
276 | _Head.TopSurface = Enum.SurfaceType.Smooth | |
277 | _Head.BottomSurface = Enum.SurfaceType.Smooth local Weld = Instance.new("Weld", _Head) | |
278 | Weld.Part0 = Head | |
279 | Weld.Part1 = _Head | |
280 | Weld.C1 = CFrame.new(0,-0.15,0) | |
281 | _HeadMesh = Instance.new("SpecialMesh",_Head) | |
282 | _HeadMesh.MeshType = "Sphere" | |
283 | _HeadMesh.Scale = Vector3.new(1,1,1) | |
284 | ||
285 | local Tael = Instance.new("Part",Character) | |
286 | Tael.Name = "Tael" | |
287 | Tael.Shape = Enum.PartType.Block | |
288 | Tael.CanCollide = false | |
289 | Tael.BrickColor = BrickColor.new("Dark indigo") | |
290 | Tael.Transparency = 0 | |
291 | Tael.Material = "Neon" | |
292 | Tael.Size = Vector3.new(0.5, 0.5, 0.5) | |
293 | Tael.TopSurface = Enum.SurfaceType.Smooth | |
294 | Tael.BottomSurface = Enum.SurfaceType.Smooth | |
295 | local Tael2 = Instance.new("Weld", Tael) | |
296 | Tael2.Part0 = rootPart | |
297 | Tael2.Part1 = Tael | |
298 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
299 | Mesh = Instance.new("SpecialMesh",Tael) | |
300 | Mesh.MeshType = "Sphere" | |
301 | Mesh.Scale = Vector3.new(1,1,1) | |
302 | ||
303 | local Tatl = Instance.new("Part",Character) | |
304 | Tatl.Name = "Tatl" | |
305 | Tatl.Shape = Enum.PartType.Block | |
306 | Tatl.CanCollide = false | |
307 | Tatl.BrickColor = BrickColor.new("New Yeller") | |
308 | Tatl.Transparency = 0 | |
309 | Tatl.Material = "Neon" | |
310 | Tatl.Size = Vector3.new(0.5, 0.5, 0.5) | |
311 | Tatl.TopSurface = Enum.SurfaceType.Smooth | |
312 | Tatl.BottomSurface = Enum.SurfaceType.Smooth | |
313 | local Tatl2 = Instance.new("Weld", Tatl) | |
314 | Tatl2.Part0 = rootPart | |
315 | Tatl2.Part1 = Tatl | |
316 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
317 | Mesh = Instance.new("SpecialMesh",Tatl) | |
318 | Mesh.MeshType = "Sphere" | |
319 | Mesh.Scale = Vector3.new(1,1,1) | |
320 | ||
321 | ||
322 | GUI = Instance.new("BillboardGui",Tael) | |
323 | GUI.Size = UDim2.new(1.3,0,1,0) | |
324 | GUI.MaxDistance = "inf" | |
325 | GUI.ExtentsOffset = Vector3.new(0,0.1,0) | |
326 | ||
327 | Wings = Instance.new("ImageLabel",GUI) | |
328 | Wings.Position = UDim2.new(0,0,0,0) | |
329 | Wings.Image = "rbxassetid://1345656252" | |
330 | Wings.BackgroundTransparency = 1 | |
331 | Wings.Size = UDim2.new(1,0,1,0) | |
332 | ||
333 | GUI2 = Instance.new("BillboardGui",Tatl) | |
334 | GUI2.Size = UDim2.new(1.3,0,1,0) | |
335 | GUI2.MaxDistance = "inf" | |
336 | GUI2.ExtentsOffset = Vector3.new(0,0.1,0) | |
337 | ||
338 | Wings2 = Instance.new("ImageLabel",GUI2) | |
339 | Wings2.Position = UDim2.new(0,0,0,0) | |
340 | Wings2.Image = "rbxassetid://1345656252" | |
341 | Wings2.BackgroundTransparency = 1 | |
342 | Wings2.Size = UDim2.new(1,0,1,0) | |
343 | ||
344 | coroutine.wrap(function() | |
345 | while true do | |
346 | for i = 1,5 do | |
347 | GUI.Size = GUI.Size - UDim2.new(0.1,0,0,0) | |
348 | GUI2.Size = GUI2.Size - UDim2.new(0.1,0,0,0) | |
349 | swait() | |
350 | end | |
351 | for i = 1,5 do | |
352 | GUI.Size = GUI.Size + UDim2.new(0.1,0,0,0) | |
353 | GUI2.Size = GUI2.Size + UDim2.new(0.1,0,0,0) | |
354 | swait() | |
355 | end | |
356 | end | |
357 | end)() | |
358 | ||
359 | ||
360 | atch0 = Instance.new("Attachment",Tatl) | |
361 | atch0.Position = Vector3.new(0,0,Tatl.Size.Z/2) | |
362 | atch1 = Instance.new("Attachment",Tatl) | |
363 | atch1.Position = Vector3.new(0,0,-Tatl.Size.Z/2) | |
364 | trail = Instance.new("Trail",Tatl) | |
365 | trail.Attachment0 = atch0 | |
366 | trail.Attachment1 = atch1 | |
367 | trail.Lifetime = 0.2 | |
368 | trail.Enabled = true | |
369 | trail.LightEmission = 1 | |
370 | trail.LightInfluence = 0 | |
371 | trail.FaceCamera = true | |
372 | trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
373 | trail.Color = ColorSequence.new(Color3.new(1,1,0)) | |
374 | trail.Transparency = NumberSequence.new(0,1) | |
375 | ||
376 | atch2 = Instance.new("Attachment",Tael) | |
377 | atch2.Position = Vector3.new(0,0,Tael.Size.Z/2) | |
378 | atch3 = Instance.new("Attachment",Tael) | |
379 | atch3.Position = Vector3.new(0,0,-Tael.Size.Z/2) | |
380 | trail2 = Instance.new("Trail",Tael) | |
381 | trail2.Attachment0 = atch2 | |
382 | trail2.Attachment1 = atch3 | |
383 | trail2.Lifetime = 0.2 | |
384 | trail2.Enabled = true | |
385 | trail2.LightEmission = 1 | |
386 | trail2.LightInfluence = 0 | |
387 | trail2.FaceCamera = true | |
388 | trail2.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
389 | trail2.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133)) | |
390 | trail2.Transparency = NumberSequence.new(0,1) | |
391 | ||
392 | Twinkles=Instance.new('ParticleEmitter',Tael) | |
393 | Twinkles.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133)) | |
394 | Twinkles.LightEmission=1 | |
395 | Twinkles.Texture='rbxassetid://187012669' | |
396 | Twinkles.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 0.05, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
397 | Twinkles.EmissionDirection='Back' | |
398 | Twinkles.Lifetime = NumberRange.new(0.5) | |
399 | Twinkles.Rate = 10 | |
400 | Twinkles.SpreadAngle=Vector2.new(-90,90) | |
401 | ||
402 | Twinkles=Instance.new('ParticleEmitter',Tatl) | |
403 | Twinkles.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) | |
404 | Twinkles.LightEmission=1 | |
405 | Twinkles.Texture='rbxassetid://187012669' | |
406 | Twinkles.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 0.05, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
407 | Twinkles.EmissionDirection='Back' | |
408 | Twinkles.Lifetime = NumberRange.new(0.5) | |
409 | Twinkles.Rate = 10 | |
410 | Twinkles.SpreadAngle=Vector2.new(-90,90) | |
411 | ||
412 | local Particle = Instance.new("ParticleEmitter",Tael) | |
413 | Particle.Enabled = true | |
414 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
415 | Particle.LightEmission = 1 | |
416 | Particle.Rate = 2000 | |
417 | Particle.ZOffset = 1 | |
418 | Particle.Lifetime = NumberRange.new(0.5) | |
419 | Particle.Speed = NumberRange.new(1) | |
420 | Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
421 | Particle.Rotation = NumberRange.new(-180, 180) | |
422 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
423 | Particle.Texture = "http://www.roblox.com/asset/?id=303194966" | |
424 | Particle.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133),Color3.fromRGB(61, 21, 133)) | |
425 | Particle.VelocitySpread = 360 | |
426 | Particle.LockedToPart = false | |
427 | ||
428 | local Particle = Instance.new("ParticleEmitter",Tatl) | |
429 | Particle.Enabled = true | |
430 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
431 | Particle.LightEmission = 1 | |
432 | Particle.Rate = 2000 | |
433 | Particle.ZOffset = 1 | |
434 | Particle.Lifetime = NumberRange.new(0.5) | |
435 | Particle.Speed = NumberRange.new(1) | |
436 | Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2, 0), NumberSequenceKeypoint.new(1, 0.5, 0)}) | |
437 | Particle.Rotation = NumberRange.new(-180, 180) | |
438 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
439 | Particle.Texture = "http://www.roblox.com/asset/?id=303194966" | |
440 | Particle.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0),Color3.fromRGB(255, 255, 0)) | |
441 | Particle.VelocitySpread = 360 | |
442 | Particle.LockedToPart = false | |
443 | ||
444 | ||
445 | local Beak = Instance.new("Part",Head) | |
446 | Beak.Name = "Beak" | |
447 | Beak.Shape = Enum.PartType.Ball | |
448 | Beak.CanCollide = false | |
449 | Beak.Color = Color3.new(0,0,0) | |
450 | Beak.Transparency = 0 | |
451 | Beak.Material = "SmoothPlastic" | |
452 | Beak.Size = Vector3.new(0.1, 0.1, 0.1) | |
453 | Beak.TopSurface = Enum.SurfaceType.Smooth | |
454 | Beak.BottomSurface = Enum.SurfaceType.Smooth | |
455 | local Weld = Instance.new("Weld", Beak) | |
456 | Weld.Part0 = Head | |
457 | Weld.Part1 = Beak | |
458 | Weld.C1 = CFrame.new(0,0.1,0.7)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)) | |
459 | BeakMesh = Instance.new("FileMesh",Beak) | |
460 | BeakMesh.MeshId = "http://www.roblox.com/asset/?id=1241049633" | |
461 | BeakMesh.TextureId = "http://www.roblox.com/asset/?id=1179215218" | |
462 | BeakMesh.Scale = Vector3.new(0.5,0.15,0.1) | |
463 | BeakMesh.VertexColor = Vector3.new(1,0.5,0) | |
464 | ||
465 | local Mask = Instance.new("Part",Head) | |
466 | Mask.Name = "Majora's Mask" | |
467 | Mask.Shape = Enum.PartType.Ball | |
468 | Mask.CanCollide = false | |
469 | Mask.Color = Color3.new(0,0,0) | |
470 | Mask.Transparency = 1 | |
471 | Mask.Material = "SmoothPlastic" | |
472 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
473 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
474 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
475 | local MaskWeld = Instance.new("Weld", Mask) | |
476 | MaskWeld.Part0 = Head | |
477 | MaskWeld.Part1 = Mask | |
478 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
479 | MaskMesh = Instance.new("FileMesh",Mask) | |
480 | MaskMesh.MeshId = "http://www.roblox.com/asset/?id=2054429467" | |
481 | MaskMesh.TextureId = "http://www.roblox.com/asset/?id=2054436209" | |
482 | MaskMesh.Scale = Vector3.new(0.38,0.38,0.38) | |
483 | ||
484 | local Ocarina = Instance.new("Part",Character) | |
485 | Ocarina.Name = "Link's Ocarina" | |
486 | Ocarina.Shape = Enum.PartType.Ball | |
487 | Ocarina.CanCollide = false | |
488 | Ocarina.Color = Color3.new(0,0,0) | |
489 | Ocarina.Transparency = 1 | |
490 | Ocarina.Material = "SmoothPlastic" | |
491 | Ocarina.Size = Vector3.new(0.1, 0.1, 0.1) | |
492 | Ocarina.TopSurface = Enum.SurfaceType.Smooth | |
493 | Ocarina.BottomSurface = Enum.SurfaceType.Smooth | |
494 | local OcarinaWeld = Instance.new("Weld", Ocarina) | |
495 | OcarinaWeld.Part0 = Left_Arm | |
496 | OcarinaWeld.Part1 = Ocarina | |
497 | OcarinaWeld.C1 = CFrame.new(-0.2,0,1)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
498 | OcarinaMesh = Instance.new("FileMesh",Ocarina) | |
499 | OcarinaMesh.MeshId = "http://www.roblox.com/asset/?id=1591417841" | |
500 | OcarinaMesh.TextureId = "http://www.roblox.com/asset/?id=1591417870" | |
501 | OcarinaMesh.Scale = Vector3.new(0.05,0.05,0.05) | |
502 | ||
503 | local Hat = Instance.new("Part",Head) | |
504 | Hat.Name = "Hat" | |
505 | Hat.Shape = Enum.PartType.Ball | |
506 | Hat.CanCollide = false | |
507 | Hat.Color = Color3.new(0,0,0) | |
508 | Hat.Transparency = 0 | |
509 | Hat.Material = "SmoothPlastic" | |
510 | Hat.Size = Vector3.new(0.1, 0.1, 0.1) | |
511 | Hat.TopSurface = Enum.SurfaceType.Smooth | |
512 | Hat.BottomSurface = Enum.SurfaceType.Smooth | |
513 | local Weld = Instance.new("Weld", Hat) | |
514 | Weld.Part0 = Head | |
515 | Weld.Part1 = Hat | |
516 | Weld.C1 = CFrame.new(0,-1,0.1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(0),math.rad(0)) | |
517 | HatMesh = Instance.new("FileMesh",Hat) | |
518 | HatMesh.MeshId = "http://www.roblox.com/asset/?id=12811687" | |
519 | HatMesh.TextureId = "http://www.roblox.com/asset/?id=12811694" | |
520 | HatMesh.Scale = Vector3.new(1.2,1.4,1.4) | |
521 | ||
522 | local Poncho = Instance.new("Part",Torso) | |
523 | Poncho.Name = "Poncho" | |
524 | Poncho.Shape = Enum.PartType.Ball | |
525 | Poncho.CanCollide = false | |
526 | Poncho.Color = Color3.fromRGB(157, 168, 0) | |
527 | Poncho.Transparency = 0 | |
528 | Poncho.Material = "SmoothPlastic" | |
529 | Poncho.Size = Vector3.new(0.1, 0.1, 0.1) | |
530 | Poncho.TopSurface = Enum.SurfaceType.Smooth | |
531 | Poncho.BottomSurface = Enum.SurfaceType.Smooth | |
532 | local Weld = Instance.new("Weld", Poncho) | |
533 | Weld.Part0 = Torso | |
534 | Weld.Part1 = Poncho | |
535 | Weld.C1 = CFrame.new(0.25,-0.05,0.45)*CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-90),math.rad(0)) | |
536 | PonchoMesh = Instance.new("FileMesh",Poncho) | |
537 | PonchoMesh.MeshId = "http://www.roblox.com/asset/?id=2057076845" | |
538 | --PonchoMesh.TextureId = "http://www.roblox.com/asset/?id=12811694" | |
539 | PonchoMesh.Scale = Vector3.new(0.25,0.2,0.2) | |
540 | ||
541 | local BodMesh = Instance.new("CharacterMesh", Character) | |
542 | BodMesh.BodyPart = "Torso" | |
543 | BodMesh.MeshId = "27111894" | |
544 | local BodMesh = Instance.new("CharacterMesh", Character) | |
545 | BodMesh.BodyPart = "RightArm" | |
546 | BodMesh.MeshId = "27111864" | |
547 | local BodMesh = Instance.new("CharacterMesh", Character) | |
548 | BodMesh.BodyPart = "LeftArm" | |
549 | BodMesh.MeshId = "27111419" | |
550 | local BodMesh = Instance.new("CharacterMesh", Character) | |
551 | BodMesh.BodyPart = "RightLeg" | |
552 | BodMesh.MeshId = "27111882" | |
553 | local BodMesh = Instance.new("CharacterMesh", Character) | |
554 | BodMesh.BodyPart = "LeftLeg" | |
555 | BodMesh.MeshId = "27111857" | |
556 | ||
557 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
558 | wld = Instance.new("Weld", wp1) | |
559 | wld.Part0 = wp0 | |
560 | wld.Part1 = wp1 | |
561 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
562 | return wld | |
563 | end | |
564 | ||
565 | function noOutline(part) | |
566 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
567 | end | |
568 | ||
569 | local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent) | |
570 | local partie = i_new("Part",parent) | |
571 | partie.Name=Name | |
572 | partie.BrickColor = BrickColor.new(Color) | |
573 | partie.Material = Material | |
574 | partie.Shape = Shape | |
575 | partie.Transparency = Transparency | |
576 | partie.Size = Size | |
577 | partie.CFrame = CFrame | |
578 | partie.CanCollide = CanCollide | |
579 | partie.Anchored = Anchored | |
580 | return partie | |
581 | end | |
582 | ||
583 | local REye=Part('REye','New Yeller','Neon',0,'Ball',Vector3.new(.15,.15,.15),CFrame.new(0,0,0),false,false,Character) | |
584 | newWeld(Head,REye,.305,.13,-.655) | |
585 | local LEye=Part('LEye','New Yeller','Neon',0,'Ball',Vector3.new(.15,.15,.15),CFrame.new(0,0,0),false,false,Character) | |
586 | newWeld(Head,LEye,-.305,.13,-.655) | |
587 | local REye=Part('REye','CGA brown','Neon',0,'Ball',Vector3.new(.2,.2,.2),CFrame.new(0,0,0),false,false,Character) | |
588 | newWeld(Head,REye,.3,.13,-.625) | |
589 | local LEye=Part('LEye','CGA brown','Neon',0,'Ball',Vector3.new(.2,.2,.2),CFrame.new(0,0,0),false,false,Character) | |
590 | newWeld(Head,LEye,-.3,.13,-.625) | |
591 | ||
592 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
593 | local mesh = i_new(Mesh) | |
594 | mesh.Parent = part | |
595 | if Mesh == "SpecialMesh" then | |
596 | mesh.MeshType = meshtype | |
597 | mesh.MeshId = meshid | |
598 | end | |
599 | mesh.Offset = offset | |
600 | mesh.Scale = scale | |
601 | return mesh | |
602 | end | |
603 | ||
604 | function findCloseHumanoid(centre, distance) | |
605 | local tab = {} | |
606 | for _, child in pairs(game.Workspace:GetChildren()) do | |
607 | if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then | |
608 | local vtors = child.Torso | |
609 | local mag = math.abs((vtors.Position - centre).magnitude) | |
610 | if distance >= mag then | |
611 | table.insert(tab, child.Humanoid) | |
612 | end | |
613 | end | |
614 | end | |
615 | return tab | |
616 | end | |
617 | ||
618 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
619 | if SinglePlayer then | |
620 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
621 | end | |
622 | local List = {} | |
623 | for i, v in pairs(workspace:GetChildren()) do | |
624 | if v:IsA("Model") then | |
625 | if v:findFirstChild("Torso") then | |
626 | if v ~= Character then | |
627 | if (v.Torso.Position - Position).magnitude <= Distance then | |
628 | table.insert(List, v) | |
629 | end | |
630 | end | |
631 | end | |
632 | end | |
633 | end | |
634 | return List | |
635 | end | |
636 | ||
637 | --[[ | |
638 | S = Instance.new("Sound") | |
639 | S.Parent = Character.Torso | |
640 | S.SoundId = "rbxassetid://337667089" | |
641 | S.Volume = 10 | |
642 | S.Looped = false | |
643 | S.Pitch = 1 | |
644 | S:Play() | |
645 | --]] | |
646 | ||
647 | mouse = Player:GetMouse() | |
648 | ||
649 | ||
650 | attack = false -- Self Explanatory | |
651 | attack2 = false -- Disables Movement | |
652 | fattack = false -- Fairies Stop Buzzing and attacks | |
653 | ||
654 | local Effects = Instance.new("Folder",Character) | |
655 | Effects.Name = "Effects and Decoys" | |
656 | ||
657 | function Intro() | |
658 | attack = true | |
659 | attack2 = true | |
660 | Animations = true | |
661 | ||
662 | local Decoy = Instance.new("Part",Head) | |
663 | Decoy.Name = "Majora's Decoy" | |
664 | Decoy.Shape = Enum.PartType.Ball | |
665 | Decoy.CanCollide = false | |
666 | Decoy.Anchored = true | |
667 | Decoy.Color = Color3.new(0,0,0) | |
668 | Decoy.Transparency = 0 | |
669 | Decoy.Material = "SmoothPlastic" | |
670 | Decoy.Size = Vector3.new(0.1, 0.1, 0.1) | |
671 | Decoy.TopSurface = Enum.SurfaceType.Smooth | |
672 | Decoy.BottomSurface = Enum.SurfaceType.Smooth | |
673 | Decoy.CFrame = rootPart.CFrame * CFrame.new(0,-2.8,-2) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-200),math.rad(0)) | |
674 | Mesh = Instance.new("FileMesh",Decoy) | |
675 | Mesh.MeshId = "http://www.roblox.com/asset/?id=2054429467" | |
676 | Mesh.TextureId = "http://www.roblox.com/asset/?id=2054436209" | |
677 | Mesh.Scale = Vector3.new(0.38,0.38,0.38) | |
678 | ||
679 | for i = 0,1,0.01 do | |
680 | Decoy.CFrame = rootPart.CFrame * CFrame.new(0,-2.8,-2) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-200),math.rad(0)) | |
681 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
682 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
683 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.sin(sine/4)/3,math.rad(0),math.rad(0)), 0.15) | |
684 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(-math.sin(sine/4)/3,math.rad(0),math.rad(0)), 0.15) | |
685 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine/7.5)/15, 10 + i*-10) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15) | |
686 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, 0 - math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/7.5)/15,math.rad(0), math.rad(0)), 0.15) | |
687 | swait() | |
688 | end | |
689 | S = Instance.new("Sound") | |
690 | S.Parent = Character.Torso | |
691 | S.SoundId = "rbxassetid://2057274656" | |
692 | S.Volume = 10 | |
693 | S.Looped = false | |
694 | S.Pitch = 1 | |
695 | S:Play() | |
696 | for i = 0,1,0.01 do | |
697 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
698 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
699 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(10),math.rad(0),math.rad(0)), 0.15) | |
700 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(10),math.rad(0),math.rad(0)), 0.15) | |
701 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(-10), math.rad(0),math.rad(0)), 0.15) | |
702 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-20),math.rad(0), math.rad(0)), 0.15) | |
703 | swait() | |
704 | end | |
705 | ||
706 | ||
707 | for i = 0,1,0.01 do | |
708 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.5) * c_angles(math.rad(90),math.rad(0),math.rad(-20)), 0.15) | |
709 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.5) * c_angles(math.rad(90),math.rad(0),math.rad(20)), 0.15) | |
710 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(80),math.rad(0),math.rad(0)), 0.15) | |
711 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(80),math.rad(0),math.rad(0)), 0.15) | |
712 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(-80), math.rad(0),math.rad(0)), 0.15) | |
713 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-20),math.rad(0), math.rad(0)), 0.15) | |
714 | swait() | |
715 | end | |
716 | Decoy.Anchored = false | |
717 | local Weld = Instance.new("Weld", Decoy) | |
718 | Weld.Part0 = Torso | |
719 | Weld.Part1 = Decoy | |
720 | Weld.C1 = CFrame.new(0,2,-1.5)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),math.rad(0)) | |
721 | for i = 0,1,0.01 do | |
722 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.5) * c_angles(math.rad(120),math.rad(0),math.rad(-30)), 0.15) | |
723 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.5) * c_angles(math.rad(120),math.rad(0),math.rad(30)), 0.15) | |
724 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
725 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
726 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15) | |
727 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0),math.rad(0), math.rad(0)), 0.15) | |
728 | swait() | |
729 | end | |
730 | Decoy.Anchored = true | |
731 | Weld:Destroy() | |
732 | for i = 1,18 do | |
733 | Decoy.CFrame = Decoy.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(10)) | |
734 | swait() | |
735 | end | |
736 | for i = 0,1,0.01 do | |
737 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.5) * c_angles(math.rad(120),math.rad(0),math.rad(-20)), 0.15) | |
738 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.5) * c_angles(math.rad(120),math.rad(0),math.rad(20)), 0.15) | |
739 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
740 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
741 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15) | |
742 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0),math.rad(0), math.rad(0)), 0.15) | |
743 | swait() | |
744 | end | |
745 | for i = 1,5 do | |
746 | Decoy.CFrame = Decoy.CFrame * CFrame.new(0,-0.25,0) | |
747 | swait() | |
748 | end | |
749 | Decoy:Destroy() | |
750 | Mask.Transparency = 0 | |
751 | ||
752 | S = Instance.new("Sound") | |
753 | S.Parent = Character.Torso | |
754 | S.SoundId = "rbxassetid://2057161687" | |
755 | S.Volume = 10 | |
756 | S.Looped = false | |
757 | S.Pitch = 1 | |
758 | S:Play() | |
759 | ||
760 | Theme.SoundId = "rbxassetid://200893259" | |
761 | Theme:Play() | |
762 | for i = 0,1,0.01 do | |
763 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, 0.2) * c_angles(math.rad(-30),math.rad(-60),math.rad(0)), 0.15) | |
764 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, 0.2) * c_angles(math.rad(-30),math.rad(60),math.rad(0)), 0.15) | |
765 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-30),math.rad(0),math.rad(0)), 0.15) | |
766 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-30),math.rad(0),math.rad(0)), 0.15) | |
767 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(30), math.rad(0),math.rad(0)), 0.15) | |
768 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20),math.rad(0), math.rad(0)), 0.15) | |
769 | swait() | |
770 | end | |
771 | ||
772 | for i = 0,0.05,0.01 do | |
773 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.5) * c_angles(math.rad(30),math.rad(-0),math.rad(0)), 0.15) | |
774 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.5) * c_angles(math.rad(30),math.rad(0),math.rad(0)), 0.15) | |
775 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30),math.rad(0),math.rad(0)), 0.15) | |
776 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30),math.rad(0),math.rad(0)), 0.15) | |
777 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1,0) * c_angles(math.rad(-30), math.rad(0),math.rad(0)), 0.15) | |
778 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20),math.rad(0), math.rad(0)), 0.15) | |
779 | swait() | |
780 | end | |
781 | ||
782 | for i = 0,1,0.01 do | |
783 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(150),math.rad(-0),math.rad(0)), 0.15) | |
784 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(150),math.rad(0),math.rad(0)), 0.15) | |
785 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10),math.rad(0),math.rad(0)), 0.15) | |
786 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-10),math.rad(0),math.rad(0)), 0.15) | |
787 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -2.5,0) * c_angles(math.rad(-80), math.rad(0),math.rad(0)), 0.15) | |
788 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0),math.rad(0), math.rad(0)), 0.15) | |
789 | swait() | |
790 | end | |
791 | ||
792 | S = Instance.new("Sound") | |
793 | S.Parent = Character.Torso | |
794 | S.SoundId = "rbxassetid://160195008" | |
795 | S.Volume = 10 | |
796 | S.Looped = false | |
797 | S.Pitch = 1 | |
798 | S:Play() | |
799 | ||
800 | fattack = true | |
801 | for i = 0,2,0.01 do | |
802 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-30),math.rad(-0),math.rad(0)), 0.15) | |
803 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-30),math.rad(0),math.rad(0)), 0.15) | |
804 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-120),math.rad(0),math.rad(0)), 0.15) | |
805 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-120),math.rad(0),math.rad(0)), 0.15) | |
806 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -2.5,0) * c_angles(math.rad(30), math.rad(0),math.rad(0)), 0.15) | |
807 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20 + math.random(-100,100)/10),math.rad(0), math.rad(math.random(-100,100)/10)), 0.4) | |
808 | local rng2 = Instance.new("Part",Character) | |
809 | rng2.Anchored = true | |
810 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
811 | rng2.CanCollide = false | |
812 | rng2.FormFactor = 3 | |
813 | rng2.Name = "Shockwave" | |
814 | rng2.Size = Vector3.new(1, 1, 1) | |
815 | rng2.Transparency = 0.35 | |
816 | rng2.TopSurface = 0 | |
817 | rng2.BottomSurface = 0 | |
818 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(0)) | |
819 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
820 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
821 | rngm2.Scale = Vector3.new(0, 0, 0) | |
822 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
823 | Spawn(function() | |
824 | for i = 1, 60, 2 do | |
825 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
826 | rngm2.Scale = Vector3.new(5 + i*0.3, 2 - i*0.1 ,5 + i*0.3) | |
827 | rng2.Transparency = i/30 | |
828 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
829 | swait() | |
830 | end | |
831 | wait() | |
832 | rng2:Destroy() | |
833 | end) | |
834 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/30,math.rad(4) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30) | |
835 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/25,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/30) | |
836 | swait() | |
837 | end | |
838 | Theme.SoundId = "rbxassetid://302493616" | |
839 | Theme:Play() | |
840 | Ocarina.Transparency = 0 | |
841 | Animations = false | |
842 | attack2 = false | |
843 | fattack = false | |
844 | attack = false | |
845 | end | |
846 | --[[ Laughing and pointing | |
847 | function Laugh() | |
848 | attack = true | |
849 | attack2 = true | |
850 | Animations = true | |
851 | lafz = math.random(1,3) | |
852 | S = Instance.new("Sound") | |
853 | S.Parent = Character.Torso | |
854 | if lafz == 1 then | |
855 | S.SoundId = "rbxassetid://2057149157" | |
856 | elseif lafz == 2 then | |
857 | S.SoundId = "rbxassetid://2057150436" | |
858 | elseif lafz == 3 then | |
859 | S.SoundId = "rbxassetid://2057595082" | |
860 | end | |
861 | S.Volume = 10 | |
862 | S.Looped = false | |
863 | S.Pitch = 1 | |
864 | S:Play() | |
865 | for i = 0,1,0.01 do | |
866 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.5) * c_angles(math.rad(45) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
867 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, -0.5) * c_angles(math.rad(45) + math.sin(sine/7.5)/15, math.rad(0),math.rad(30)), 0.15) | |
868 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/4)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
869 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30) - math.sin(sine/4)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
870 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(45) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
871 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-20) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/2)/2), 0.15) | |
872 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
873 | swait() | |
874 | end | |
875 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
876 | ||
877 | Animations = false | |
878 | attack2 = false | |
879 | attack = false | |
880 | end | |
881 | --]] | |
882 | ||
883 | local Create = LoadLibrary("RbxUtility").Create | |
884 | function Laugh() | |
885 | attack = true | |
886 | attack2 = true | |
887 | Animations = true | |
888 | lafz = math.random(1,5) | |
889 | S = Instance.new("Sound") | |
890 | S.Parent = Character.Torso | |
891 | if lafz == 1 then | |
892 | S.SoundId = "rbxassetid://2057149157" | |
893 | elseif lafz == 2 then | |
894 | S.SoundId = "rbxassetid://2057150436" | |
895 | elseif lafz == 3 then | |
896 | S.SoundId = "rbxassetid://2057595082" | |
897 | elseif lafz == 4 then | |
898 | S.SoundId = "rbxassetid://2065249482" | |
899 | elseif lafz == 5 then | |
900 | S.SoundId = "rbxassetid://2065252593" | |
901 | end | |
902 | S.Volume = 10 | |
903 | S.Looped = false | |
904 | S.Pitch = 1 | |
905 | S:Play() | |
906 | S = Instance.new("Sound") | |
907 | S.Parent = Character.Torso | |
908 | S.SoundId = "rbxassetid://21338895" | |
909 | S.Volume = 4 | |
910 | S.Looped = false | |
911 | S.Pitch = 0.8 | |
912 | S:Play() | |
913 | laughi = math.random(1,3) | |
914 | if laughi == 1 then | |
915 | for i = 0,1,0.01 do | |
916 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.5) * c_angles(math.rad(45) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) + math.sin(sine/7.5)/15), 0.15) | |
917 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, -0.5) * c_angles(math.rad(45) + math.sin(sine/7.5)/15, math.rad(0),math.rad(30)), 0.15) | |
918 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/4)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
919 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30) - math.sin(sine/4)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
920 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(10) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
921 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/2)/2), 0.15) | |
922 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
923 | swait() | |
924 | end | |
925 | elseif laughi == 2 then | |
926 | for i = 0,1,0.01 do | |
927 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.5) * c_angles(math.rad(45) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
928 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, -0.5) * c_angles(math.rad(45) + math.sin(sine/7.5)/15, math.rad(0),math.rad(30)), 0.15) | |
929 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/4)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
930 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30) - math.sin(sine/4)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
931 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(45) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
932 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-20) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/2)/2), 0.15) | |
933 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
934 | swait() | |
935 | end | |
936 | elseif laughi == 3 then | |
937 | for i = 0,1,0.01 do | |
938 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, -0.65) * c_angles(math.rad(50) + math.sin(sine/15)/35,math.rad(-5) - math.sin(sine/15)/35,math.rad(-76) + math.sin(sine/15)/15), 0.15) | |
939 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, -0.65) * c_angles(math.rad(45) + math.sin(sine/15)/25,math.rad(-10) + math.sin(sine/15)/45,math.rad(76) + math.sin(sine/15)/15), 0.15) | |
940 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20),math.rad(0),math.rad(5) - math.sin(sine/15)/30), 0.15) | |
941 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) - math.sin(sine/15)/30), 0.15) | |
942 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(2 + math.sin(sine/7.5)/15, 0.5 + math.sin(sine/15)/5, 0) * c_angles(math.rad(50), math.rad(0),math.rad(60) + math.sin(sine/7.5)/30), 0.15) | |
943 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -1) * c_angles(math.rad(-60),math.rad(45) , math.rad(-20) + math.sin(sine/2)/2), 0.15) | |
944 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
945 | swait() | |
946 | end | |
947 | end | |
948 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
949 | ||
950 | Animations = false | |
951 | attack2 = false | |
952 | attack = false | |
953 | end | |
954 | ||
955 | target = nil | |
956 | function Laser() | |
957 | attack = true | |
958 | attack2 = true | |
959 | Animations = true | |
960 | ||
961 | local Hitbox = Instance.new("Part",Head) | |
962 | Hitbox.Name = "Hitbox" | |
963 | Hitbox.Shape = Enum.PartType.Block | |
964 | Hitbox.CanCollide = false | |
965 | Hitbox.Color = Color3.new(0,0,0) | |
966 | Hitbox.Transparency = 1 | |
967 | Hitbox.Material = "Metal" | |
968 | Hitbox.Size = Vector3.new(0.25, 0.25, 15) | |
969 | Hitbox.TopSurface = Enum.SurfaceType.Smooth | |
970 | Hitbox.BottomSurface = Enum.SurfaceType.Smooth local Weld = Instance.new("Weld", Hitbox) | |
971 | Weld.Part0 = Head | |
972 | Weld.Part1 = Hitbox | |
973 | Weld.C1 = CFrame.new(0,0,8) | |
974 | ||
975 | local Lahsr = Instance.new("Part",Head) | |
976 | Lahsr.Name = "Lahsr" | |
977 | Lahsr.Shape = Enum.PartType.Block | |
978 | Lahsr.CanCollide = false | |
979 | Lahsr.Color = Color3.new(1,0.2,0) | |
980 | Lahsr.Transparency = 1 | |
981 | Lahsr.Material = "Neon" | |
982 | Lahsr.Size = Vector3.new(0.25, 0.25, 16) | |
983 | Lahsr.TopSurface = Enum.SurfaceType.Smooth | |
984 | Lahsr.BottomSurface = Enum.SurfaceType.Smooth local Weld = Instance.new("Weld", Lahsr) | |
985 | Weld.Part0 = Head | |
986 | Weld.Part1 = Lahsr | |
987 | Weld.C1 = CFrame.new(0.45,-0.24,8) | |
988 | Miehsh = Instance.new("SpecialMesh",Lahsr) | |
989 | Miehsh.MeshType = "Sphere" | |
990 | Miehsh.Scale = Vector3.new(1,1,1) | |
991 | ||
992 | local Layzar = Instance.new("Part",Head) | |
993 | Layzar.Name = "Layzar" | |
994 | Layzar.Shape = Enum.PartType.Block | |
995 | Layzar.CanCollide = false | |
996 | Layzar.Color = Color3.new(1,0.2,0) | |
997 | Layzar.Transparency = 1 | |
998 | Layzar.Material = "Neon" | |
999 | Layzar.Size = Vector3.new(0.25, 0.25, 16) | |
1000 | Layzar.TopSurface = Enum.SurfaceType.Smooth | |
1001 | Layzar.BottomSurface = Enum.SurfaceType.Smooth local Weld = Instance.new("Weld", Layzar) | |
1002 | Weld.Part0 = Head | |
1003 | Weld.Part1 = Layzar | |
1004 | Weld.C1 = CFrame.new(-0.45,-0.24,8) | |
1005 | Miehsh = Instance.new("SpecialMesh",Layzar) | |
1006 | Miehsh.MeshType = "Sphere" | |
1007 | Miehsh.Scale = Vector3.new(1,1,1) | |
1008 | ||
1009 | S = Instance.new("Sound") | |
1010 | S.Parent = Character.Torso | |
1011 | S.SoundId = "rbxassetid://2057149157" | |
1012 | S.Volume = 10 | |
1013 | S.Looped = false | |
1014 | S.Pitch = 1 | |
1015 | S:Play() | |
1016 | ||
1017 | for i = 0,0.15,0.01 do | |
1018 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(80) + math.sin(sine/7.5)/15), 0.15) | |
1019 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(0),math.rad(-80)), 0.15) | |
1020 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1021 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1022 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-70) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
1023 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(70) + math.sin(sine/7.5)/15,math.rad(90), math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1024 | swait() | |
1025 | end | |
1026 | S = Instance.new("Sound") | |
1027 | S.Parent = Character.Torso | |
1028 | S.SoundId = "rbxassetid://215270668" | |
1029 | S.Volume = 5 | |
1030 | S.Looped = false | |
1031 | S.Pitch = 1 | |
1032 | S:Play() | |
1033 | Lahsr.Transparency = 0 | |
1034 | Layzar.Transparency = 0 | |
1035 | for i = 0,0.8,0.01 do | |
1036 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(80) + math.sin(sine/7.5)/15), 0.15) | |
1037 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(0),math.rad(-80)), 0.15) | |
1038 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1039 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1040 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-70) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
1041 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(70) + math.sin(sine/7.5)/15,math.rad(90) - i*3.8, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1042 | Layzar.Transparency = Layzar.Transparency + 0.005 | |
1043 | Lahsr.Transparency = Lahsr.Transparency + 0.005 | |
1044 | Laserhitbox=Hitbox.Touched:connect(function(hit) | |
1045 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1046 | target = hit.Parent.Name | |
1047 | hit.Parent.Humanoid:TakeDamage(math.random(4,8)) | |
1048 | S = Instance.new("Sound") | |
1049 | S.Parent = Character.Torso | |
1050 | S.SoundId = "rbxassetid://545219984" | |
1051 | S.Volume = 8 | |
1052 | S.Looped = false | |
1053 | S.Pitch = 1 | |
1054 | S:Play() | |
1055 | end | |
1056 | end) | |
1057 | ||
1058 | local rng2 = Instance.new("Part",Effects) | |
1059 | rng2.Anchored = true | |
1060 | rng2.Color = Color3.new(1,0.2,0) | |
1061 | rng2.CanCollide = false | |
1062 | rng2.FormFactor = 3 | |
1063 | rng2.Name = "Shockwave" | |
1064 | rng2.Material = "Neon" | |
1065 | rng2.Size = Vector3.new(1, 1, 1) | |
1066 | rng2.Transparency = 0.35 | |
1067 | rng2.TopSurface = 0 | |
1068 | rng2.BottomSurface = 0 | |
1069 | rng2.CFrame = Head.CFrame | |
1070 | rng2.CFrame = rng2.CFrame * CFrame.new(1,0,-15) | |
1071 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1072 | rngm2.Scale = Vector3.new(1, 0, 1) | |
1073 | rngm2.Offset = Vector3.new(0,0,0) | |
1074 | rngm2.MeshType = "Sphere" | |
1075 | Spawn(function() | |
1076 | for i = 1, 60, 2 do | |
1077 | rngm2.Scale = Vector3.new(2 - i*0.1,2 - i*0.1 ,2 - i*0.1) | |
1078 | rng2.Transparency = i/30 | |
1079 | swait() | |
1080 | end | |
1081 | wait() | |
1082 | rng2:Destroy() | |
1083 | end) | |
1084 | ||
1085 | local rng2 = Instance.new("Part",Character) | |
1086 | rng2.Anchored = true | |
1087 | rng2.Color = Color3.new(1,0.2,0) | |
1088 | rng2.CanCollide = false | |
1089 | rng2.FormFactor = 3 | |
1090 | rng2.Name = "Shockwave" | |
1091 | rng2.Size = Vector3.new(1, 1, 1) | |
1092 | rng2.Transparency = 0.35 | |
1093 | rng2.TopSurface = 0 | |
1094 | rng2.BottomSurface = 0 | |
1095 | rng2.CFrame = Head.CFrame | |
1096 | rng2.CFrame = rng2.CFrame * CFrame.new(0,0,-17) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1097 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1098 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1099 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1100 | rngm2.Offset = Vector3.new(0,0,0) | |
1101 | Spawn(function() | |
1102 | for i = 1, 60, 2 do | |
1103 | rngm2.Scale = Vector3.new(0 + i*0.6, 0 + i*0.6 ,0 + i*0.3) | |
1104 | rng2.Transparency = i/30 | |
1105 | swait() | |
1106 | end | |
1107 | wait() | |
1108 | rng2:Destroy() | |
1109 | end) | |
1110 | ||
1111 | target = nil | |
1112 | swait() | |
1113 | end | |
1114 | Lahsr:Destroy() | |
1115 | Layzar:Destroy() | |
1116 | Hitbox:Destroy() | |
1117 | ||
1118 | Animations = false | |
1119 | attack2 = false | |
1120 | wait(0.25) | |
1121 | attack = false | |
1122 | end | |
1123 | ||
1124 | function ShadowBomb() | |
1125 | attack = true | |
1126 | attack2 = true | |
1127 | Animations = true | |
1128 | ||
1129 | local SB = Instance.new("Part",Effects) | |
1130 | SB.Name = "ShadowBallz" | |
1131 | SB.Shape = Enum.PartType.Block | |
1132 | SB.CanCollide = false | |
1133 | SB.BrickColor = BrickColor.new("Dark indigo") | |
1134 | SB.Transparency = 0 | |
1135 | SB.Material = "Neon" | |
1136 | SB.Size = Vector3.new(0.25, 0.25, 0.25) | |
1137 | SB.TopSurface = Enum.SurfaceType.Smooth | |
1138 | SB.BottomSurface = Enum.SurfaceType.Smooth local SBWeld = Instance.new("Weld", SB) | |
1139 | SBWeld.Part0 = rootPart | |
1140 | SBWeld.Part1 = SB | |
1141 | SBWeld.C1 = CFrame.new(0,-18,0) | |
1142 | grow = Instance.new("SpecialMesh",SB) | |
1143 | grow.MeshType = "Sphere" | |
1144 | grow.Scale = Vector3.new(0,0,0) | |
1145 | ||
1146 | SBS = Instance.new("Sound") | |
1147 | SBS.Parent = SB | |
1148 | SBS.SoundId = "rbxassetid://300916082" | |
1149 | SBS.Volume = 8 | |
1150 | SBS.Looped = false | |
1151 | SBS.Pitch = 0 | |
1152 | SBS:Play() | |
1153 | ||
1154 | S = Instance.new("Sound") | |
1155 | S.Parent = Character.Torso | |
1156 | S.SoundId = "rbxassetid://2061650183" | |
1157 | S.Volume = 10 | |
1158 | S.Looped = false | |
1159 | S.Pitch = 1 | |
1160 | S:Play() | |
1161 | fattack = true | |
1162 | for i = 0,2.7,0.01 do | |
1163 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(160) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(20) + math.sin(sine/7.5)/15), 0.15) | |
1164 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(160) + math.sin(sine/7.5)/15, math.rad(0),math.rad(-20)), 0.15) | |
1165 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-30) - math.sin(sine/7.5)/25), 0.15) | |
1166 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(30) + math.sin(sine/7.5)/25), 0.15) | |
1167 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, 5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
1168 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(70) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1169 | grow.Scale = grow.Scale + Vector3.new(0.2,0.2,0.2) | |
1170 | SBS.Pitch = SBS.Pitch + 0.0025 | |
1171 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/30,math.rad(4) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30) | |
1172 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/25,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/30) | |
1173 | local rng2 = Instance.new("Part",Character) | |
1174 | rng2.Anchored = true | |
1175 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
1176 | rng2.CanCollide = false | |
1177 | rng2.FormFactor = 3 | |
1178 | rng2.Name = "Shockwave" | |
1179 | rng2.Size = Vector3.new(1, 1, 1) | |
1180 | rng2.Transparency = 0.35 | |
1181 | rng2.TopSurface = 0 | |
1182 | rng2.BottomSurface = 0 | |
1183 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1184 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1185 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1186 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1187 | rngm2.Offset = Vector3.new(0,0,0) | |
1188 | Spawn(function() | |
1189 | for i = 1, 60, 2 do | |
1190 | rngm2.Scale = Vector3.new(0 + i*0.6, 0 + i*0.6 ,0 + i*0.3) | |
1191 | rng2.Transparency = i/30 | |
1192 | swait() | |
1193 | end | |
1194 | wait() | |
1195 | rng2:Destroy() | |
1196 | end) | |
1197 | ||
1198 | local rng2 = Instance.new("Part",Character) | |
1199 | rng2.Anchored = true | |
1200 | rng2.BrickColor = BrickColor.new("Really black") | |
1201 | rng2.CanCollide = false | |
1202 | rng2.FormFactor = 3 | |
1203 | rng2.Name = "Shockwave" | |
1204 | rng2.Size = Vector3.new(1, 1, 1) | |
1205 | rng2.Transparency = 0.35 | |
1206 | rng2.TopSurface = 0 | |
1207 | rng2.BottomSurface = 0 | |
1208 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1209 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1210 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1211 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1212 | rngm2.Offset = Vector3.new(0,0,0) | |
1213 | Spawn(function() | |
1214 | for i = 1, 60, 2 do | |
1215 | rngm2.Scale = Vector3.new(0 + i*0.3, 0 + i*0.3 ,0 + i*0.3) | |
1216 | rng2.Transparency = i/30 | |
1217 | swait() | |
1218 | end | |
1219 | wait() | |
1220 | rng2:Destroy() | |
1221 | end) | |
1222 | ||
1223 | swait() | |
1224 | end | |
1225 | S = Instance.new("Sound") | |
1226 | S.Parent = Character.Torso | |
1227 | S.SoundId = "rbxassetid://199145761" | |
1228 | S.Volume = 5 | |
1229 | S.Looped = false | |
1230 | S.Pitch = 1 | |
1231 | S:Play() | |
1232 | Point = Instance.new("BodyGyro") | |
1233 | Point.Parent = rootPart | |
1234 | Point.D = 175 | |
1235 | Point.P = 20000 | |
1236 | Point.MaxTorque = Vector3.new(0,4000000,0) | |
1237 | for i = 0,0.25,0.01 do | |
1238 | Point.cframe = CFrame.new(rootPart.Position,Mouse.Hit.Position) | |
1239 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(90) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(20) + math.sin(sine/7.5)/15), 0.15) | |
1240 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(0),math.rad(-20)), 0.15) | |
1241 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-30) - math.sin(sine/7.5)/25), 0.15) | |
1242 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(30) + math.sin(sine/7.5)/25), 0.15) | |
1243 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, 4 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-60) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
1244 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(30) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1245 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/30,math.rad(4) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30) | |
1246 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/25,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/30) | |
1247 | swait() | |
1248 | end | |
1249 | Point:Destroy() | |
1250 | fattack = false | |
1251 | ||
1252 | SBWeld:Destroy() | |
1253 | ||
1254 | S = Instance.new("Sound") | |
1255 | S.Parent = SB | |
1256 | S.SoundId = "rbxassetid://1202657035" | |
1257 | S.Volume = 8 | |
1258 | S.Looped = false | |
1259 | S.Pitch = 1 | |
1260 | S.PlayOnRemove = true | |
1261 | ||
1262 | SB.CanCollide = true | |
1263 | local bodyVelocity2 = Create("BodyVelocity")({ | |
1264 | velocity = (Mouse.Hit.p - SB.CFrame.p).unit * 165, | |
1265 | P = 5000, | |
1266 | maxForce = Vector3.new(8000, 8000, 8000), | |
1267 | Parent = SB | |
1268 | }) | |
1269 | ||
1270 | ||
1271 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
1272 | SB.Touched:connect(function(hit) | |
1273 | if(not Character:IsAncestorOf(hit) or hit.Name == "ShadowBallz") then | |
1274 | for i, v in pairs(FindNearestTorso(SB.CFrame.p, 15)) do | |
1275 | if v:FindFirstChild('Humanoid') then | |
1276 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(40,60) | |
1277 | end | |
1278 | end | |
1279 | local rng2 = Instance.new("Part",Effects) | |
1280 | rng2.Anchored = true | |
1281 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
1282 | rng2.CanCollide = false | |
1283 | rng2.FormFactor = 3 | |
1284 | rng2.Name = "Shockwave" | |
1285 | rng2.Material = "Neon" | |
1286 | rng2.Size = Vector3.new(1, 1, 1) | |
1287 | rng2.Transparency = 0.35 | |
1288 | rng2.TopSurface = 0 | |
1289 | rng2.BottomSurface = 0 | |
1290 | rng2.CFrame = SB.CFrame | |
1291 | SB:Destroy() | |
1292 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1293 | rngm2.Scale = Vector3.new(1, 0, 1) | |
1294 | rngm2.Offset = Vector3.new(0,0,0) | |
1295 | rngm2.MeshType = "Sphere" | |
1296 | Spawn(function() | |
1297 | for i = 1, 60, 2 do | |
1298 | rngm2.Scale = Vector3.new(13 + i*0.3, 13 + i*0.3 ,13 + i*0.3) | |
1299 | rng2.Transparency = i/60 | |
1300 | swait() | |
1301 | end | |
1302 | wait() | |
1303 | rng2:Destroy() | |
1304 | end) | |
1305 | for i = 1,6 do | |
1306 | local rng2 = Instance.new("Part",Character) | |
1307 | rng2.Anchored = true | |
1308 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
1309 | rng2.CanCollide = false | |
1310 | rng2.FormFactor = 3 | |
1311 | rng2.Name = "Shockwave" | |
1312 | rng2.Size = Vector3.new(1, 1, 1) | |
1313 | rng2.Transparency = 0.35 | |
1314 | rng2.TopSurface = 0 | |
1315 | rng2.BottomSurface = 0 | |
1316 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1317 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1318 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1319 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1320 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
1321 | Spawn(function() | |
1322 | for i = 1, 60, 2 do | |
1323 | rngm2.Scale = Vector3.new(50 + i*1, 50 + i*1 ,2 + i*0.3) | |
1324 | rng2.Transparency = i/30 | |
1325 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
1326 | swait() | |
1327 | end | |
1328 | wait() | |
1329 | rng2:Destroy() | |
1330 | end) | |
1331 | ||
1332 | local rng2 = Instance.new("Part",Character) | |
1333 | rng2.Anchored = true | |
1334 | rng2.BrickColor = BrickColor.new("Really black") | |
1335 | rng2.CanCollide = false | |
1336 | rng2.FormFactor = 3 | |
1337 | rng2.Name = "Shockwave" | |
1338 | rng2.Size = Vector3.new(1, 1, 1) | |
1339 | rng2.Transparency = 0.35 | |
1340 | rng2.TopSurface = 0 | |
1341 | rng2.BottomSurface = 0 | |
1342 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1343 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1344 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1345 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1346 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
1347 | Spawn(function() | |
1348 | for i = 1, 60, 2 do | |
1349 | rngm2.Scale = Vector3.new(50 + i*1, 50 + i*1 ,2 + i*0.3) | |
1350 | rng2.Transparency = i/30 | |
1351 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
1352 | swait() | |
1353 | end | |
1354 | wait() | |
1355 | rng2:Destroy() | |
1356 | end) | |
1357 | end | |
1358 | end | |
1359 | end) | |
1360 | ||
1361 | lafz = math.random(1,3) | |
1362 | S = Instance.new("Sound") | |
1363 | S.Parent = Character.Torso | |
1364 | if lafz == 1 then | |
1365 | S.SoundId = "rbxassetid://2057149157" | |
1366 | elseif lafz == 2 then | |
1367 | S.SoundId = "rbxassetid://2057150436" | |
1368 | elseif lafz == 3 then | |
1369 | S.SoundId = "rbxassetid://2057595082" | |
1370 | end | |
1371 | S.Volume = 10 | |
1372 | S.Looped = false | |
1373 | S.Pitch = 1 | |
1374 | S:Play() | |
1375 | S = Instance.new("Sound") | |
1376 | S.Parent = Character.Torso | |
1377 | S.SoundId = "rbxassetid://21338895" | |
1378 | S.Volume = 4 | |
1379 | S.Looped = false | |
1380 | S.Pitch = 0.8 | |
1381 | S:Play() | |
1382 | for i = 0,1,0.01 do | |
1383 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.5) * c_angles(math.rad(45) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) + math.sin(sine/7.5)/15), 0.15) | |
1384 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, -0.5) * c_angles(math.rad(45) + math.sin(sine/7.5)/15, math.rad(0),math.rad(30)), 0.15) | |
1385 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/4)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1386 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30) - math.sin(sine/4)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1387 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(45) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
1388 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-20) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/2)/2), 0.15) | |
1389 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
1390 | swait() | |
1391 | end | |
1392 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
1393 | ||
1394 | Animations = false | |
1395 | attack2 = false | |
1396 | attack = false | |
1397 | end | |
1398 | ||
1399 | function Attackone() | |
1400 | attack = true | |
1401 | fattack = true | |
1402 | Animations = true | |
1403 | S = Instance.new("Sound") | |
1404 | S.Parent = Character.Torso | |
1405 | S.SoundId = "rbxassetid://1890071374" | |
1406 | S.Volume = 8 | |
1407 | S.Looped = false | |
1408 | S.Pitch = 1.7 | |
1409 | S:Play() | |
1410 | ||
1411 | S = Instance.new("Sound") | |
1412 | S.Parent = Character.Torso | |
1413 | S.SoundId = "rbxassetid://2064874129" | |
1414 | S.Volume = 10 | |
1415 | S.Looped = false | |
1416 | S.Pitch = 1 | |
1417 | S:Play() | |
1418 | ||
1419 | S = Instance.new("Sound") | |
1420 | S.Parent = Character.Torso | |
1421 | S.SoundId = "rbxassetid://2066402292" | |
1422 | S.Volume = 9.5 | |
1423 | S.Looped = false | |
1424 | S.Pitch = 1 | |
1425 | S.TimePosition = 0.25 | |
1426 | S:Play() | |
1427 | ||
1428 | Tatl2.C1 = CFrame.new(2.5,3,3) | |
1429 | Tael2.C1 = CFrame.new(-2.5,3,3) | |
1430 | tale=Tael.Touched:connect(function(hit) | |
1431 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1432 | target = hit.Parent.Name | |
1433 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1434 | S = Instance.new("Sound") | |
1435 | S.Parent = Character.Torso | |
1436 | S.SoundId = "rbxassetid://1907654067" | |
1437 | S.Volume = 8 | |
1438 | S.Looped = false | |
1439 | S.Pitch = 1 | |
1440 | S:Play() | |
1441 | end | |
1442 | end) | |
1443 | tattle=Tatl.Touched:connect(function(hit) | |
1444 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1445 | target = hit.Parent.Name | |
1446 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1447 | S = Instance.new("Sound") | |
1448 | S.Parent = Character.Torso | |
1449 | S.SoundId = "rbxassetid://1907654067" | |
1450 | S.Volume = 8 | |
1451 | S.Looped = false | |
1452 | S.Pitch = 1 | |
1453 | S:Play() | |
1454 | end | |
1455 | end) | |
1456 | for i = 0,0.08,0.01 do | |
1457 | rootPart.Velocity = rootPart.CFrame.lookVector * 50 | |
1458 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.3) | |
1459 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(120) + math.sin(sine/7.5)/15, math.rad(10),math.rad(30)), 0.3) | |
1460 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-15) - math.sin(sine/7.5)/25), 0.15) | |
1461 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) + math.sin(sine/7.5)/25), 0.15) | |
1462 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(1 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-30) - math.sin(sine/15)/15, math.rad(0), math.rad(-20)), 0.15) | |
1463 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.3) | |
1464 | Tael2.C1 = Tael2.C1 * CFrame.new(0.5,-1,0) | |
1465 | Tatl2.C1 = Tatl2.C1 * CFrame.new(-0.5,-1,0) | |
1466 | swait() | |
1467 | end | |
1468 | tale:disconnect() | |
1469 | tattle:disconnect() | |
1470 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1471 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1472 | ||
1473 | target = nil | |
1474 | Animations = false | |
1475 | fattack = false | |
1476 | attack = false | |
1477 | end | |
1478 | ||
1479 | function Attacktwo() | |
1480 | attack = true | |
1481 | fattack = true | |
1482 | Animations = true | |
1483 | S = Instance.new("Sound") | |
1484 | S.Parent = Character.Torso | |
1485 | S.SoundId = "rbxassetid://1890071374" | |
1486 | S.Volume = 8 | |
1487 | S.Looped = false | |
1488 | S.Pitch = 1.7 | |
1489 | S:Play() | |
1490 | ||
1491 | S = Instance.new("Sound") | |
1492 | S.Parent = Character.Torso | |
1493 | S.SoundId = "rbxassetid://2066402292" | |
1494 | S.Volume = 9.5 | |
1495 | S.Looped = false | |
1496 | S.Pitch = 1 | |
1497 | S.TimePosition = 0.25 | |
1498 | S:Play() | |
1499 | ||
1500 | Tatl2.C1 = CFrame.new(2.5,-6,3) | |
1501 | Tael2.C1 = CFrame.new(-2.5,-6,3) | |
1502 | tale=Tael.Touched:connect(function(hit) | |
1503 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1504 | target = hit.Parent.Name | |
1505 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1506 | S = Instance.new("Sound") | |
1507 | S.Parent = Character.Torso | |
1508 | S.SoundId = "rbxassetid://1907654067" | |
1509 | S.Volume = 8 | |
1510 | S.Looped = false | |
1511 | S.Pitch = 1 | |
1512 | S:Play() | |
1513 | end | |
1514 | end) | |
1515 | tattle=Tatl.Touched:connect(function(hit) | |
1516 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1517 | target = hit.Parent.Name | |
1518 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1519 | S = Instance.new("Sound") | |
1520 | S.Parent = Character.Torso | |
1521 | S.SoundId = "rbxassetid://1907654067" | |
1522 | S.Volume = 8 | |
1523 | S.Looped = false | |
1524 | S.Pitch = 1 | |
1525 | S:Play() | |
1526 | end | |
1527 | end) | |
1528 | for i = 0,0.08,0.01 do | |
1529 | rootPart.Velocity = rootPart.CFrame.lookVector * 50 | |
1530 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.3) | |
1531 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(120) + math.sin(sine/7.5)/15, math.rad(10),math.rad(30)), 0.3) | |
1532 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) - math.sin(sine/7.5)/25), 0.15) | |
1533 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(15) + math.sin(sine/7.5)/25), 0.15) | |
1534 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(-1 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-30) - math.sin(sine/15)/15, math.rad(0), math.rad(20)), 0.15) | |
1535 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.3) | |
1536 | Tael2.C1 = Tael2.C1 * CFrame.new(0.5,1,0) | |
1537 | Tatl2.C1 = Tatl2.C1 * CFrame.new(-0.5,1,0) | |
1538 | swait() | |
1539 | end | |
1540 | tattle:disconnect() | |
1541 | tale:disconnect() | |
1542 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1543 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1544 | ||
1545 | target = nil | |
1546 | Animations = false | |
1547 | fattack = false | |
1548 | attack = false | |
1549 | end | |
1550 | ||
1551 | function Attackthree() | |
1552 | attack = true | |
1553 | fattack = true | |
1554 | Animations = true | |
1555 | S = Instance.new("Sound") | |
1556 | S.Parent = Character.Torso | |
1557 | S.SoundId = "rbxassetid://1890071374" | |
1558 | S.Volume = 8 | |
1559 | S.Looped = false | |
1560 | S.Pitch = 1.8 | |
1561 | S:Play() | |
1562 | S = Instance.new("Sound") | |
1563 | S.Parent = Character.Torso | |
1564 | S.SoundId = "rbxassetid://2057150436" | |
1565 | S.Volume = 10 | |
1566 | S.Looped = false | |
1567 | S.Pitch = 1 | |
1568 | S:Play() | |
1569 | Tatl2.C1 = CFrame.new(1,0,3) | |
1570 | Tael2.C1 = CFrame.new(-1,0,3) | |
1571 | tale=Tael.Touched:connect(function(hit) | |
1572 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1573 | target = hit.Parent.Name | |
1574 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1575 | S = Instance.new("Sound") | |
1576 | S.Parent = Character.Torso | |
1577 | S.SoundId = "rbxassetid://1907654067" | |
1578 | S.Volume = 8 | |
1579 | S.Looped = false | |
1580 | S.Pitch = 1 | |
1581 | S:Play() | |
1582 | end | |
1583 | end) | |
1584 | tattle=Tatl.Touched:connect(function(hit) | |
1585 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1586 | target = hit.Parent.Name | |
1587 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1588 | S = Instance.new("Sound") | |
1589 | S.Parent = Character.Torso | |
1590 | S.SoundId = "rbxassetid://1907654067" | |
1591 | S.Volume = 8 | |
1592 | S.Looped = false | |
1593 | S.Pitch = 1 | |
1594 | S:Play() | |
1595 | end | |
1596 | end) | |
1597 | for i = 0,0.4,0.01 do | |
1598 | rootPart.Velocity = rootPart.CFrame.lookVector * 50 | |
1599 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.5) * c_angles(math.rad(45) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) + math.sin(sine/7.5)/15), 0.15) | |
1600 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(120) + math.sin(sine/7.5)/15, math.rad(10),math.rad(30)), 0.3) | |
1601 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/2)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1602 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(30) - math.sin(sine/2)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1603 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-10) - math.sin(sine/15)/15 , math.rad(180), math.rad(0)), 0.15) | |
1604 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(5) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/2)/2), 0.15) | |
1605 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
1606 | local rng2 = Instance.new("Part",Character) | |
1607 | rng2.Anchored = true | |
1608 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
1609 | rng2.CanCollide = false | |
1610 | rng2.FormFactor = 3 | |
1611 | rng2.Name = "Shockwave" | |
1612 | rng2.Size = Vector3.new(1, 1, 1) | |
1613 | rng2.Transparency = 0.6 | |
1614 | rng2.TopSurface = 0 | |
1615 | rng2.BottomSurface = 0 | |
1616 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)) | |
1617 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1618 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1619 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1620 | rngm2.Offset = Vector3.new(0,-2,-0.5) | |
1621 | Spawn(function() | |
1622 | for i = 1, 60, 2 do | |
1623 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
1624 | rngm2.Scale = Vector3.new(5 + i*0.3, 9 + i*0.1 ,5 + i*0.3) | |
1625 | rng2.Transparency = i/15 | |
1626 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
1627 | swait() | |
1628 | end | |
1629 | wait() | |
1630 | rng2:Destroy() | |
1631 | end) | |
1632 | swait() | |
1633 | end | |
1634 | tattle:disconnect() | |
1635 | tale:disconnect() | |
1636 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
1637 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1638 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1639 | ||
1640 | target = nil | |
1641 | Animations = false | |
1642 | fattack = false | |
1643 | attack = false | |
1644 | end | |
1645 | ||
1646 | function Attackfour() | |
1647 | attack = true | |
1648 | fattack = true | |
1649 | Animations = true | |
1650 | Tatl2.C1 = CFrame.new(2,0,-1) | |
1651 | Tael2.C1 = CFrame.new(-2,0,-1) | |
1652 | con1=Head.Touched:connect(function(hit) | |
1653 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name and hit.Parent.Name ~= target then | |
1654 | target = hit.Parent.Name | |
1655 | hit.Parent.Humanoid:TakeDamage(math.random(10,20)) | |
1656 | S = Instance.new("Sound") | |
1657 | S.Parent = Character.Torso | |
1658 | S.SoundId = "rbxassetid://1907654067" | |
1659 | S.Volume = 8 | |
1660 | S.Looped = false | |
1661 | S.Pitch = 1 | |
1662 | S:Play() | |
1663 | end | |
1664 | end) | |
1665 | for i = 0,0.25,0.01 do | |
1666 | rootPart.Velocity = rootPart.CFrame.lookVector * 80 | |
1667 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(-30) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
1668 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
1669 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-20) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1670 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-30) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1671 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-40) - math.sin(sine/15)/15, math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15) | |
1672 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(40) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1673 | swait() | |
1674 | end | |
1675 | con1:disconnect() | |
1676 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1677 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1678 | ||
1679 | target = nil | |
1680 | Animations = false | |
1681 | fattack = false | |
1682 | attack = false | |
1683 | end | |
1684 | ||
1685 | function Attackfive() | |
1686 | attack = true | |
1687 | fattack = true | |
1688 | Animations = true | |
1689 | S = Instance.new("Sound") | |
1690 | S.Parent = Character.Torso | |
1691 | S.SoundId = "rbxassetid://1890071374" | |
1692 | S.Volume = 8 | |
1693 | S.Looped = false | |
1694 | S.Pitch = 1.7 | |
1695 | S:Play() | |
1696 | ||
1697 | twirl = Instance.new("Sound") | |
1698 | twirl.Parent = Character.Torso | |
1699 | twirl.SoundId = "rbxassetid://1152719084" | |
1700 | twirl.Volume = 8 | |
1701 | twirl.Looped = false | |
1702 | twirl.Pitch = 1.7 | |
1703 | twirl:Play() | |
1704 | ||
1705 | S = Instance.new("Sound") | |
1706 | S.Parent = Character.Torso | |
1707 | S.SoundId = "rbxassetid://2065259544" | |
1708 | S.Volume = 10 | |
1709 | S.Looped = false | |
1710 | S.Pitch = 1 | |
1711 | S:Play() | |
1712 | ||
1713 | Tatl2.C1 = CFrame.new(5,-1,0) | |
1714 | Tael2.C1 = CFrame.new(-6,0,0) | |
1715 | tale=Tael.Touched:connect(function(hit) | |
1716 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then | |
1717 | hit.Parent.Humanoid:TakeDamage(math.random(4,6)) | |
1718 | S = Instance.new("Sound") | |
1719 | S.Parent = Character.Torso | |
1720 | S.SoundId = "rbxassetid://1907654067" | |
1721 | S.Volume = 8 | |
1722 | S.Looped = false | |
1723 | S.Pitch = 1 | |
1724 | S:Play() | |
1725 | end | |
1726 | end) | |
1727 | tattle=Tatl.Touched:connect(function(hit) | |
1728 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then | |
1729 | hit.Parent.Humanoid:TakeDamage(math.random(4,6)) | |
1730 | S = Instance.new("Sound") | |
1731 | S.Parent = Character.Torso | |
1732 | S.SoundId = "rbxassetid://1907654067" | |
1733 | S.Volume = 8 | |
1734 | S.Looped = false | |
1735 | S.Pitch = 1 | |
1736 | S:Play() | |
1737 | end | |
1738 | end) | |
1739 | for i = 0,0.5,0.01 do | |
1740 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(0) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(90) + math.sin(sine/7.5)/15), 0.15) | |
1741 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-90)), 0.15) | |
1742 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1743 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1744 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15, math.rad(0) - i*30, math.rad(0)), 0.15) | |
1745 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.3) | |
1746 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(30),math.rad(0)) | |
1747 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(30),math.rad(0)) | |
1748 | swait() | |
1749 | end | |
1750 | ||
1751 | S = Instance.new("Sound") | |
1752 | S.Parent = Character.Torso | |
1753 | S.SoundId = "rbxassetid://2066402292" | |
1754 | S.Volume = 9.5 | |
1755 | S.Looped = false | |
1756 | S.Pitch = 1 | |
1757 | S.TimePosition = 0.25 | |
1758 | S:Play() | |
1759 | ||
1760 | twirl:Destroy() | |
1761 | tale:disconnect() | |
1762 | tattle:disconnect() | |
1763 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1764 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1765 | ||
1766 | target = nil | |
1767 | Animations = false | |
1768 | fattack = false | |
1769 | attack = false | |
1770 | end | |
1771 | ||
1772 | function Attacksix() | |
1773 | attack = true | |
1774 | fattack = true | |
1775 | Animations = true | |
1776 | ||
1777 | S = Instance.new("Sound") | |
1778 | S.Parent = Character.Torso | |
1779 | S.SoundId = "rbxassetid://2061663467" | |
1780 | S.Volume = 10 | |
1781 | S.Looped = false | |
1782 | S.Pitch = 1 | |
1783 | S:Play() | |
1784 | ||
1785 | Tatl2.C1 = CFrame.new(2.5,3,3) | |
1786 | Tael2.C1 = CFrame.new(-2.5,3,3) | |
1787 | ||
1788 | for i = 0,0.08,0.01 do | |
1789 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.3) | |
1790 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(120) + math.sin(sine/7.5)/15, math.rad(10),math.rad(30)), 0.3) | |
1791 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1792 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1793 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, 10 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-30) - math.sin(sine/15)/15, math.rad(0), math.rad(0)), 0.15) | |
1794 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.3) | |
1795 | Tael2.C1 = CFrame.new(2,-3 - math.sin(sine/7.5)/20,-1) | |
1796 | Tatl2.C1 = CFrame.new(-2,-3 + math.sin(sine/7.5)/12,-1) | |
1797 | swait() | |
1798 | end | |
1799 | ||
1800 | for i = 0,0.08,0.01 do | |
1801 | rootPart.Velocity = rootPart.CFrame.lookVector * 100 | |
1802 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.3) | |
1803 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(120) + math.sin(sine/7.5)/15, math.rad(10),math.rad(30)), 0.3) | |
1804 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1805 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1806 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-30) - math.sin(sine/15)/15, math.rad(0), math.rad(0)), 0.15) | |
1807 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.3) | |
1808 | Tael2.C1 = CFrame.new(2,-3 - math.sin(sine/7.5)/20,-1) | |
1809 | Tatl2.C1 = CFrame.new(-2,-3 + math.sin(sine/7.5)/12,-1) | |
1810 | swait() | |
1811 | end | |
1812 | local rng2 = Instance.new("Part",Character) | |
1813 | rng2.Anchored = true | |
1814 | rng2.BrickColor = BrickColor.new("Medium stone grey") | |
1815 | rng2.CanCollide = false | |
1816 | rng2.FormFactor = 3 | |
1817 | rng2.Name = "Shockwave" | |
1818 | rng2.Size = Vector3.new(1, 1, 1) | |
1819 | rng2.Transparency = 0.35 | |
1820 | rng2.TopSurface = 0 | |
1821 | rng2.BottomSurface = 0 | |
1822 | rng2.CFrame = rootPart.CFrame | |
1823 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1824 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1825 | rngm2.Scale = Vector3.new(1, 0, 1) | |
1826 | rngm2.Offset = Vector3.new(0,0,-2) | |
1827 | Spawn(function() | |
1828 | for i = 1, 60, 2 do | |
1829 | rngm2.Scale = Vector3.new(1 + i*0.3, 5 - i*0.1 ,1 + i*0.3) | |
1830 | rng2.Transparency = i/30 | |
1831 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
1832 | swait() | |
1833 | end | |
1834 | wait() | |
1835 | rng2:Destroy() | |
1836 | end) | |
1837 | S = Instance.new("Sound") | |
1838 | S.Parent = Character.Torso | |
1839 | S.SoundId = "rbxassetid://2064874783" | |
1840 | S.Volume = 8 | |
1841 | S.Looped = false | |
1842 | S.Pitch = 1 | |
1843 | S:Play() | |
1844 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do | |
1845 | if v:FindFirstChild('Humanoid') then | |
1846 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(10,20) | |
1847 | end | |
1848 | end | |
1849 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1850 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1851 | ||
1852 | target = nil | |
1853 | Animations = false | |
1854 | fattack = false | |
1855 | attack = false | |
1856 | end | |
1857 | ||
1858 | function Attackseven() | |
1859 | attack = true | |
1860 | fattack = true | |
1861 | Animations = true | |
1862 | S = Instance.new("Sound") | |
1863 | S.Parent = Character.Torso | |
1864 | S.SoundId = "rbxassetid://1890059896" | |
1865 | S.Volume = 8 | |
1866 | S.Looped = false | |
1867 | S.Pitch = 1.8 | |
1868 | S:Play() | |
1869 | ||
1870 | S = Instance.new("Sound") | |
1871 | S.Parent = Character.Torso | |
1872 | S.SoundId = "rbxassetid://2057595082" | |
1873 | S.Volume = 10 | |
1874 | S.Looped = false | |
1875 | S.Pitch = 1 | |
1876 | S:Play() | |
1877 | ||
1878 | twirl = Instance.new("Sound") | |
1879 | twirl.Parent = Character.Torso | |
1880 | twirl.SoundId = "rbxassetid://1152719084" | |
1881 | twirl.Volume = 8 | |
1882 | twirl.Looped = false | |
1883 | twirl.Pitch = 1.7 | |
1884 | twirl:Play() | |
1885 | Tatl2.C1 = CFrame.new(5,0,0) | |
1886 | Tael2.C1 = CFrame.new(-5,0,0) | |
1887 | for i = 0,0.35,0.01 do | |
1888 | rootPart.Velocity = rootPart.CFrame.lookVector * 100 | |
1889 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(80) + math.sin(sine/7.5)/15), 0.15) | |
1890 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(0),math.rad(-80)), 0.15) | |
1891 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
1892 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
1893 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-70) - math.sin(sine/15)/15 , math.rad(0) - i*30, math.rad(0)), 0.15) | |
1894 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(68) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
1895 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(25)) | |
1896 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(25)) | |
1897 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do | |
1898 | if v:FindFirstChild('Humanoid') then | |
1899 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(5,8) | |
1900 | end | |
1901 | end | |
1902 | local rng2 = Instance.new("Part",Character) | |
1903 | rng2.Anchored = true | |
1904 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
1905 | rng2.CanCollide = false | |
1906 | rng2.FormFactor = 3 | |
1907 | rng2.Name = "Shockwave" | |
1908 | rng2.Size = Vector3.new(1, 1, 1) | |
1909 | rng2.Transparency = 0.35 | |
1910 | rng2.TopSurface = 0 | |
1911 | rng2.BottomSurface = 0 | |
1912 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)) | |
1913 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1914 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1915 | rngm2.Scale = Vector3.new(0, 0, 0) | |
1916 | rngm2.Offset = Vector3.new(0,-5,-0.5) | |
1917 | Spawn(function() | |
1918 | for i = 1, 60, 2 do | |
1919 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
1920 | rngm2.Scale = Vector3.new(4 + i*0.3, 8 + i*0.1 ,4 + i*0.3) | |
1921 | rng2.Transparency = i/30 | |
1922 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
1923 | swait() | |
1924 | end | |
1925 | wait() | |
1926 | rng2:Destroy() | |
1927 | end) | |
1928 | swait() | |
1929 | end | |
1930 | twirl:Destroy() | |
1931 | Tael2.C1 = CFrame.new(0,-5,3.5) | |
1932 | Tatl2.C1 = CFrame.new(0,-2,3.5) | |
1933 | ||
1934 | target = nil | |
1935 | Animations = false | |
1936 | fattack = false | |
1937 | attack = false | |
1938 | end | |
1939 | ||
1940 | function ShadowBallBarrage() | |
1941 | local SB = Instance.new("Part",Effects) | |
1942 | SB.Name = "ShadowBallz" | |
1943 | SB.Shape = Enum.PartType.Block | |
1944 | SB.CanCollide = false | |
1945 | SB.BrickColor = BrickColor.new("Dark indigo") | |
1946 | SB.Transparency = 0 | |
1947 | SB.Material = "Neon" | |
1948 | SB.Size = Vector3.new(0.25, 0.25, 0.25) | |
1949 | SB.TopSurface = Enum.SurfaceType.Smooth | |
1950 | SB.BottomSurface = Enum.SurfaceType.Smooth local SBWeld = Instance.new("Weld", SB) | |
1951 | SBWeld.Part0 = Right_Arm | |
1952 | SBWeld.Part1 = SB | |
1953 | SBWeld.C1 = CFrame.new(0,1,0) | |
1954 | boom = Instance.new("SpecialMesh",SB) | |
1955 | boom.MeshType = "Sphere" | |
1956 | boom.Scale = Vector3.new(3,3,3) | |
1957 | S = Instance.new("Sound") | |
1958 | S.Parent = SB | |
1959 | S.SoundId = "rbxassetid://315746833" | |
1960 | S.Volume = 5 | |
1961 | S.Looped = false | |
1962 | S.Pitch = 2 | |
1963 | S:Play() | |
1964 | ||
1965 | S = Instance.new("Sound") | |
1966 | S.Parent = SB | |
1967 | S.SoundId = "rbxassetid://203691653" | |
1968 | S.Volume = 8 | |
1969 | S.Looped = false | |
1970 | S.Pitch = 1 | |
1971 | S.PlayOnRemove = true | |
1972 | for i = 0,0.04,0.01 do | |
1973 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(-30) - math.sin(sine/7.5)/15, math.rad(-90) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
1974 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
1975 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7 + math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) + math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
1976 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.7 - math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
1977 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/7.5)/1, -1.3 + math.sin(sine/3.75)/5, 0) * c_angles(math.rad(0), math.rad(0),math.rad(10)), 0.15) | |
1978 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/3.75)/5,math.rad(0), math.rad(0) - math.sin(sine/15)/4), 0.15) | |
1979 | swait() | |
1980 | end | |
1981 | for i = 0,0.05,0.01 do | |
1982 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(120) - math.sin(sine/7.5)/15, math.rad(-90) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
1983 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
1984 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7 + math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) + math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
1985 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.7 - math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
1986 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/7.5)/1, -1.3 + math.sin(sine/3.75)/5, 0) * c_angles(math.rad(0), math.rad(0),math.rad(20)), 0.15) | |
1987 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/3.75)/5,math.rad(0), math.rad(0) - math.sin(sine/15)/4), 0.15) | |
1988 | swait() | |
1989 | end | |
1990 | ||
1991 | SBWeld:Destroy() | |
1992 | SB.CanCollide = true | |
1993 | local bodyVelocity2 = Create("BodyVelocity")({ | |
1994 | velocity = (Mouse.Hit.p - SB.CFrame.p).unit * 165, | |
1995 | P = 5000, | |
1996 | maxForce = Vector3.new(8000, 8000, 8000), | |
1997 | Parent = SB | |
1998 | }) | |
1999 | ||
2000 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
2001 | SB.Touched:connect(function(hit) | |
2002 | if(not Character:IsAncestorOf(hit) or hit.Name == "ShadowBallz") then | |
2003 | for i, v in pairs(FindNearestTorso(SB.CFrame.p, 7)) do | |
2004 | if v:FindFirstChild('Humanoid') then | |
2005 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(25,66)/10 | |
2006 | end | |
2007 | end | |
2008 | local rng2 = Instance.new("Part",Effects) | |
2009 | rng2.Anchored = true | |
2010 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2011 | rng2.CanCollide = false | |
2012 | rng2.FormFactor = 3 | |
2013 | rng2.Name = "Shockwave" | |
2014 | rng2.Material = "Neon" | |
2015 | rng2.Size = Vector3.new(1, 1, 1) | |
2016 | rng2.Transparency = 0.35 | |
2017 | rng2.TopSurface = 0 | |
2018 | rng2.BottomSurface = 0 | |
2019 | rng2.CFrame = SB.CFrame | |
2020 | SB:Destroy() | |
2021 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2022 | rngm2.Scale = Vector3.new(1, 0, 1) | |
2023 | rngm2.Offset = Vector3.new(0,0,0) | |
2024 | rngm2.MeshType = "Sphere" | |
2025 | Spawn(function() | |
2026 | for i = 1, 60, 2 do | |
2027 | rngm2.Scale = Vector3.new(5 + i*0.3, 5 + i*0.3 ,5 + i*0.3) | |
2028 | rng2.Transparency = i/60 | |
2029 | swait() | |
2030 | end | |
2031 | wait() | |
2032 | rng2:Destroy() | |
2033 | end) | |
2034 | for i = 1,6 do | |
2035 | local rng2 = Instance.new("Part",Character) | |
2036 | rng2.Anchored = true | |
2037 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2038 | rng2.CanCollide = false | |
2039 | rng2.FormFactor = 3 | |
2040 | rng2.Name = "Shockwave" | |
2041 | rng2.Size = Vector3.new(1, 1, 1) | |
2042 | rng2.Transparency = 0.35 | |
2043 | rng2.TopSurface = 0 | |
2044 | rng2.BottomSurface = 0 | |
2045 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2046 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2047 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2048 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2049 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2050 | Spawn(function() | |
2051 | for i = 1, 60, 2 do | |
2052 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2053 | rng2.Transparency = i/30 | |
2054 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2055 | swait() | |
2056 | end | |
2057 | wait() | |
2058 | rng2:Destroy() | |
2059 | end) | |
2060 | ||
2061 | local rng2 = Instance.new("Part",Character) | |
2062 | rng2.Anchored = true | |
2063 | rng2.BrickColor = BrickColor.new("Really black") | |
2064 | rng2.CanCollide = false | |
2065 | rng2.FormFactor = 3 | |
2066 | rng2.Name = "Shockwave" | |
2067 | rng2.Size = Vector3.new(1, 1, 1) | |
2068 | rng2.Transparency = 0.35 | |
2069 | rng2.TopSurface = 0 | |
2070 | rng2.BottomSurface = 0 | |
2071 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2072 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2073 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2074 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2075 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2076 | Spawn(function() | |
2077 | for i = 1, 60, 2 do | |
2078 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2079 | rng2.Transparency = i/30 | |
2080 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2081 | swait() | |
2082 | end | |
2083 | wait() | |
2084 | rng2:Destroy() | |
2085 | end) | |
2086 | end | |
2087 | end | |
2088 | end) | |
2089 | end | |
2090 | ||
2091 | function ShadowBallBarrage2() | |
2092 | local SB = Instance.new("Part",Effects) | |
2093 | SB.Name = "ShadowBallz" | |
2094 | SB.Shape = Enum.PartType.Block | |
2095 | SB.CanCollide = false | |
2096 | SB.BrickColor = BrickColor.new("Dark indigo") | |
2097 | SB.Transparency = 0 | |
2098 | SB.Material = "Neon" | |
2099 | SB.Size = Vector3.new(0.25, 0.25, 0.25) | |
2100 | SB.TopSurface = Enum.SurfaceType.Smooth | |
2101 | SB.BottomSurface = Enum.SurfaceType.Smooth local SBWeld = Instance.new("Weld", SB) | |
2102 | SBWeld.Part0 = Left_Arm | |
2103 | SBWeld.Part1 = SB | |
2104 | SBWeld.C1 = CFrame.new(0,1,0) | |
2105 | booem = Instance.new("SpecialMesh",SB) | |
2106 | booem.MeshType = "Sphere" | |
2107 | booem.Scale = Vector3.new(3,3,3) | |
2108 | S = Instance.new("Sound") | |
2109 | S.Parent = SB | |
2110 | S.SoundId = "rbxassetid://315746833" | |
2111 | S.Volume = 5 | |
2112 | S.Looped = false | |
2113 | S.Pitch = 2 | |
2114 | S:Play() | |
2115 | ||
2116 | S = Instance.new("Sound") | |
2117 | S.Parent = SB | |
2118 | S.SoundId = "rbxassetid://203691653" | |
2119 | S.Volume = 8 | |
2120 | S.Looped = false | |
2121 | S.Pitch = 1 | |
2122 | S.PlayOnRemove = true | |
2123 | for i = 0,0.04,0.01 do | |
2124 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
2125 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(-30) + math.sin(sine/7.5)/15, math.rad(90),math.rad(0)), 0.15) | |
2126 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7 + math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) + math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2127 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.7 - math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2128 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/7.5)/1, -1.3 + math.sin(sine/3.75)/5, 0) * c_angles(math.rad(0), math.rad(0),math.rad(-10)), 0.15) | |
2129 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/3.75)/5,math.rad(0), math.rad(0) - math.sin(sine/15)/4), 0.15) | |
2130 | swait() | |
2131 | end | |
2132 | for i = 0,0.05,0.01 do | |
2133 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
2134 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(90),math.rad(0)), 0.15) | |
2135 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7 + math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) + math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2136 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.7 - math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2137 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/7.5)/1, -1.3 + math.sin(sine/3.75)/5, 0) * c_angles(math.rad(0), math.rad(0),math.rad(-20)), 0.15) | |
2138 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/3.75)/5,math.rad(0), math.rad(0) - math.sin(sine/15)/4), 0.15) | |
2139 | swait() | |
2140 | end | |
2141 | ||
2142 | SBWeld:Destroy() | |
2143 | SB.CanCollide = true | |
2144 | local bodyVelocity2 = Create("BodyVelocity")({ | |
2145 | velocity = (Mouse.Hit.p - SB.CFrame.p).unit * 165, | |
2146 | P = 5000, | |
2147 | maxForce = Vector3.new(8000, 8000, 8000), | |
2148 | Parent = SB | |
2149 | }) | |
2150 | ||
2151 | ||
2152 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
2153 | SB.Touched:connect(function(hit) | |
2154 | if(not Character:IsAncestorOf(hit) or hit.Name == "ShadowBallz") then | |
2155 | for i, v in pairs(FindNearestTorso(SB.CFrame.p, 7)) do | |
2156 | if v:FindFirstChild('Humanoid') then | |
2157 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(25,66)/10 | |
2158 | end | |
2159 | end | |
2160 | local rng2 = Instance.new("Part",Effects) | |
2161 | rng2.Anchored = true | |
2162 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2163 | rng2.CanCollide = false | |
2164 | rng2.FormFactor = 3 | |
2165 | rng2.Name = "Shockwave" | |
2166 | rng2.Material = "Neon" | |
2167 | rng2.Size = Vector3.new(1, 1, 1) | |
2168 | rng2.Transparency = 0.35 | |
2169 | rng2.TopSurface = 0 | |
2170 | rng2.BottomSurface = 0 | |
2171 | rng2.CFrame = SB.CFrame | |
2172 | SB:Destroy() | |
2173 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2174 | rngm2.Scale = Vector3.new(1, 0, 1) | |
2175 | rngm2.Offset = Vector3.new(0,0,0) | |
2176 | rngm2.MeshType = "Sphere" | |
2177 | Spawn(function() | |
2178 | for i = 1, 60, 2 do | |
2179 | rngm2.Scale = Vector3.new(5 + i*0.3, 5 + i*0.3 ,5 + i*0.3) | |
2180 | rng2.Transparency = i/60 | |
2181 | swait() | |
2182 | end | |
2183 | wait() | |
2184 | rng2:Destroy() | |
2185 | end) | |
2186 | for i = 1,6 do | |
2187 | local rng2 = Instance.new("Part",Character) | |
2188 | rng2.Anchored = true | |
2189 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2190 | rng2.CanCollide = false | |
2191 | rng2.FormFactor = 3 | |
2192 | rng2.Name = "Shockwave" | |
2193 | rng2.Size = Vector3.new(1, 1, 1) | |
2194 | rng2.Transparency = 0.35 | |
2195 | rng2.TopSurface = 0 | |
2196 | rng2.BottomSurface = 0 | |
2197 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2198 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2199 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2200 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2201 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2202 | Spawn(function() | |
2203 | for i = 1, 60, 2 do | |
2204 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2205 | rng2.Transparency = i/30 | |
2206 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2207 | swait() | |
2208 | end | |
2209 | wait() | |
2210 | rng2:Destroy() | |
2211 | end) | |
2212 | ||
2213 | local rng2 = Instance.new("Part",Character) | |
2214 | rng2.Anchored = true | |
2215 | rng2.BrickColor = BrickColor.new("Really black") | |
2216 | rng2.CanCollide = false | |
2217 | rng2.FormFactor = 3 | |
2218 | rng2.Name = "Shockwave" | |
2219 | rng2.Size = Vector3.new(1, 1, 1) | |
2220 | rng2.Transparency = 0.35 | |
2221 | rng2.TopSurface = 0 | |
2222 | rng2.BottomSurface = 0 | |
2223 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2224 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2225 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2226 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2227 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2228 | Spawn(function() | |
2229 | for i = 1, 60, 2 do | |
2230 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2231 | rng2.Transparency = i/30 | |
2232 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2233 | swait() | |
2234 | end | |
2235 | wait() | |
2236 | rng2:Destroy() | |
2237 | end) | |
2238 | end | |
2239 | end | |
2240 | end) | |
2241 | end | |
2242 | ||
2243 | function ShadowBarrage() | |
2244 | attack = true | |
2245 | attack2 = true | |
2246 | Animations = true | |
2247 | Ocarina.Transparency = 1 | |
2248 | Point = Instance.new("BodyGyro") | |
2249 | Point.Parent = rootPart | |
2250 | Point.D = 175 | |
2251 | Point.P = 20000 | |
2252 | Point.MaxTorque = Vector3.new(0,4000000,0) | |
2253 | for i = 1,5 do | |
2254 | Point.cframe = CFrame.new(rootPart.Position,Mouse.Hit.Position) | |
2255 | ShadowBallBarrage() | |
2256 | Point.cframe = CFrame.new(rootPart.Position,Mouse.Hit.Position) | |
2257 | ShadowBallBarrage2() | |
2258 | end | |
2259 | Point:Destroy() | |
2260 | Ocarina.Transparency = 0 | |
2261 | Animations = false | |
2262 | attack2 = false | |
2263 | attack = false | |
2264 | end | |
2265 | ||
2266 | function MajorasWrath() | |
2267 | attack = true | |
2268 | attack2 = true | |
2269 | Animations = true | |
2270 | fattack = true | |
2271 | Ocarina.Transparency = 1 | |
2272 | S = Instance.new("Sound") | |
2273 | S.Parent = Character.Torso | |
2274 | S.SoundId = "rbxassetid://2061656299" | |
2275 | S.Volume = 10 | |
2276 | S.Looped = false | |
2277 | S.Pitch = 1 | |
2278 | S:Play() | |
2279 | ||
2280 | local Particle = Instance.new("ParticleEmitter",Torso) | |
2281 | Particle.Enabled = true | |
2282 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
2283 | Particle.Rate = 2000 | |
2284 | Particle.ZOffset = 1 | |
2285 | Particle.Lifetime = NumberRange.new(0.5) | |
2286 | Particle.Speed = NumberRange.new(1) | |
2287 | Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
2288 | Particle.Rotation = NumberRange.new(-180, 180) | |
2289 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
2290 | Particle.Texture = "http://www.roblox.com/asset/?id=303194966" | |
2291 | Particle.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0)) | |
2292 | Particle.VelocitySpread = 360 | |
2293 | Particle.LockedToPart = false | |
2294 | ||
2295 | local Particle2 = Instance.new("ParticleEmitter",Right_Arm) | |
2296 | Particle2.Enabled = true | |
2297 | Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
2298 | Particle2.Rate = 2000 | |
2299 | Particle2.ZOffset = 1 | |
2300 | Particle2.Lifetime = NumberRange.new(0.5) | |
2301 | Particle2.Speed = NumberRange.new(1) | |
2302 | Particle2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
2303 | Particle2.Rotation = NumberRange.new(-180, 180) | |
2304 | Particle2.RotSpeed = NumberRange.new(-180, 180) | |
2305 | Particle2.Texture = "http://www.roblox.com/asset/?id=303194966" | |
2306 | Particle2.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133),Color3.fromRGB(61, 21, 133)) | |
2307 | Particle2.VelocitySpread = 360 | |
2308 | Particle2.LockedToPart = false | |
2309 | ||
2310 | local Particle3 = Instance.new("ParticleEmitter",Left_Arm) | |
2311 | Particle3.Enabled = true | |
2312 | Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
2313 | Particle3.Rate = 2000 | |
2314 | Particle3.ZOffset = 1 | |
2315 | Particle3.Lifetime = NumberRange.new(0.5) | |
2316 | Particle3.Speed = NumberRange.new(1) | |
2317 | Particle3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
2318 | Particle3.Rotation = NumberRange.new(-180, 180) | |
2319 | Particle3.RotSpeed = NumberRange.new(-180, 180) | |
2320 | Particle3.Texture = "http://www.roblox.com/asset/?id=303194966" | |
2321 | Particle3.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133),Color3.fromRGB(61, 21, 133)) | |
2322 | Particle3.VelocitySpread = 360 | |
2323 | Particle3.LockedToPart = false | |
2324 | ||
2325 | local Particle4 = Instance.new("ParticleEmitter",Right_Leg) | |
2326 | Particle4.Enabled = true | |
2327 | Particle4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
2328 | Particle4.Rate = 2000 | |
2329 | Particle4.ZOffset = 1 | |
2330 | Particle4.Lifetime = NumberRange.new(0.5) | |
2331 | Particle4.Speed = NumberRange.new(1) | |
2332 | Particle4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
2333 | Particle4.Rotation = NumberRange.new(-180, 180) | |
2334 | Particle4.RotSpeed = NumberRange.new(-180, 180) | |
2335 | Particle4.Texture = "http://www.roblox.com/asset/?id=303194966" | |
2336 | Particle4.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133),Color3.fromRGB(61, 21, 133)) | |
2337 | Particle4.VelocitySpread = 360 | |
2338 | Particle4.LockedToPart = false | |
2339 | ||
2340 | local Particle5 = Instance.new("ParticleEmitter",Left_Leg) | |
2341 | Particle5.Enabled = true | |
2342 | Particle5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
2343 | Particle5.Rate = 2000 | |
2344 | Particle5.ZOffset = 1 | |
2345 | Particle5.Lifetime = NumberRange.new(0.5) | |
2346 | Particle5.Speed = NumberRange.new(1) | |
2347 | Particle5.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.3), NumberSequenceKeypoint.new(1, 1, 0.1)}) | |
2348 | Particle5.Rotation = NumberRange.new(-180, 180) | |
2349 | Particle5.RotSpeed = NumberRange.new(-180, 180) | |
2350 | Particle5.Texture = "http://www.roblox.com/asset/?id=303194966" | |
2351 | Particle5.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133),Color3.fromRGB(61, 21, 133)) | |
2352 | Particle5.VelocitySpread = 360 | |
2353 | Particle5.LockedToPart = false | |
2354 | ||
2355 | ||
2356 | for i = 0,0.25,0.01 do | |
2357 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(60) - math.sin(sine/7.5)/15), 0.15) | |
2358 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/15,math.rad(-60) + math.sin(sine/7.5)/15), 0.15) | |
2359 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(-20)), 0.15) | |
2360 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(20)), 0.15) | |
2361 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15) | |
2362 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, -0.25) * c_angles(math.rad(30),math.rad(0), math.rad(0)), 0.15) | |
2363 | swait() | |
2364 | end | |
2365 | for i = 0,0.8,0.01 do | |
2366 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.4, -0.4) * c_angles(math.rad(110), math.rad(-60) + math.sin(sine/2)/1, math.rad(-60) - math.sin(sine/20)/10), 0.15) | |
2367 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.4, -0.4) * c_angles(math.rad(110), math.rad(60) + math.sin(sine/2)/1, math.rad(60) + math.sin(sine/20)/10), 0.15) | |
2368 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.85, -0.25) * c_angles(math.rad(30) - math.sin(sine/2)/1, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
2369 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.85, -0.25) * c_angles(math.rad(15) + math.sin(sine/2)/1, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
2370 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-20) - math.sin(sine/15)/15 , math.rad(0) + math.sin(sine/4)/3, math.rad(0)), 0.15) | |
2371 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/2)/1, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
2372 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/30,math.rad(4) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30) | |
2373 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/25,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/30) | |
2374 | swait() | |
2375 | end | |
2376 | S = Instance.new("Sound") | |
2377 | S.Parent = Character.Torso | |
2378 | S.SoundId = "rbxassetid://300916082" | |
2379 | S.Volume = 8 | |
2380 | S.Looped = false | |
2381 | S.Pitch = 1 | |
2382 | S:Play() | |
2383 | S = Instance.new("Sound") | |
2384 | S.Parent = Character.Torso | |
2385 | S.SoundId = "rbxassetid://21338895" | |
2386 | S.Volume = 4 | |
2387 | S.Looped = false | |
2388 | S.Pitch = 1 | |
2389 | S:Play() | |
2390 | for i = 0,0.6,0.01 do | |
2391 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.4, -0.4) * c_angles(math.rad(160), math.rad(0) + math.sin(sine/1)/1, math.rad(-10) - math.sin(sine/20)/10), 0.15) | |
2392 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.4, -0.4) * c_angles(math.rad(160), math.rad(0) + math.sin(sine/1)/1, math.rad(10) + math.sin(sine/20)/10), 0.15) | |
2393 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.5 - math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(-20),math.rad(0),math.rad(-5)), 0.15) | |
2394 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5 - math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(-20),math.rad(0),math.rad(5)), 0.15) | |
2395 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, 0 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15) | |
2396 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, -0.8) * c_angles(math.rad(-80),math.rad(0) + math.sin(sine/1)/1, math.rad(0)), 0.15) | |
2397 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/7,math.rad(4) - math.sin(sine/7.5)/7,math.rad(0) + math.sin(sine/7.5)/8) | |
2398 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/5,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/15) | |
2399 | local rng2 = Instance.new("Part",Character) | |
2400 | rng2.Anchored = true | |
2401 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2402 | rng2.CanCollide = false | |
2403 | rng2.FormFactor = 3 | |
2404 | rng2.Name = "Shockwave" | |
2405 | rng2.Size = Vector3.new(1, 1, 1) | |
2406 | rng2.Transparency = 0.35 | |
2407 | rng2.TopSurface = 0 | |
2408 | rng2.BottomSurface = 0 | |
2409 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(0)) | |
2410 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2411 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2412 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2413 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2414 | Spawn(function() | |
2415 | for i = 1, 60, 2 do | |
2416 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
2417 | rngm2.Scale = Vector3.new(5 + i*0.3, 1 + i*0.2 ,5 + i*0.3) | |
2418 | rng2.Transparency = i/30 | |
2419 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2420 | swait() | |
2421 | end | |
2422 | wait() | |
2423 | rng2:Destroy() | |
2424 | end) | |
2425 | ||
2426 | local rng2 = Instance.new("Part",Character) | |
2427 | rng2.Anchored = true | |
2428 | rng2.BrickColor = BrickColor.new("Really black") | |
2429 | rng2.CanCollide = false | |
2430 | rng2.FormFactor = 3 | |
2431 | rng2.Name = "Shockwave" | |
2432 | rng2.Size = Vector3.new(1, 1, 1) | |
2433 | rng2.Transparency = 0.35 | |
2434 | rng2.TopSurface = 0 | |
2435 | rng2.BottomSurface = 0 | |
2436 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(0)) | |
2437 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2438 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2439 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2440 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2441 | Spawn(function() | |
2442 | for i = 1, 60, 2 do | |
2443 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
2444 | rngm2.Scale = Vector3.new(5 + i*1, 0 + i*0.1 ,5 + i*1) | |
2445 | rng2.Transparency = i/30 | |
2446 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2447 | swait() | |
2448 | end | |
2449 | wait() | |
2450 | rng2:Destroy() | |
2451 | end) | |
2452 | swait() | |
2453 | end | |
2454 | S = Instance.new("Sound") | |
2455 | S.Parent = Character.Torso | |
2456 | S.SoundId = "rbxassetid://338601305" | |
2457 | S.Volume = 8 | |
2458 | S.Looped = false | |
2459 | S.Pitch = 1 | |
2460 | S:Play() | |
2461 | ||
2462 | S = Instance.new("Sound") | |
2463 | S.Parent = Character.Torso | |
2464 | S.SoundId = "rbxassetid://1135968340" | |
2465 | S.Volume = 7 | |
2466 | S.Looped = false | |
2467 | S.Pitch = 1 | |
2468 | S:Play() | |
2469 | ||
2470 | ||
2471 | S = Instance.new("Sound") | |
2472 | S.Parent = Character.Torso | |
2473 | S.SoundId = "rbxassetid://2057161687" | |
2474 | S.Volume = 10 | |
2475 | S.Looped = false | |
2476 | S.Pitch = 1 | |
2477 | S:Play() | |
2478 | for i, v in pairs(FindNearestTorso(rootPart.CFrame.p, 20)) do | |
2479 | if v:FindFirstChild('Humanoid') then | |
2480 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(666,1050)/10 | |
2481 | end | |
2482 | end | |
2483 | local rng2 = Instance.new("Part",Effects) | |
2484 | rng2.Anchored = true | |
2485 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2486 | rng2.CanCollide = false | |
2487 | rng2.FormFactor = 3 | |
2488 | rng2.Name = "Shockwave" | |
2489 | rng2.Material = "Neon" | |
2490 | rng2.Size = Vector3.new(1, 1, 1) | |
2491 | rng2.Transparency = 0.35 | |
2492 | rng2.TopSurface = 0 | |
2493 | rng2.BottomSurface = 0 | |
2494 | rng2.CFrame = rootPart.CFrame | |
2495 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2496 | rngm2.Scale = Vector3.new(1, 0, 1) | |
2497 | rngm2.Offset = Vector3.new(0,0,0) | |
2498 | rngm2.MeshType = "Sphere" | |
2499 | Spawn(function() | |
2500 | for i = 1, 60, 2 do | |
2501 | rngm2.Scale = Vector3.new(0 + i*1, 0 + i*1 ,0 + i*1) | |
2502 | rng2.Transparency = i/60 | |
2503 | swait() | |
2504 | end | |
2505 | wait() | |
2506 | rng2:Destroy() | |
2507 | end) | |
2508 | Particle:Destroy() | |
2509 | Particle2:Destroy() | |
2510 | Particle3:Destroy() | |
2511 | Particle4:Destroy() | |
2512 | Particle5:Destroy() | |
2513 | for i = 0,0.8,0.01 do | |
2514 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(60) - math.sin(sine/7.5)/15), 0.15) | |
2515 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/15,math.rad(-60) + math.sin(sine/7.5)/15), 0.15) | |
2516 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(-20)), 0.15) | |
2517 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(20)), 0.15) | |
2518 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15) | |
2519 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, -0.25) * c_angles(math.rad(30),math.rad(0), math.rad(0)), 0.15) | |
2520 | Tael2.C1 = Tael2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(2) + math.sin(sine/7.5)/30,math.rad(4) - math.sin(sine/7.5)/30,math.rad(0) + math.sin(sine/7.5)/30) | |
2521 | Tatl2.C1 = Tatl2.C1 * CFrame.fromEulerAnglesXYZ(math.rad(3) - math.sin(sine/7.5)/25,math.rad(-4) + math.sin(sine/7.5)/12,math.rad(0) - math.sin(sine/7.5)/30) | |
2522 | ||
2523 | local rng2 = Instance.new("Part",Effects) | |
2524 | rng2.Anchored = true | |
2525 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2526 | rng2.CanCollide = false | |
2527 | rng2.FormFactor = 3 | |
2528 | rng2.Name = "Shockwave" | |
2529 | rng2.Material = "Neon" | |
2530 | rng2.Size = Vector3.new(1, 1, 1) | |
2531 | rng2.Transparency = 0.35 | |
2532 | rng2.TopSurface = 0 | |
2533 | rng2.BottomSurface = 0 | |
2534 | rng2.CFrame = rootPart.CFrame | |
2535 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2536 | rngm2.Scale = Vector3.new(1, 0, 1) | |
2537 | rngm2.Offset = Vector3.new(0,0,0) | |
2538 | rngm2.MeshType = "Sphere" | |
2539 | Spawn(function() | |
2540 | for i = 1, 60, 2 do | |
2541 | rngm2.Scale = Vector3.new(0 + i*1.5, 0 + i*1.5 ,0 + i*1.5) | |
2542 | rng2.Transparency = i/60 | |
2543 | swait() | |
2544 | end | |
2545 | wait() | |
2546 | rng2:Destroy() | |
2547 | end) | |
2548 | ||
2549 | local rng2 = Instance.new("Part",Character) | |
2550 | rng2.Anchored = true | |
2551 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2552 | rng2.CanCollide = false | |
2553 | rng2.FormFactor = 3 | |
2554 | rng2.Name = "Shockwave" | |
2555 | rng2.Size = Vector3.new(1, 1, 1) | |
2556 | rng2.Transparency = 0.35 | |
2557 | rng2.TopSurface = 0 | |
2558 | rng2.BottomSurface = 0 | |
2559 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(0)) | |
2560 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2561 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2562 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2563 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2564 | Spawn(function() | |
2565 | for i = 1, 60, 2 do | |
2566 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
2567 | rngm2.Scale = Vector3.new(5 + i*1, 8 + i*0.1 ,5 + i*1) | |
2568 | rng2.Transparency = i/30 | |
2569 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2570 | swait() | |
2571 | end | |
2572 | wait() | |
2573 | rng2:Destroy() | |
2574 | end) | |
2575 | ||
2576 | local rng2 = Instance.new("Part",Character) | |
2577 | rng2.Anchored = true | |
2578 | rng2.BrickColor = BrickColor.new("Really black") | |
2579 | rng2.CanCollide = false | |
2580 | rng2.FormFactor = 3 | |
2581 | rng2.Name = "Shockwave" | |
2582 | rng2.Size = Vector3.new(1, 1, 1) | |
2583 | rng2.Transparency = 0.35 | |
2584 | rng2.TopSurface = 0 | |
2585 | rng2.BottomSurface = 0 | |
2586 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(0)) | |
2587 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2588 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2589 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2590 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2591 | Spawn(function() | |
2592 | for i = 1, 60, 2 do | |
2593 | rng2.CFrame = rng2.CFrame * CFrame.Angles(0,math.rad(5) + i*math.random(1,10),math.rad(0)) | |
2594 | rngm2.Scale = Vector3.new(5 + i*1, 8 + i*0.1 ,5 + i*1) | |
2595 | rng2.Transparency = i/30 | |
2596 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2597 | swait() | |
2598 | end | |
2599 | wait() | |
2600 | rng2:Destroy() | |
2601 | end) | |
2602 | ||
2603 | local rng2 = Instance.new("Part",Character) | |
2604 | rng2.Anchored = true | |
2605 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
2606 | rng2.CanCollide = false | |
2607 | rng2.FormFactor = 3 | |
2608 | rng2.Name = "Shockwave" | |
2609 | rng2.Size = Vector3.new(1, 1, 1) | |
2610 | rng2.Transparency = 0.35 | |
2611 | rng2.TopSurface = 0 | |
2612 | rng2.BottomSurface = 0 | |
2613 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2614 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2615 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2616 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2617 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2618 | Spawn(function() | |
2619 | for i = 1, 60, 2 do | |
2620 | rngm2.Scale = Vector3.new(60 + i*1, 60 + i*1 ,2 + i*0.3) | |
2621 | rng2.Transparency = i/30 | |
2622 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2623 | swait() | |
2624 | end | |
2625 | wait() | |
2626 | rng2:Destroy() | |
2627 | end) | |
2628 | ||
2629 | local rng2 = Instance.new("Part",Character) | |
2630 | rng2.Anchored = true | |
2631 | rng2.BrickColor = BrickColor.new("Really black") | |
2632 | rng2.CanCollide = false | |
2633 | rng2.FormFactor = 3 | |
2634 | rng2.Name = "Shockwave" | |
2635 | rng2.Size = Vector3.new(1, 1, 1) | |
2636 | rng2.Transparency = 0.35 | |
2637 | rng2.TopSurface = 0 | |
2638 | rng2.BottomSurface = 0 | |
2639 | rng2.CFrame = rootPart.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2640 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2641 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2642 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2643 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2644 | Spawn(function() | |
2645 | for i = 1, 60, 2 do | |
2646 | rngm2.Scale = Vector3.new(60 + i*1, 60 + i*1 ,2 + i*0.3) | |
2647 | rng2.Transparency = i/30 | |
2648 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2649 | swait() | |
2650 | end | |
2651 | wait() | |
2652 | rng2:Destroy() | |
2653 | end) | |
2654 | ||
2655 | swait() | |
2656 | end | |
2657 | fattack = false | |
2658 | for i = 0,2,0.01 do | |
2659 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.25, 0) * c_angles(math.rad(0) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
2660 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.25, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
2661 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/15)/5, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/25), 0.15) | |
2662 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5, math.rad(0) - math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/25), 0.15) | |
2663 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/15)/1.5, -0.5 - math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0) + math.sin(sine/15)/10), 0.15) | |
2664 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 + math.sin(sine/15)/6, 1.5 - math.sin(sine/7.5)/15, -0.1) * c_angles(math.rad(0) + math.sin(sine/15)/15,math.rad(0), math.rad(0) - math.sin(sine/15)/10), 0.15) | |
2665 | swait() | |
2666 | end | |
2667 | ||
2668 | Ocarina.Transparency = 0 | |
2669 | Animations = false | |
2670 | attack2 = false | |
2671 | attack = false | |
2672 | end | |
2673 | ||
2674 | function Tornado() | |
2675 | attack = true | |
2676 | attack2 = true | |
2677 | Animations = true | |
2678 | ||
2679 | S = Instance.new("Sound") | |
2680 | S.Parent = Character.Torso | |
2681 | S.SoundId = "rbxassetid://455375894" | |
2682 | S.Volume = 8 | |
2683 | S.Looped = false | |
2684 | S.Pitch = 1 | |
2685 | S.TimePosition = 0.25 | |
2686 | S:Play() | |
2687 | ||
2688 | for i = 0,2.6,0.01 do | |
2689 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.25, 0.5, -0.25) * c_angles(math.rad(90),math.rad(-40) + math.sin(sine/3.75)/5,math.rad(-45)), 0.15) | |
2690 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.5, -0.25) * c_angles(math.rad(90),math.rad(40) - math.sin(sine/3.75)/5,math.rad(45)), 0.15) | |
2691 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7 + math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) + math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2692 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.7 - math.sin(sine/7.5)/5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/1,math.rad(0),math.rad(0) - math.sin(sine/7.5)/15), 0.15) | |
2693 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/7.5)/1, -1.3 + math.sin(sine/3.75)/5, 0) * c_angles(math.rad(0), math.rad(0),math.rad(0) + math.sin(sine/7.5)/4), 0.15) | |
2694 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0) + math.sin(sine/3.75)/5,math.rad(0), math.rad(0) - math.sin(sine/15)/4), 0.15) | |
2695 | swait() | |
2696 | end | |
2697 | local tornada = Instance.new("Part",Character) | |
2698 | tornada.Anchored = true | |
2699 | tornada.BrickColor = BrickColor.new("Dark stone grey") | |
2700 | tornada.CanCollide = false | |
2701 | tornada.FormFactor = 3 | |
2702 | tornada.Name = "Shockwave" | |
2703 | tornada.Size = Vector3.new(1, 1, 1) | |
2704 | tornada.Transparency = 0.35 | |
2705 | tornada.TopSurface = 0 | |
2706 | tornada.BottomSurface = 0 | |
2707 | tornada.CFrame = rootPart.CFrame * CFrame.new(0,0,-10) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
2708 | local rngm2 = Instance.new("SpecialMesh", tornada) | |
2709 | rngm2.MeshId = "http://www.roblox.com/asset/?id=36755354" | |
2710 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2711 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2712 | for i, v in pairs(FindNearestTorso(tornada.CFrame.p, 20)) do | |
2713 | if v:FindFirstChild('Humanoid') then | |
2714 | local bodpos = Instance.new("BodyPosition",v:FindFirstChild("HumanoidRootPart")) | |
2715 | bodpos.D = 175 | |
2716 | bodpos.P = 20000 | |
2717 | bodpos.MaxForce = Vector3.new(4000,40000,4000) | |
2718 | bodpos.Position = tornada.Position + Vector3.new(0,15,0) | |
2719 | target = v | |
2720 | coroutine.wrap(function() | |
2721 | for i = 0,2.5,0.01 do | |
2722 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(1,5)/100 | |
2723 | swait() | |
2724 | end | |
2725 | bodpos:Destroy() | |
2726 | end)() | |
2727 | end | |
2728 | end | |
2729 | Spawn(function() | |
2730 | for i = 1, 60, 2 do | |
2731 | rngm2.Scale = Vector3.new(0.2 + i*0.25, 0 + i*0.3 ,0.2 + i*0.25) | |
2732 | tornada.CFrame = tornada.CFrame * CFrame.new(0,-0.5,0) | |
2733 | swait() | |
2734 | end | |
2735 | for i = 0,2,0.01 do | |
2736 | tornada.CFrame = tornada.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(20),0) | |
2737 | swait() | |
2738 | end | |
2739 | for i = 1, 60, 2 do | |
2740 | rngm2.Scale = Vector3.new(7 + i*0.3, 6 + i*1 ,7 + i*0.3) | |
2741 | tornada.Transparency = i/30 | |
2742 | swait() | |
2743 | end | |
2744 | wait() | |
2745 | tornada:Destroy() | |
2746 | end) | |
2747 | for i = 0,2,0.01 do | |
2748 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
2749 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
2750 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
2751 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
2752 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
2753 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(30) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
2754 | swait() | |
2755 | end | |
2756 | ||
2757 | local SB = Instance.new("Part",Effects) | |
2758 | SB.Name = "ShadowBallz" | |
2759 | SB.Shape = Enum.PartType.Block | |
2760 | SB.CanCollide = false | |
2761 | SB.BrickColor = BrickColor.new("Deep orange") | |
2762 | SB.Transparency = 0 | |
2763 | SB.Material = "Neon" | |
2764 | SB.Size = Vector3.new(0.25, 0.25, 0.25) | |
2765 | SB.TopSurface = Enum.SurfaceType.Smooth | |
2766 | SB.BottomSurface = Enum.SurfaceType.Smooth | |
2767 | SB.CFrame = tornada.CFrame * CFrame.new(0,-10,0) | |
2768 | boom = Instance.new("SpecialMesh",SB) | |
2769 | boom.MeshType = "Sphere" | |
2770 | boom.Scale = Vector3.new(6,6,6) | |
2771 | S = Instance.new("Sound") | |
2772 | S.Parent = SB | |
2773 | S.SoundId = "rbxassetid://213656638" | |
2774 | S.Volume = 5 | |
2775 | S.Looped = false | |
2776 | S.Pitch = 2 | |
2777 | S:Play() | |
2778 | ||
2779 | S = Instance.new("Sound") | |
2780 | S.Parent = SB | |
2781 | S.SoundId = "rbxassetid://206049428" | |
2782 | S.Volume = 8 | |
2783 | S.Looped = false | |
2784 | S.Pitch = 1 | |
2785 | S.PlayOnRemove = true | |
2786 | ||
2787 | SB.CanCollide = true | |
2788 | ||
2789 | SB.Touched:connect(function(hit) | |
2790 | if(not Character:IsAncestorOf(hit) or hit.Name == "ShadowBallz") then | |
2791 | for i, v in pairs(FindNearestTorso(SB.CFrame.p, 7)) do | |
2792 | if v:FindFirstChild('Humanoid') then | |
2793 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(25,30) | |
2794 | end | |
2795 | end | |
2796 | local rng2 = Instance.new("Part",Effects) | |
2797 | rng2.Anchored = true | |
2798 | rng2.BrickColor = BrickColor.new("Really red") | |
2799 | rng2.CanCollide = false | |
2800 | rng2.FormFactor = 3 | |
2801 | rng2.Name = "Shockwave" | |
2802 | rng2.Material = "Neon" | |
2803 | rng2.Size = Vector3.new(1, 1, 1) | |
2804 | rng2.Transparency = 0.35 | |
2805 | rng2.TopSurface = 0 | |
2806 | rng2.BottomSurface = 0 | |
2807 | rng2.CFrame = SB.CFrame | |
2808 | SB:Destroy() | |
2809 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2810 | rngm2.Scale = Vector3.new(1, 0, 1) | |
2811 | rngm2.Offset = Vector3.new(0,0,0) | |
2812 | rngm2.MeshType = "Sphere" | |
2813 | Spawn(function() | |
2814 | for i = 1, 60, 2 do | |
2815 | rngm2.Scale = Vector3.new(5 + i*0.3, 5 + i*0.3 ,5 + i*0.3) | |
2816 | rng2.Transparency = i/60 | |
2817 | swait() | |
2818 | end | |
2819 | wait() | |
2820 | rng2:Destroy() | |
2821 | end) | |
2822 | for i = 1,6 do | |
2823 | local rng2 = Instance.new("Part",Character) | |
2824 | rng2.Anchored = true | |
2825 | rng2.BrickColor = BrickColor.new("Deep orange") | |
2826 | rng2.CanCollide = false | |
2827 | rng2.FormFactor = 3 | |
2828 | rng2.Name = "Shockwave" | |
2829 | rng2.Size = Vector3.new(1, 1, 1) | |
2830 | rng2.Transparency = 0.35 | |
2831 | rng2.TopSurface = 0 | |
2832 | rng2.BottomSurface = 0 | |
2833 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2834 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2835 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2836 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2837 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2838 | Spawn(function() | |
2839 | for i = 1, 60, 2 do | |
2840 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2841 | rng2.Transparency = i/30 | |
2842 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2843 | swait() | |
2844 | end | |
2845 | wait() | |
2846 | rng2:Destroy() | |
2847 | end) | |
2848 | ||
2849 | local rng2 = Instance.new("Part",Character) | |
2850 | rng2.Anchored = true | |
2851 | rng2.BrickColor = BrickColor.new("New Yeller") | |
2852 | rng2.CanCollide = false | |
2853 | rng2.FormFactor = 3 | |
2854 | rng2.Name = "Shockwave" | |
2855 | rng2.Size = Vector3.new(1, 1, 1) | |
2856 | rng2.Transparency = 0.35 | |
2857 | rng2.TopSurface = 0 | |
2858 | rng2.BottomSurface = 0 | |
2859 | rng2.CFrame = SB.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2860 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
2861 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2862 | rngm2.Scale = Vector3.new(0, 0, 0) | |
2863 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
2864 | Spawn(function() | |
2865 | for i = 1, 60, 2 do | |
2866 | rngm2.Scale = Vector3.new(2 + i*1, 2 + i*1 ,2 + i*0.3) | |
2867 | rng2.Transparency = i/30 | |
2868 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
2869 | swait() | |
2870 | end | |
2871 | wait() | |
2872 | rng2:Destroy() | |
2873 | end) | |
2874 | end | |
2875 | end | |
2876 | end) | |
2877 | ||
2878 | for i = 0,0.8,0.01 do | |
2879 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
2880 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
2881 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
2882 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
2883 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
2884 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
2885 | swait() | |
2886 | end | |
2887 | S = Instance.new("Sound") | |
2888 | S.Parent = Character.Torso | |
2889 | S.SoundId = "rbxassetid://2064874783" | |
2890 | S.Volume = 10 | |
2891 | S.Looped = false | |
2892 | S.Pitch = 1 | |
2893 | S:Play() | |
2894 | attack2 = false | |
2895 | target = nil | |
2896 | Animations = false | |
2897 | attack = false | |
2898 | end | |
2899 | ||
2900 | function FallingMoon() -- Are you sure you wanna do this? | |
2901 | attack = true | |
2902 | Animations = true | |
2903 | Ocarina.Transparency = 1 | |
2904 | -- This is it, life on this planet ends here -- | |
2905 | local Moon = Instance.new("Part",game.Workspace) | |
2906 | Moon.Name = "You're Dead" | |
2907 | Moon.Shape = Enum.PartType.Ball | |
2908 | Moon.CanCollide = true | |
2909 | Moon.Anchored = true | |
2910 | Moon.Color = Color3.new(0,0,0) | |
2911 | Moon.Material = "SmoothPlastic" | |
2912 | Moon.Size = Vector3.new(1000, 1000, 1000) | |
2913 | Moon.TopSurface = Enum.SurfaceType.Smooth | |
2914 | Moon.BottomSurface = Enum.SurfaceType.Smooth | |
2915 | Moon.CFrame = rootPart.CFrame * CFrame.new(0,10000,0) | |
2916 | Moon.CFrame = Moon.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
2917 | MoonMesh = Instance.new("FileMesh",Moon) | |
2918 | MoonMesh.MeshId = "http://www.roblox.com/asset/?id=1432303611" | |
2919 | MoonMesh.TextureId = "http://www.roblox.com/asset/?id=1432303667" | |
2920 | MoonMesh.Scale = Vector3.new(15,15,15) | |
2921 | ||
2922 | ||
2923 | game.Lighting.Brightness = 0 | |
2924 | game.Lighting.TimeOfDay = 0 | |
2925 | game.Lighting.OutdoorAmbient = Color3.fromRGB(127,50,50) | |
2926 | ski = Instance.new("Sky",game.Lighting) | |
2927 | ski.MoonAngularSize = 0 | |
2928 | ski.StarCount = 0 | |
2929 | ||
2930 | ||
2931 | ||
2932 | ||
2933 | Theme:Destroy() | |
2934 | S = Instance.new("Sound") | |
2935 | S.Parent = Character | |
2936 | S.SoundId = "rbxassetid://160745944" | |
2937 | S.Volume = 10 | |
2938 | S.Looped = false | |
2939 | S.Pitch = 0.7 | |
2940 | S:Play() | |
2941 | ||
2942 | ||
2943 | S = Instance.new("Sound") | |
2944 | S.Parent = Character | |
2945 | S.SoundId = "rbxassetid://306183328" | |
2946 | S.Volume = 10 | |
2947 | S.Looped = true | |
2948 | S.Pitch = 1 | |
2949 | S:Play() | |
2950 | ||
2951 | coroutine.wrap(function() | |
2952 | while true do | |
2953 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.25, 0) * c_angles(math.rad(0) - math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
2954 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.25, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15), 0.15) | |
2955 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/15)/5, math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/25), 0.15) | |
2956 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) - math.sin(sine/15)/5, math.rad(0) - math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/25), 0.15) | |
2957 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 - math.sin(sine/15)/1.5, -0.5 - math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0) + math.sin(sine/15)/10), 0.15) | |
2958 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0 + math.sin(sine/15)/6, 1.5 - math.sin(sine/7.5)/15, -0.1) * c_angles(math.rad(0) + math.sin(sine/15)/15,math.rad(0), math.rad(0) - math.sin(sine/15)/10), 0.15) | |
2959 | Humanoid.MaxHealth = 1e100 | |
2960 | Humanoid.Health = 1e100 | |
2961 | swait() | |
2962 | end | |
2963 | end)() | |
2964 | coroutine.wrap(function() | |
2965 | while true do | |
2966 | Moon.CFrame = Moon.CFrame * CFrame.new(0,1,0) | |
2967 | swait() | |
2968 | end | |
2969 | end)() | |
2970 | ||
2971 | Moon.Touched:connect(function(hit) | |
2972 | if(not Character:IsAncestorOf(hit)) then | |
2973 | for i, v in pairs(FindNearestTorso(Moon.CFrame.p, 99999999999999999999999)) do | |
2974 | if v:FindFirstChild('Humanoid') then | |
2975 | v:FindFirstChild("Humanoid").Health = 0 | |
2976 | end | |
2977 | end | |
2978 | end | |
2979 | end) | |
2980 | ||
2981 | end | |
2982 | ||
2983 | function MagicTrap() | |
2984 | attack = true | |
2985 | attack2 = true | |
2986 | Animations = true | |
2987 | ||
2988 | lafz = math.random(1,2) | |
2989 | S = Instance.new("Sound") | |
2990 | S.Parent = Character.Torso | |
2991 | if lafz == 1 then | |
2992 | S.SoundId = "rbxassetid://2065249482" | |
2993 | elseif lafz == 2 then | |
2994 | S.SoundId = "rbxassetid://2065252593" | |
2995 | end | |
2996 | S.Volume = 10 | |
2997 | S.Looped = false | |
2998 | S.Pitch = 1 | |
2999 | S:Play() | |
3000 | S = Instance.new("Sound") | |
3001 | S.Parent = Character.Torso | |
3002 | S.SoundId = "rbxassetid://21338895" | |
3003 | S.Volume = 4 | |
3004 | S.Looped = false | |
3005 | S.Pitch = 0.8 | |
3006 | S:Play() | |
3007 | ||
3008 | CircleMagic = Instance.new("Part",Character) | |
3009 | CircleMagic.Transparency=1 | |
3010 | CircleMagic.Size=Vector3.new(30,0,30) | |
3011 | CircleMagic.Anchored=true | |
3012 | CircleMagic.CanCollide=false | |
3013 | CircleMagic.CFrame = rootPart.CFrame * CFrame.new(0,-3,-15) | |
3014 | CMT=Instance.new('Decal',CircleMagic) | |
3015 | CMT.Face='Top' | |
3016 | CMT.Texture='http://www.roblox.com/asset/?id=1193737071' | |
3017 | CMT.Transparency=1 | |
3018 | ||
3019 | for i = 0,1.5,0.01 do | |
3020 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, -0.65) * c_angles(math.rad(50) + math.sin(sine/15)/35,math.rad(-5) - math.sin(sine/15)/35,math.rad(-76) + math.sin(sine/15)/15), 0.15) | |
3021 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, -0.65) * c_angles(math.rad(45) + math.sin(sine/15)/25,math.rad(-10) + math.sin(sine/15)/45,math.rad(76) + math.sin(sine/15)/15), 0.15) | |
3022 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20),math.rad(0),math.rad(5) - math.sin(sine/15)/30), 0.15) | |
3023 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) - math.sin(sine/15)/30), 0.15) | |
3024 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(2 + math.sin(sine/7.5)/15, 0.5 + math.sin(sine/15)/5, 0) * c_angles(math.rad(50), math.rad(0),math.rad(60) + math.sin(sine/7.5)/30), 0.15) | |
3025 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -1) * c_angles(math.rad(-60),math.rad(45) , math.rad(-20) + math.sin(sine/2)/2), 0.15) | |
3026 | MaskWeld.C1 = MaskWeld.C1 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(0) - math.sin(sine/2)/25) | |
3027 | CircleMagic.CFrame = CircleMagic.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(15),0) | |
3028 | swait() | |
3029 | CMT.Transparency = CMT.Transparency - 0.006 | |
3030 | end | |
3031 | MaskWeld.C1 = CFrame.new(0,-0.7,-0.25)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)) | |
3032 | ||
3033 | for i, v in pairs(FindNearestTorso(CircleMagic.CFrame.p, 20)) do | |
3034 | if v:FindFirstChild('Humanoid') then | |
3035 | local bodpos = Instance.new("BodyPosition",v:FindFirstChild("HumanoidRootPart")) | |
3036 | bodpos.D = 175 | |
3037 | bodpos.P = 20000 | |
3038 | bodpos.MaxForce = Vector3.new(4000,40000,4000) | |
3039 | bodpos.Position = CircleMagic.Position + Vector3.new(0,4,0) | |
3040 | target = v | |
3041 | coroutine.wrap(function() | |
3042 | for i = 0,2.5,0.01 do | |
3043 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(5,30)/100 | |
3044 | swait() | |
3045 | end | |
3046 | bodpos:Destroy() | |
3047 | end)() | |
3048 | end | |
3049 | end | |
3050 | ||
3051 | Spawn(function() | |
3052 | wait(1.5) | |
3053 | for i = 1,9 do | |
3054 | CMT.Transparency = CMT.Transparency + 0.1 | |
3055 | swait() | |
3056 | end | |
3057 | CircleMagic:Destroy() | |
3058 | end) | |
3059 | for i = 0,0.5,0.01 do | |
3060 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, -0.65) * c_angles(math.rad(50) + math.sin(sine/15)/35,math.rad(-5) - math.sin(sine/15)/35,math.rad(-76) + math.sin(sine/15)/15), 0.15) | |
3061 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, -0.65) * c_angles(math.rad(45) + math.sin(sine/15)/25,math.rad(-10) + math.sin(sine/15)/45,math.rad(76) + math.sin(sine/15)/15), 0.15) | |
3062 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20),math.rad(0),math.rad(5) - math.sin(sine/15)/30), 0.15) | |
3063 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) - math.sin(sine/15)/30), 0.15) | |
3064 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(2 + math.sin(sine/7.5)/15, 0.5 + math.sin(sine/15)/5, 0) * c_angles(math.rad(50), math.rad(0),math.rad(60) + math.sin(sine/7.5)/30), 0.15) | |
3065 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -1) * c_angles(math.rad(-60),math.rad(45), math.rad(-20)), 0.15) | |
3066 | CircleMagic.CFrame = CircleMagic.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(15),0) | |
3067 | swait() | |
3068 | end | |
3069 | S = Instance.new("Sound") | |
3070 | S.Parent = Character.Torso | |
3071 | S.SoundId = "rbxassetid://323678263" | |
3072 | S.Volume = 9.5 | |
3073 | S.Looped = false | |
3074 | S.Pitch = 1 | |
3075 | S:Play() | |
3076 | for i = 0,0.5,0.01 do | |
3077 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(60),math.rad(0),math.rad(-60)), 0.15) | |
3078 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(80),math.rad(0),math.rad(60)), 0.15) | |
3079 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.5 - math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(-20),math.rad(0),math.rad(-5)), 0.15) | |
3080 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5 - math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(-20),math.rad(0),math.rad(5)), 0.15) | |
3081 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, 0 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(0), math.rad(0),math.rad(5)), 0.15) | |
3082 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, -0.8) * c_angles(math.rad(-80),math.rad(0), math.rad(0)), 0.15) | |
3083 | CircleMagic.CFrame = CircleMagic.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(5),0) | |
3084 | swait() | |
3085 | end | |
3086 | for i, v in pairs(FindNearestTorso(CircleMagic.CFrame.p, 25)) do | |
3087 | if v:FindFirstChild('Humanoid') then | |
3088 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(30,40) | |
3089 | end | |
3090 | end | |
3091 | local rng2 = Instance.new("Part",Effects) | |
3092 | rng2.Anchored = true | |
3093 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
3094 | rng2.CanCollide = false | |
3095 | rng2.FormFactor = 3 | |
3096 | rng2.Name = "Shockwave" | |
3097 | rng2.Material = "Neon" | |
3098 | rng2.Size = Vector3.new(1, 1, 1) | |
3099 | rng2.Transparency = 0.35 | |
3100 | rng2.TopSurface = 0 | |
3101 | rng2.BottomSurface = 0 | |
3102 | rng2.CFrame = CircleMagic.CFrame | |
3103 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
3104 | rngm2.Scale = Vector3.new(1, 0, 1) | |
3105 | rngm2.Offset = Vector3.new(0,0,0) | |
3106 | rngm2.MeshType = "Sphere" | |
3107 | Spawn(function() | |
3108 | for i = 1, 60, 2 do | |
3109 | rngm2.Scale = Vector3.new(13 + i*0.3, 13 + i*0.3 ,13 + i*0.3) | |
3110 | rng2.Transparency = i/60 | |
3111 | swait() | |
3112 | end | |
3113 | wait() | |
3114 | rng2:Destroy() | |
3115 | end) | |
3116 | for i = 1,6 do | |
3117 | local rng2 = Instance.new("Part",Character) | |
3118 | rng2.Anchored = true | |
3119 | rng2.BrickColor = BrickColor.new("Dark indigo") | |
3120 | rng2.CanCollide = false | |
3121 | rng2.FormFactor = 3 | |
3122 | rng2.Name = "Shockwave" | |
3123 | rng2.Size = Vector3.new(1, 1, 1) | |
3124 | rng2.Transparency = 0.35 | |
3125 | rng2.TopSurface = 0 | |
3126 | rng2.BottomSurface = 0 | |
3127 | rng2.CFrame = CircleMagic.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3128 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
3129 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3130 | rngm2.Scale = Vector3.new(0, 0, 0) | |
3131 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
3132 | Spawn(function() | |
3133 | for i = 1, 60, 2 do | |
3134 | rngm2.Scale = Vector3.new(50 + i*1, 50 + i*1 ,2 + i*0.3) | |
3135 | rng2.Transparency = i/30 | |
3136 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
3137 | swait() | |
3138 | end | |
3139 | wait() | |
3140 | rng2:Destroy() | |
3141 | end) | |
3142 | ||
3143 | local rng2 = Instance.new("Part",Character) | |
3144 | rng2.Anchored = true | |
3145 | rng2.BrickColor = BrickColor.new("Really black") | |
3146 | rng2.CanCollide = false | |
3147 | rng2.FormFactor = 3 | |
3148 | rng2.Name = "Shockwave" | |
3149 | rng2.Size = Vector3.new(1, 1, 1) | |
3150 | rng2.Transparency = 0.35 | |
3151 | rng2.TopSurface = 0 | |
3152 | rng2.BottomSurface = 0 | |
3153 | rng2.CFrame = CircleMagic.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3154 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
3155 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3156 | rngm2.Scale = Vector3.new(0, 0, 0) | |
3157 | rngm2.Offset = Vector3.new(0,0,-0.5) | |
3158 | Spawn(function() | |
3159 | for i = 1, 60, 2 do | |
3160 | rngm2.Scale = Vector3.new(50 + i*1, 50 + i*1 ,2 + i*0.3) | |
3161 | rng2.Transparency = i/30 | |
3162 | rng2.CFrame = rng2.CFrame - Vector3.new(0,0.2,0) | |
3163 | swait() | |
3164 | end | |
3165 | wait() | |
3166 | rng2:Destroy() | |
3167 | end) | |
3168 | end | |
3169 | for i = 0,0.5,0.01 do | |
3170 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(60) - math.sin(sine/7.5)/15), 0.15) | |
3171 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine/7.5)/15, -0.5) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) - math.sin(sine/7.5)/15,math.rad(-60) + math.sin(sine/7.5)/15), 0.15) | |
3172 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(-20)), 0.15) | |
3173 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20),math.rad(0),math.rad(20)), 0.15) | |
3174 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -0.5 + math.sin(sine/7.5)/15, 0) * c_angles(math.rad(20), math.rad(0),math.rad(0)), 0.15) | |
3175 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5 + math.sin(sine/7.5)/15, -0.25) * c_angles(math.rad(30),math.rad(0), math.rad(0)), 0.15) | |
3176 | swait() | |
3177 | end | |
3178 | ||
3179 | target = nil | |
3180 | Animations = false | |
3181 | attack2 = false | |
3182 | attack = false | |
3183 | end | |
3184 | ||
3185 | -- Moves -- | |
3186 | ||
3187 | mouse.KeyDown:connect(function(key) | |
3188 | if key == "r" and attack == false then | |
3189 | Laugh() | |
3190 | end end) | |
3191 | ||
3192 | mouse.KeyDown:connect(function(key) | |
3193 | if key == "n" and attack == false then | |
3194 | MagicTrap() | |
3195 | end end) | |
3196 | ||
3197 | mouse.KeyDown:connect(function(key) | |
3198 | if key == "t" and attack == false then | |
3199 | Laser() | |
3200 | end end) | |
3201 | ||
3202 | mouse.KeyDown:connect(function(key) | |
3203 | if key == "v" and attack == false then | |
3204 | ShadowBomb() | |
3205 | end end) | |
3206 | ||
3207 | mouse.KeyDown:connect(function(key) | |
3208 | if key == "m" and attack == false then | |
3209 | MajorasWrath() | |
3210 | end end) | |
3211 | ||
3212 | mouse.KeyDown:connect(function(key) | |
3213 | if key == "c" and attack == false then | |
3214 | Tornado() | |
3215 | end end) | |
3216 | ||
3217 | mouse.KeyDown:connect(function(key) | |
3218 | if key == ";" and attack == false then | |
3219 | FallingMoon() | |
3220 | end end) | |
3221 | ||
3222 | mouse.KeyDown:connect(function(key) | |
3223 | if key == "b" and attack == false then | |
3224 | ShadowBarrage() | |
3225 | end end) | |
3226 | ||
3227 | attk = 1 | |
3228 | mouse.Button1Down:connect(function(key) | |
3229 | if attack == false then | |
3230 | if attk == 1 then | |
3231 | Attackone() | |
3232 | attk = attk + 1 | |
3233 | elseif attk == 2 then | |
3234 | Attacktwo() | |
3235 | attk = attk + 1 | |
3236 | elseif attk == 3 then | |
3237 | Attackthree() | |
3238 | attk = attk + 1 | |
3239 | elseif attk == 4 then | |
3240 | Attackfour() | |
3241 | attk = attk + 1 | |
3242 | elseif attk == 5 then | |
3243 | Attackfive() | |
3244 | attk = attk + 1 | |
3245 | elseif attk == 6 then | |
3246 | Attacksix() | |
3247 | attk = attk + 1 | |
3248 | elseif attk == 7 then | |
3249 | Attackseven() | |
3250 | attk = 1 | |
3251 | end | |
3252 | end | |
3253 | end) | |
3254 | ||
3255 | -- End Of Moves -- | |
3256 | ||
3257 | ||
3258 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants | |
3259 | return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
3260 | end | |
3261 | ||
3262 | function QuaternionFromCFrame(cf) | |
3263 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
3264 | local trace = m00 + m11 + m22 | |
3265 | if trace > 0 then | |
3266 | local s = math.sqrt(1 + trace) | |
3267 | local recip = 0.5/s | |
3268 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
3269 | else | |
3270 | local i = 0 | |
3271 | if m11 > m00 then | |
3272 | i = 1 | |
3273 | end | |
3274 | if m22 > (i == 0 and m00 or m11) then | |
3275 | i = 2 | |
3276 | end | |
3277 | if i == 0 then | |
3278 | local s = math.sqrt(m00-m11-m22+1) | |
3279 | local recip = 0.5/s | |
3280 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
3281 | elseif i == 1 then | |
3282 | local s = math.sqrt(m11-m22-m00+1) | |
3283 | local recip = 0.5/s | |
3284 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
3285 | elseif i == 2 then | |
3286 | local s = math.sqrt(m22-m00-m11+1) | |
3287 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
3288 | end | |
3289 | end | |
3290 | end | |
3291 | ||
3292 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
3293 | local xs, ys, zs = x + x, y + y, z + z | |
3294 | local wx, wy, wz = w*xs, w*ys, w*zs | |
3295 | local xx = x*xs | |
3296 | local xy = x*ys | |
3297 | local xz = x*zs | |
3298 | local yy = y*ys | |
3299 | local yz = y*zs | |
3300 | local zz = z*zs | |
3301 | 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)) | |
3302 | end | |
3303 | ||
3304 | function QuaternionSlerp(a, b, t) | |
3305 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
3306 | local startInterp, finishInterp; | |
3307 | if cosTheta >= 0.0001 then | |
3308 | if (1 - cosTheta) > 0.0001 then | |
3309 | local theta = math.acos(cosTheta) | |
3310 | local invSinTheta = 1/math.sin(theta) | |
3311 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
3312 | finishInterp = math.sin(t*theta)*invSinTheta | |
3313 | else | |
3314 | startInterp = 1-t | |
3315 | finishInterp = t | |
3316 | end | |
3317 | else | |
3318 | if (1+cosTheta) > 0.0001 then | |
3319 | local theta = math.acos(-cosTheta) | |
3320 | local invSinTheta = 1/math.sin(theta) | |
3321 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
3322 | finishInterp = math.sin(t*theta)*invSinTheta | |
3323 | else | |
3324 | startInterp = t-1 | |
3325 | finishInterp = t | |
3326 | end | |
3327 | end | |
3328 | 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 | |
3329 | end | |
3330 | ||
3331 | function clerp(a, b, t) | |
3332 | local qa = {QuaternionFromCFrame(a)} | |
3333 | local qb = {QuaternionFromCFrame(b)} | |
3334 | local ax, ay, az = a.x, a.y, a.z | |
3335 | local bx, by, bz = b.x, b.y, b.z | |
3336 | local _t = 1-t | |
3337 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
3338 | end | |
3339 | ||
3340 | swait() | |
3341 | LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0) | |
3342 | Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
3343 | RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0) | |
3344 | Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
3345 | LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0) | |
3346 | Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15) | |
3347 | RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0) | |
3348 | Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15) | |
3349 | Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0) | |
3350 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
3351 | Head_Weld = newWeld(Torso, Head, 0, 1.5, 0) | |
3352 | ||
3353 | local punches={ | |
3354 | a=false, | |
3355 | b=false, | |
3356 | c=false | |
3357 | } | |
3358 | ||
3359 | UIService.InputBegan:connect(function(Input,GUIProcessed) | |
3360 | if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then | |
3361 | if punches.a==false then | |
3362 | punches.a=true wait(.4) punches.a=false | |
3363 | else | |
3364 | punches.a=true | |
3365 | print('a ',punches.a) | |
3366 | if punches.b==false then | |
3367 | punches.b=true wait(.4) punches.b=false | |
3368 | else | |
3369 | punches.b=true | |
3370 | print('b ',punches.b) | |
3371 | if punches.c==false then | |
3372 | punches.c=true wait(.4) punches.c=false | |
3373 | else | |
3374 | punches.c=true | |
3375 | print('c ',punches.c) | |
3376 | print('a ',punches.a,'b ',punches.b,'c ',punches.c) | |
3377 | end | |
3378 | end | |
3379 | end | |
3380 | elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then | |
3381 | sprint=true | |
3382 | end | |
3383 | end) | |
3384 | ||
3385 | UIService.InputEnded:connect(function(Input,GUIProcessed) | |
3386 | if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then | |
3387 | sprint=false | |
3388 | end | |
3389 | end) | |
3390 | ||
3391 | coroutine.wrap(function() | |
3392 | while true do | |
3393 | if fattack == false then | |
3394 | Tael2.C1 = CFrame.new(2,-3 - math.sin(sine/7.5)/20,-1) | |
3395 | Tatl2.C1 = CFrame.new(-2,-3 + math.sin(sine/7.5)/12,-1) | |
3396 | swait() | |
3397 | else | |
3398 | swait() | |
3399 | end | |
3400 | end | |
3401 | end)() | |
3402 | ||
3403 | coroutine.wrap(function() | |
3404 | while true do | |
3405 | if sprint == false then | |
3406 | if attack2 == false then | |
3407 | Humanoid.WalkSpeed = 8 | |
3408 | Humanoid.JumpPower = 50 | |
3409 | elseif attack2 == true then | |
3410 | Humanoid.WalkSpeed = 0 | |
3411 | Humanoid.JumpPower = 0 | |
3412 | end | |
3413 | elseif sprint == true then | |
3414 | if attack2 == false then | |
3415 | Humanoid.WalkSpeed = 25 | |
3416 | Humanoid.JumpPower = 100 | |
3417 | elseif attack2 == true then | |
3418 | Humanoid.WalkSpeed = 0 | |
3419 | Humanoid.JumpPower = 0 | |
3420 | end | |
3421 | end | |
3422 | wait() | |
3423 | end | |
3424 | end)() | |
3425 | ||
3426 | idly = 0 | |
3427 | idle = idly | |
3428 | ||
3429 | coroutine.wrap(function() | |
3430 | while true do | |
3431 | if currentAnim == "Idling" and attack == false and attack2 == false then | |
3432 | idle=idle+1 | |
3433 | swait() | |
3434 | else | |
3435 | idle=idly | |
3436 | swait() | |
3437 | end | |
3438 | end | |
3439 | end)() | |
3440 | ||
3441 | ||
3442 | mouse.KeyDown:connect(function(key) | |
3443 | if key == "q" and attack == false then | |
3444 | idle = 2500 | |
3445 | end end) | |
3446 | ||
3447 | --[[ Base Animation | |
3448 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
3449 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
3450 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
3451 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15) | |
3452 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0),math.rad(0)), 0.15) | |
3453 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0),math.rad(0), math.rad(0)), 0.15) | |
3454 | ]]-- | |
3455 | ||
3456 | --[[ Idle Anim | |
3457 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
3458 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
3459 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
3460 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
3461 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
3462 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
3463 | --]] | |
3464 | warn("Loaded") | |
3465 | warn("Skull Kid script Made by Zalgo_exe") | |
3466 | game:GetService("RunService").RenderStepped:connect(function() | |
3467 | Angle = (Angle % 100) + angleSpeed/10 | |
3468 | Axis = (Axis % 100) + axisSpeed/10 | |
3469 | walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude | |
3470 | jumpVel = Torso.Velocity.Y | |
3471 | sine = change + sine | |
3472 | ||
3473 | if(Humanoid.Jump) and jumpVel > 1 then | |
3474 | currentAnim = "Jumping" | |
3475 | elseif walkingMagnitude < 2 then | |
3476 | currentAnim = "Idling" | |
3477 | elseif isSprinting == true then | |
3478 | currentAnim = "Sprinting" | |
3479 | elseif walkingMagnitude > 2 then | |
3480 | currentAnim = "Walking" | |
3481 | elseif isAttacking == true then | |
3482 | currentAnim = "Attacking" | |
3483 | end | |
3484 | ||
3485 | if currentAnim == "Jumping" and Animations == false then | |
3486 | angleSpeed = 2 | |
3487 | axisSpeed = 2 | |
3488 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3489 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3490 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3491 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3492 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3493 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3494 | elseif currentAnim == "Idling" and Animations == false then | |
3495 | if idle >= 0 and idle < 2000 then | |
3496 | angleSpeed = 1 | |
3497 | axisSpeed = 1 | |
3498 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
3499 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
3500 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(30) + math.sin(sine/15)/5, math.rad(0),math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
3501 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(15) + math.sin(sine/15)/5, math.rad(0) ,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
3502 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(0) - math.sin(sine/15)/15 , math.rad(0), math.rad(0)), 0.15) | |
3503 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(-10) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
3504 | elseif idle >= 2000 then | |
3505 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, -0.65) * c_angles(math.rad(50) + math.sin(sine/15)/35,math.rad(-5) - math.sin(sine/15)/35,math.rad(-76) + math.sin(sine/15)/15), 0.15) | |
3506 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, -0.65) * c_angles(math.rad(45) + math.sin(sine/15)/25,math.rad(-10) + math.sin(sine/15)/45,math.rad(76) + math.sin(sine/15)/15), 0.15) | |
3507 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20),math.rad(0),math.rad(5) - math.sin(sine/15)/30), 0.15) | |
3508 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/7.5)/15,math.rad(-30) - math.sin(sine/15)/30), 0.15) | |
3509 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(2 + math.sin(sine/7.5)/15, 0.5 + math.sin(sine/15)/5, 0) * c_angles(math.rad(50), math.rad(0),math.rad(60) + math.sin(sine/7.5)/30), 0.15) | |
3510 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -1) * c_angles(math.rad(-60),math.rad(45), math.rad(-20)), 0.15) | |
3511 | end | |
3512 | elseif currentAnim == "Walking" and Animations == false then | |
3513 | if sprint==false then | |
3514 | angleSpeed = 1 | |
3515 | axisSpeed = 1 | |
3516 | Humanoid.WalkSpeed = 30 | |
3517 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(-20) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
3518 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(100) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
3519 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-10) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
3520 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
3521 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-30) - math.sin(sine/15)/15, math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15) | |
3522 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(30) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
3523 | else | |
3524 | angleSpeed = 1 | |
3525 | axisSpeed = 1 | |
3526 | Humanoid.WalkSpeed = 45 | |
3527 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.25) * c_angles(math.rad(-30) - math.sin(sine/7.5)/15, math.rad(30) + math.sin(sine/7.5)/15,math.rad(5) + math.sin(sine/7.5)/15), 0.15) | |
3528 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.25, 0.25, 0) * c_angles(math.rad(90) + math.sin(sine/7.5)/15, math.rad(60),math.rad(-20)), 0.15) | |
3529 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.7, -0.3) * c_angles(math.rad(-20) + math.sin(sine/15)/5, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5) - math.sin(sine/7.5)/25), 0.15) | |
3530 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-30) + math.sin(sine/15)/5, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5) + math.sin(sine/7.5)/25), 0.15) | |
3531 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0 + math.sin(sine/15)/5, -0.5 + math.sin(sine/7.5)/15, 0 + math.sin(sine/7.5)/15) * c_angles(math.rad(-40) - math.sin(sine/15)/15, math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15) | |
3532 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.1) * c_angles(math.rad(40) + math.sin(sine/7.5)/15,math.rad(0) + math.sin(sine/15)/30, math.rad(0) + math.sin(sine/15)/30), 0.15) | |
3533 | end | |
3534 | end | |
3535 | end) | |
3536 | if intro == true then | |
3537 | Intro() | |
3538 | else | |
3539 | Ocarina.Transparency = 0 | |
3540 | Mask.Transparency = 0 | |
3541 | Theme.SoundId = "rbxassetid://302493616" | |
3542 | Theme:Play() | |
3543 | end |