SHOW:
|
|
- or go back to the newest paste.
1 | -----------//KRYSTAL DANCE V2\\----------- | |
2 | --[[Movelist | |
3 | Q = The Swoosher | |
4 | E = The nutty | |
5 | R = Spin me right round! | |
6 | T = Plum juice dance | |
7 | Y = Moonwalk | |
8 | U = Slav dance | |
9 | P = Barrel roll | |
10 | F = The Jerky | |
11 | G = The Shuffle | |
12 | H = The Spongebob | |
13 | J = Here comes the money! | |
14 | K = Runnin' in the 90's | |
15 | ---------]] | |
16 | ||
17 | --Alright so before i start rambling on about absolute nonsense, please subscribe to Pewdiepie on youtube! Help him defeat T-Series!-- | |
18 | --Also subscribe to Vengefulprogram-- | |
19 | --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.-- | |
20 | --This is one of the first scripts i've ever ran on SB, seeing this back again really reminds me of how much of a noob i was.-- | |
21 | --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...-- | |
22 | --#makeoldscriptsgreatagain-- | |
23 | ||
24 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
25 | do | |
26 | script.Parent = owner.Character | |
27 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
28 | local function NewFakeEvent() | |
29 | local Bind = Instance.new("BindableEvent") | |
30 | local Fake;Fake = {Connections = {}, | |
31 | fakeEvent=true; | |
32 | Connect=function(self,Func) | |
33 | Bind.Event:connect(Func) | |
34 | self.Connections[Bind] = true | |
35 | return setmetatable({Connected = true},{ | |
36 | __index = function (self,Index) | |
37 | if Index:lower() == "disconnect" then | |
38 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
39 | end | |
40 | return Fake[Index] | |
41 | end; | |
42 | __tostring = function() return "Connection" end; | |
43 | }) | |
44 | end} | |
45 | Fake.connect = Fake.Connect;return Fake; | |
46 | end | |
47 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
48 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
49 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
50 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
51 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
52 | local function TriggerEvent(self,Event,...) | |
53 | local Trigger = Mouse[Event] | |
54 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
55 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
56 | end | |
57 | end | |
58 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
59 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
60 | if FiredBy.Name ~= owner.Name then return end | |
61 | if Input.MouseEvent then | |
62 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
63 | else | |
64 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
65 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
66 | for _,Action in pairs(ContextActionService.Actions) do | |
67 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
68 | end | |
69 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
70 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
71 | end | |
72 | end) | |
73 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
74 | Event.Parent = NLS([[ | |
75 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
76 | local Input = function(Input,gameProcessedEvent) | |
77 | if gameProcessedEvent then return end | |
78 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
79 | end | |
80 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
81 | local Hit,Target | |
82 | while wait(1/30) do | |
83 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
84 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
85 | end | |
86 | end | |
87 | ]],owner.Character) | |
88 | end | |
89 | RealGame = game;game = setmetatable({},{ | |
90 | __index = function (self,Index) | |
91 | local Sandbox = function (Thing) | |
92 | if Thing:IsA("Player") then | |
93 | local RealPlayer = Thing | |
94 | return setmetatable({},{ | |
95 | __index = function (self,Index) | |
96 | local Type = type(RealPlayer[Index]) | |
97 | if Type == "function" then | |
98 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
99 | return function (self)return InternalData["Mouse"] end | |
100 | end | |
101 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
102 | end | |
103 | return RealPlayer[Index] | |
104 | end; | |
105 | __tostring = function(self) return RealPlayer.Name end | |
106 | }) | |
107 | end | |
108 | end | |
109 | if RealGame[Index] then | |
110 | local Type = type(RealGame[Index]) | |
111 | if Type == "function" then | |
112 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
113 | return function (self,Service) | |
114 | local FakeServices = { | |
115 | ["players"] = function() | |
116 | return setmetatable({},{ | |
117 | __index = function (self2,Index2) | |
118 | local RealService = RealGame:GetService(Service) | |
119 | local Type2 = type(Index2) | |
120 | if Type2 == "function" then | |
121 | return function (self,...) return RealService[Index2](RealService,...)end | |
122 | else | |
123 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
124 | return RealService[Index2] | |
125 | end | |
126 | end; | |
127 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
128 | }) | |
129 | end; | |
130 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
131 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
132 | ["runservice"] = function() | |
133 | return setmetatable({},{ | |
134 | __index = function(self2,Index2) | |
135 | local RealService = RealGame:GetService(Service) | |
136 | local Type2 = type(Index2) | |
137 | if Type2 == "function" then | |
138 | return function (self,...) return RealService[Index2](RealService,...) end | |
139 | else | |
140 | local RunServices = { | |
141 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
142 | ["renderstepped"] = function() return RealService["Stepped"] end | |
143 | } | |
144 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
145 | return RealService[Index2] | |
146 | end | |
147 | end | |
148 | }) | |
149 | end | |
150 | } | |
151 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
152 | return RealGame:GetService(Service) | |
153 | end | |
154 | end | |
155 | return function (self,...) return RealGame[Index](RealGame,...) end | |
156 | else | |
157 | if game:GetService(Index) then return game:GetService(Index) end | |
158 | return RealGame[Index] | |
159 | end | |
160 | end | |
161 | return nil | |
162 | end | |
163 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
164 | ||
165 | Player=game.Players.LocalPlayer | |
166 | Character=Player.Character | |
167 | Character.Humanoid.Name = "noneofurbusiness" | |
168 | hum = Character.noneofurbusiness | |
169 | LeftArm=Character["Left Arm"] | |
170 | LeftLeg=Character["Left Leg"] | |
171 | RightArm=Character["Right Arm"] | |
172 | RightLeg=Character["Right Leg"] | |
173 | Root=Character["HumanoidRootPart"] | |
174 | Head=Character["Head"] | |
175 | Torso=Character["Torso"] | |
176 | Neck=Torso["Neck"] | |
177 | mouse = Player:GetMouse() | |
178 | walking = false | |
179 | jumping = false | |
180 | attacking = false | |
181 | firsttime = false | |
182 | tauntdebounce = false | |
183 | position = nil | |
184 | MseGuide = true | |
185 | running = false | |
186 | settime = 0 | |
187 | sine = 0 | |
188 | t = 0 | |
189 | ws = 14 | |
190 | change = 1 | |
191 | combo1 = true | |
192 | dancing = false | |
193 | equip = false | |
194 | dgs = 75 | |
195 | combo2 = false | |
196 | switch1 = true | |
197 | switch2 = false | |
198 | firsttime2 = false | |
199 | combo3 = false | |
200 | gunallowance = false | |
201 | shooting = false | |
202 | RunSrv = game:GetService("RunService") | |
203 | RenderStepped = game:GetService("RunService").RenderStepped | |
204 | removeuseless = game:GetService("Debris") | |
205 | ||
206 | screenGui = Instance.new("ScreenGui") | |
207 | screenGui.Parent = script.Parent | |
208 | ||
209 | local HEADLERP = Instance.new("ManualWeld") | |
210 | HEADLERP.Parent = Head | |
211 | HEADLERP.Part0 = Head | |
212 | HEADLERP.Part1 = Head | |
213 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
214 | ||
215 | local TORSOLERP = Instance.new("ManualWeld") | |
216 | TORSOLERP.Parent = Root | |
217 | TORSOLERP.Part0 = Torso | |
218 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
219 | ||
220 | local ROOTLERP = Instance.new("ManualWeld") | |
221 | ROOTLERP.Parent = Root | |
222 | ROOTLERP.Part0 = Root | |
223 | ROOTLERP.Part1 = Torso | |
224 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
225 | ||
226 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
227 | RIGHTARMLERP.Parent = RightArm | |
228 | RIGHTARMLERP.Part0 = RightArm | |
229 | RIGHTARMLERP.Part1 = Torso | |
230 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
231 | ||
232 | local LEFTARMLERP = Instance.new("ManualWeld") | |
233 | LEFTARMLERP.Parent = LeftArm | |
234 | LEFTARMLERP.Part0 = LeftArm | |
235 | LEFTARMLERP.Part1 = Torso | |
236 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
237 | ||
238 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
239 | RIGHTLEGLERP.Parent = RightLeg | |
240 | RIGHTLEGLERP.Part0 = RightLeg | |
241 | RIGHTLEGLERP.Part1 = Torso | |
242 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
243 | ||
244 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
245 | LEFTLEGLERP.Parent = LeftLeg | |
246 | LEFTLEGLERP.Part0 = LeftLeg | |
247 | LEFTLEGLERP.Part1 = Torso | |
248 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
249 | ||
250 | local function weldBetween(a, b) | |
251 | local weld = Instance.new("ManualWeld", a) | |
252 | weld.Part0 = a | |
253 | weld.Part1 = b | |
254 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
255 | return weld | |
256 | end | |
257 | ||
258 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
259 | A = Instance.new("Attachment", PARENT) | |
260 | A.Position = POSITION1 | |
261 | A.Name = "A" | |
262 | B = Instance.new("Attachment", PARENT) | |
263 | B.Position = POSITION2 | |
264 | B.Name = "B" | |
265 | tr1 = Instance.new("Trail", PARENT) | |
266 | tr1.Attachment0 = A | |
267 | tr1.Attachment1 = B | |
268 | tr1.Enabled = true | |
269 | tr1.Lifetime = LIFETIME | |
270 | tr1.TextureMode = "Static" | |
271 | tr1.LightInfluence = 0 | |
272 | tr1.Color = COLOR | |
273 | tr1.Transparency = NumberSequence.new(0, 1) | |
274 | end | |
275 | ||
276 | introsound = Instance.new("Sound",Head) | |
277 | introsound.SoundId = "rbxassetid://236146895" | |
278 | introsound.Volume = 8 | |
279 | introsound:Play() | |
280 | ||
281 | shades = Instance.new("Part",Character) | |
282 | - | fedora = Instance.new("Part",Character) |
282 | + | |
283 | - | fedora.Size = Vector3.new(2,2,2) |
283 | + | |
284 | - | fedora.CFrame = Head.CFrame |
284 | + | |
285 | - | fedora.CanCollide = false |
285 | + | |
286 | - | fedoraweld = Instance.new("Weld",fedora) |
286 | + | |
287 | - | fedoraweld.Part0 = fedora |
287 | + | |
288 | - | fedoraweld.Part1 = Head |
288 | + | |
289 | - | fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0) |
289 | + | |
290 | - | mfedora = Instance.new("SpecialMesh", fedora) |
290 | + | |
291 | - | mfedora.MeshType = "FileMesh" |
291 | + | |
292 | - | mfedora.Scale = Vector3.new(.97, .97, .97) |
292 | + | mshades.MeshId = 'http://www.roblox.com/asset/?id=1577360' |
293 | - | mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' |
293 | + | mshades.TextureId = 'https://web.roblox.com/library/4709847816/Clockwork-Shades-Blue' |
294 | -- http://www.roblox.com/asset/?id=1577349 | |
295 | ||
296 | coroutine.wrap(function() | |
297 | while wait() do | |
298 | Head.face.Texture = "rbxasset://textures/face.png" | |
299 | hum.WalkSpeed = ws | |
300 | end | |
301 | end)() | |
302 | godmode = coroutine.wrap(function() | |
303 | for i,v in pairs(Character:GetChildren()) do | |
304 | if v:IsA("BasePart") and v ~= Root then | |
305 | v.Anchored = false | |
306 | - | mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349' |
306 | + | |
307 | end | |
308 | while true do | |
309 | - | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then |
309 | + | |
310 | - | v:Remove() |
310 | + | |
311 | hum.Health = math.huge | |
312 | wait() | |
313 | end | |
314 | end) | |
315 | godmode() | |
316 | ff = Instance.new("ForceField", Character) | |
317 | ff.Visible = false | |
318 | - | LeftArm.BrickColor = BrickColor.new("Really black") |
318 | + | |
319 | - | RightArm.BrickColor = BrickColor.new("Really black") |
319 | + | |
320 | - | Head.BrickColor = BrickColor.new("White") |
320 | + | |
321 | - | Torso.BrickColor = BrickColor.new("Really black") |
321 | + | |
322 | - | LeftLeg.BrickColor = BrickColor.new("Really black") |
322 | + | |
323 | - | RightLeg.BrickColor = BrickColor.new("Really black") |
323 | + | |
324 | end)() | |
325 | ||
326 | function damagealll(Radius,Position) | |
327 | local Returning = {} | |
328 | for _,v in pairs(workspace:GetChildren()) do | |
329 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
330 | if v:FindFirstChild("Torso") then | |
331 | local Mag = (v.Torso.Position - Position).magnitude | |
332 | if Mag < Radius then | |
333 | table.insert(Returning,v) | |
334 | end | |
335 | elseif v:FindFirstChild("UpperTorso") then | |
336 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
337 | if Mag < Radius then | |
338 | table.insert(Returning,v) | |
339 | end | |
340 | end | |
341 | end | |
342 | end | |
343 | return Returning | |
344 | end | |
345 | ||
346 | ArtificialHB = Instance.new("BindableEvent", script) | |
347 | ArtificialHB.Name = "Heartbeat" | |
348 | script:WaitForChild("Heartbeat") | |
349 | ||
350 | frame = 1 / 60 | |
351 | tf = 0 | |
352 | allowframeloss = false | |
353 | tossremainder = false | |
354 | ||
355 | ||
356 | lastframe = tick() | |
357 | script.Heartbeat:Fire() | |
358 | ||
359 | ||
360 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
361 | tf = tf + s | |
362 | if tf >= frame then | |
363 | if allowframeloss then | |
364 | script.Heartbeat:Fire() | |
365 | lastframe = tick() | |
366 | else | |
367 | for i = 1, math.floor(tf / frame) do | |
368 | script.Heartbeat:Fire() | |
369 | end | |
370 | lastframe = tick() | |
371 | end | |
372 | if tossremainder then | |
373 | tf = 0 | |
374 | else | |
375 | tf = tf - frame * math.floor(tf / frame) | |
376 | end | |
377 | end | |
378 | end) | |
379 | ||
380 | function swait(num) | |
381 | if num == 0 or num == nil then | |
382 | game:service("RunService").Stepped:wait(0) | |
383 | else | |
384 | for i = 0, num do | |
385 | game:service("RunService").Stepped:wait(0) | |
386 | end | |
387 | end | |
388 | end | |
389 | ||
390 | intro = true | |
391 | ws = 0 | |
392 | ||
393 | bigfedora = Instance.new("Part",Character) | |
394 | bigfedora.Size = Vector3.new(2,2,2) | |
395 | bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0) | |
396 | bigfedora.CanCollide = false | |
397 | bigfedora.Anchored = true | |
398 | bigfedora.Name = "mbigf" | |
399 | mbigfedora = Instance.new("SpecialMesh", bigfedora) | |
400 | mbigfedora.MeshType = "FileMesh" | |
401 | mbigfedora.Scale = Vector3.new(6, 7, 7) | |
402 | mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' | |
403 | for i,v in pairs(Character:GetDescendants()) do | |
404 | if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1 | |
405 | end | |
406 | end | |
407 | for i = 1, 60 do | |
408 | bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09) | |
409 | swait() | |
410 | end | |
411 | wait(.25) | |
412 | for i,v in pairs(Character:GetDescendants()) do | |
413 | if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0 | |
414 | - | for _,n in pairs(Character:GetChildren()) do |
414 | + | |
415 | - | if n:IsA("Accessory") then n:Remove() end |
415 | + | |
416 | for i = 1, 50 do | |
417 | - | for _,x in pairs(Character:GetChildren()) do |
417 | + | bigfedora:Destroy() |
418 | - | if x:IsA("Decal") then x:Remove() end |
418 | + | |
419 | end | |
420 | zmc = 0 | |
421 | for i = 1, 29 do | |
422 | zmc = zmc + 2 | |
423 | mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25) | |
424 | bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0) | |
425 | swait() | |
426 | end | |
427 | bigfedora:Remove() | |
428 | ||
429 | ws = 14 | |
430 | ||
431 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
432 | so = Instance.new("Sound") | |
433 | so.Parent = PARENT | |
434 | so.SoundId = "rbxassetid://"..ID | |
435 | so.Volume = VOL | |
436 | so.Looped = LOOP | |
437 | ||
438 | so:Play() | |
439 | removeuseless:AddItem(so,REMOVE) | |
440 | end | |
441 | ||
442 | mouse.KeyDown:connect(function(Press) | |
443 | Press=Press:lower() | |
444 | if Press=='k' then | |
445 | if dancing then | |
446 | dancing = false | |
447 | else | |
448 | - | bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05) |
448 | + | |
449 | ws = 0 | |
450 | change = .5 | |
451 | attacking = true | |
452 | jam = Instance.new("Sound",Torso) | |
453 | jam.SoundId = "rbxassetid://665751753" | |
454 | jam.Volume = 8 | |
455 | jam.Looped = true | |
456 | jam.TimePosition = 22.3 | |
457 | jam:Play() | |
458 | lol90 = 0 | |
459 | coroutine.wrap(function() | |
460 | while dancing do | |
461 | lol90 = lol90 + 11 | |
462 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25) | |
463 | ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25) | |
464 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25) | |
465 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25) | |
466 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25) | |
467 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25) | |
468 | swait() | |
469 | end | |
470 | ws = 14 | |
471 | jam:Remove() | |
472 | ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
473 | attacking = false | |
474 | end)() | |
475 | end | |
476 | end | |
477 | end) | |
478 | ||
479 | mouse.KeyDown:connect(function(Press) | |
480 | Press=Press:lower() | |
481 | if Press=='j' then | |
482 | if dancing then | |
483 | dancing = false | |
484 | else | |
485 | dancing = true | |
486 | ws = 3 | |
487 | change = .5 | |
488 | attacking = true | |
489 | g1 = Instance.new("BodyGyro", Root) | |
490 | g1.D = 175 | |
491 | g1.P = 20000 | |
492 | g1.MaxTorque = Vector3.new(0,9000,0) | |
493 | herecomesthemoney = Instance.new("Sound",Torso) | |
494 | herecomesthemoney.Pitch = 1 | |
495 | herecomesthemoney.SoundId = "rbxassetid://2426693638" | |
496 | herecomesthemoney.Volume = 8 | |
497 | herecomesthemoney.Looped = true | |
498 | herecomesthemoney:Play() | |
499 | robuxpile = Instance.new("Part",Torso) | |
500 | robuxpile.Size = Vector3.new(1,1,1) | |
501 | robuxpile.CFrame = LeftArm.CFrame | |
502 | robuxpile.CanCollide = false | |
503 | robuxpileweld = Instance.new("Weld",robuxpile) | |
504 | robuxpileweld.Part0 = robuxpile | |
505 | robuxpileweld.Part1 = Torso | |
506 | robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4) | |
507 | mrobuxpile = Instance.new("SpecialMesh", robuxpile) | |
508 | mrobuxpile.MeshType = "FileMesh" | |
509 | mrobuxpile.Scale = Vector3.new(0.85, .85, .85) | |
510 | mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344' | |
511 | coroutine.wrap(function() | |
512 | coroutine.wrap(function() | |
513 | while wait(.35) do | |
514 | if not dancing then break end | |
515 | local robux = Instance.new("Part",Torso) | |
516 | robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90)) | |
517 | robux.Anchored = false | |
518 | robux.CanCollide = true | |
519 | robux.Size = Vector3.new(1,1,1) | |
520 | removeuseless:AddItem(robux,4) | |
521 | mrobux = Instance.new("SpecialMesh", robux) | |
522 | mrobux.MeshType = "FileMesh" | |
523 | mrobux.Scale = Vector3.new(1.25, 1.25, 1.25) | |
524 | mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136' | |
525 | bov = Instance.new("BodyVelocity",robux) | |
526 | bov.maxForce = Vector3.new(99999,99999,99999) | |
527 | robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p) | |
528 | bov.velocity = robux.CFrame.lookVector*45 | |
529 | removeuseless:AddItem(bov,.1) | |
530 | end | |
531 | end)() | |
532 | while dancing do | |
533 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
534 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25) | |
535 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25) | |
536 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25) | |
537 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25) | |
538 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25) | |
539 | swait() | |
540 | end | |
541 | ws = 14 | |
542 | removeuseless:AddItem(g1,.001) | |
543 | robuxpile:Remove() | |
544 | attacking = false | |
545 | end)() | |
546 | end | |
547 | end | |
548 | end) | |
549 | ||
550 | mouse.KeyDown:connect(function(Press) | |
551 | Press=Press:lower() | |
552 | if Press=='h' then | |
553 | if dancing then | |
554 | dancing = false | |
555 | else | |
556 | dancing = true | |
557 | ws = 0 | |
558 | change = .5 | |
559 | attacking = true | |
560 | jellyfishjam = Instance.new("Sound",Torso) | |
561 | jellyfishjam.SoundId = "rbxassetid://840189092" | |
562 | jellyfishjam.Volume = 8 | |
563 | jellyfishjam.Looped = true | |
564 | jellyfishjam.TimePosition = 14.8 | |
565 | jellyfishjam:Play() | |
566 | coroutine.wrap(function() | |
567 | while dancing do | |
568 | for i = 1, 15 do | |
569 | if not dancing then break end | |
570 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25) | |
571 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
572 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
573 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25) | |
574 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25) | |
575 | swait() | |
576 | end | |
577 | for i = 1, 15 do | |
578 | if not dancing then break end | |
579 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) | |
580 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
581 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
582 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25) | |
583 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25) | |
584 | swait() | |
585 | end | |
586 | for i = 1, 15 do | |
587 | if not dancing then break end | |
588 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25) | |
589 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
590 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
591 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25) | |
592 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25) | |
593 | swait() | |
594 | end | |
595 | for i = 1, 15 do | |
596 | if not dancing then break end | |
597 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) | |
598 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
599 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
600 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3) | |
601 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25) | |
602 | swait() | |
603 | end | |
604 | swait() | |
605 | end | |
606 | ws = 14 | |
607 | attacking = false | |
608 | end)() | |
609 | end | |
610 | end | |
611 | end) | |
612 | ||
613 | mouse.KeyDown:connect(function(Press) | |
614 | Press=Press:lower() | |
615 | if Press=='g' then | |
616 | if dancing then | |
617 | dancing = false | |
618 | else | |
619 | dancing = true | |
620 | ws = 0 | |
621 | change = .5 | |
622 | attacking = true | |
623 | deadmau7 = Instance.new("Sound",Torso) | |
624 | deadmau7.SoundId = "rbxassetid://168166611" | |
625 | deadmau7.Volume = 8 | |
626 | deadmau7.Looped = true | |
627 | deadmau7:Play() | |
628 | coroutine.wrap(function() | |
629 | coroutine.wrap(function() | |
630 | while dancing do | |
631 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25) | |
632 | swait() | |
633 | end | |
634 | end)() | |
635 | while dancing do | |
636 | for i = 1, 28 do | |
637 | if not dancing then break end | |
638 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2) | |
639 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2) | |
640 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25) | |
641 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3) | |
642 | swait() | |
643 | end | |
644 | for i = 1, 28 do | |
645 | if not dancing then break end | |
646 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2) | |
647 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2) | |
648 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25) | |
649 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25) | |
650 | swait() | |
651 | end | |
652 | swait() | |
653 | end | |
654 | ws = 14 | |
655 | deadmau7:Remove() | |
656 | attacking = false | |
657 | end)() | |
658 | end | |
659 | end | |
660 | end) | |
661 | ||
662 | mouse.KeyDown:connect(function(Press) | |
663 | Press=Press:lower() | |
664 | if Press=='f' then | |
665 | if dancing then | |
666 | dancing = false | |
667 | else | |
668 | dancing = true | |
669 | ws = 6 | |
670 | change = .5 | |
671 | attacking = true | |
672 | bennyhill = Instance.new("Sound",Torso) | |
673 | bennyhill.SoundId = "rbxassetid://138211362" | |
674 | bennyhill.Volume = 8 | |
675 | bennyhill.Looped = true | |
676 | bennyhill:Play() | |
677 | coroutine.wrap(function() | |
678 | while dancing do | |
679 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25) | |
680 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25) | |
681 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine/2)),0,math.rad(0)),.25) | |
682 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25) | |
683 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25) | |
684 | swait() | |
685 | end | |
686 | ws = 14 | |
687 | bennyhill:Remove() | |
688 | attacking = false | |
689 | end)() | |
690 | end | |
691 | end | |
692 | end) | |
693 | ||
694 | mouse.KeyDown:connect(function(Press) | |
695 | Press=Press:lower() | |
696 | if Press=='p' then | |
697 | if dancing then | |
698 | dancing = false | |
699 | else | |
700 | dancing = true | |
701 | ws = 0 | |
702 | change = .5 | |
703 | attacking = true | |
704 | barrelspin = 0 | |
705 | barrelrollsound = Instance.new("Sound",Torso) | |
706 | barrelrollsound.SoundId = "rbxassetid://505320170" | |
707 | barrelrollsound.Volume = 8 | |
708 | barrelrollsound.Looped = true | |
709 | barrelrollsound:Play() | |
710 | barrol = Instance.new("Part",Torso) | |
711 | barrol.Size = Vector3.new(1,1,1) | |
712 | barrol.CFrame = Torso.CFrame | |
713 | barrol.CanCollide = false | |
714 | barrolweld = Instance.new("Weld",barrol) | |
715 | barrolweld.Part0 = barrol | |
716 | barrolweld.Part1 = Torso | |
717 | barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0) | |
718 | mbarrol = Instance.new("SpecialMesh", barrol) | |
719 | mbarrol.MeshType = "FileMesh" | |
720 | mbarrol.Scale = Vector3.new(1.05, .95, 1.05) | |
721 | mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268' | |
722 | coroutine.wrap(function() | |
723 | while dancing do | |
724 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25) | |
725 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) | |
726 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) | |
727 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25) | |
728 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25) | |
729 | swait() | |
730 | end | |
731 | ws = 14 | |
732 | barrol:Remove() | |
733 | attacking = false | |
734 | end)() | |
735 | end | |
736 | end | |
737 | end) | |
738 | ||
739 | mouse.KeyDown:connect(function(Press) | |
740 | Press=Press:lower() | |
741 | if Press=='q' then | |
742 | if dancing then | |
743 | dancing = false | |
744 | else | |
745 | dancing = true | |
746 | ws = 0 | |
747 | change = .5 | |
748 | spinningmove = 0 | |
749 | dbwouldlovethis = Instance.new("Sound",Torso) | |
750 | dbwouldlovethis.SoundId = "rbxassetid://1532157598" | |
751 | dbwouldlovethis.Volume = 8 | |
752 | dbwouldlovethis.Looped = true | |
753 | dbwouldlovethis:Play() | |
754 | attacking = true | |
755 | coroutine.wrap(function() | |
756 | while dancing do | |
757 | spinningmove = spinningmove + 10 | |
758 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2) | |
759 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
760 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2) | |
761 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3) | |
762 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3) | |
763 | swait() | |
764 | end | |
765 | ws = 14 | |
766 | dbwouldlovethis:Remove() | |
767 | attacking = false | |
768 | end)() | |
769 | end | |
770 | end | |
771 | end) | |
772 | ||
773 | ||
774 | mouse.KeyDown:connect(function(Press) | |
775 | Press=Press:lower() | |
776 | if Press=='u' then | |
777 | if dancing then | |
778 | dancing = false | |
779 | else | |
780 | dancing = true | |
781 | ws = 6 | |
782 | change = .5 | |
783 | attacking = true | |
784 | slavdance = Instance.new("Sound",Torso) | |
785 | slavdance.SoundId = "rbxassetid://2341226836" | |
786 | slavdance.Volume = 6 | |
787 | slavdance.Looped = true | |
788 | slavdance:Play() | |
789 | coroutine.wrap(function() | |
790 | while dancing do | |
791 | for i = 1, 17 do | |
792 | if not dancing then break end | |
793 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
794 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
795 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) | |
796 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) | |
797 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) | |
798 | swait() | |
799 | end | |
800 | for i = 1, 17 do | |
801 | if not dancing then break end | |
802 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
803 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
804 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) | |
805 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) | |
806 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) | |
807 | swait() | |
808 | end | |
809 | swait() | |
810 | end | |
811 | ws = 14 | |
812 | slavdance:Remove() | |
813 | attacking = false | |
814 | end)() | |
815 | end | |
816 | end | |
817 | end) | |
818 | ||
819 | mouse.KeyDown:connect(function(Press) | |
820 | Press=Press:lower() | |
821 | if Press=='y' then | |
822 | if dancing then | |
823 | dancing = false | |
824 | else | |
825 | dancing = true | |
826 | ws = 0 | |
827 | change = .5 | |
828 | walkforward = 0 | |
829 | walkrotation = 0 | |
830 | attacking = true | |
831 | truelegend = Instance.new("Sound",Torso) | |
832 | truelegend.SoundId = "rbxassetid://487872908" | |
833 | truelegend.TimePosition = 13.98 | |
834 | truelegend.Volume = 8 | |
835 | truelegend.Looped = true | |
836 | truelegend:Play() | |
837 | coroutine.wrap(function() | |
838 | while dancing do | |
839 | for i = 1, 100 do | |
840 | if not dancing then break end | |
841 | walkforward = walkforward + .1 | |
842 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
843 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
844 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
845 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
846 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
847 | swait() | |
848 | end | |
849 | for i = 1, 50 do | |
850 | if not dancing then break end | |
851 | walkrotation = walkrotation + 15 | |
852 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
853 | swait() | |
854 | end | |
855 | walkrotation = 0 | |
856 | for i = 1, 100 do | |
857 | if not dancing then break end | |
858 | walkforward = walkforward - .1 | |
859 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
860 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
861 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2) | |
862 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4) | |
863 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
864 | swait() | |
865 | end | |
866 | for i = 1, 50 do | |
867 | if not dancing then break end | |
868 | walkrotation = walkrotation + 15 | |
869 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1) | |
870 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
871 | swait() | |
872 | end | |
873 | walkrotation = 0 | |
874 | swait() | |
875 | end | |
876 | ws = 14 | |
877 | truelegend:Remove() | |
878 | attacking = false | |
879 | end)() | |
880 | end | |
881 | end | |
882 | end) | |
883 | ||
884 | mouse.KeyDown:connect(function(Press) | |
885 | Press=Press:lower() | |
886 | if Press=='t' then | |
887 | if dancing then | |
888 | dancing = false | |
889 | else | |
890 | dancing = true | |
891 | ws = 0 | |
892 | change = .5 | |
893 | attacking = true | |
894 | plummusic = Instance.new("Sound",Torso) | |
895 | plummusic.Volume = 8 | |
896 | plummusic.Looped = true | |
897 | plummusic.SoundId = "rbxassetid://2526093213" | |
898 | plummusic:Play() | |
899 | coroutine.wrap(function() | |
900 | while dancing do | |
901 | for i = 1, 20 do | |
902 | if not dancing then break end | |
903 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) | |
904 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2) | |
905 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2) | |
906 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2) | |
907 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2) | |
908 | swait() | |
909 | end | |
910 | for i = 1, 20 do | |
911 | if not dancing then break end | |
912 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) | |
913 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2) | |
914 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2) | |
915 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2) | |
916 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2) | |
917 | swait() | |
918 | end | |
919 | swait() | |
920 | end | |
921 | ws = 14 | |
922 | plummusic:Remove() | |
923 | attacking = false | |
924 | end)() | |
925 | end | |
926 | end | |
927 | end) | |
928 | ||
929 | mouse.KeyDown:connect(function(Press) | |
930 | Press=Press:lower() | |
931 | if Press=='e' then | |
932 | if dancing then | |
933 | dancing = false | |
934 | else | |
935 | dancing = true | |
936 | ws = 0 | |
937 | change = .5 | |
938 | attacking = true | |
939 | mrozo = Instance.new("Sound",Torso) | |
940 | mrozo.Volume = 8 | |
941 | mrozo.SoundId = "rbxassetid://335701357" | |
942 | mrozo.Looped = true | |
943 | mrozo.TimePosition = 10 | |
944 | mrozo:Play() | |
945 | coroutine.wrap(function() | |
946 | while dancing do | |
947 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1) | |
948 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1) | |
949 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2) | |
950 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2) | |
951 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2) | |
952 | swait() | |
953 | end | |
954 | mrozo:Remove() | |
955 | ws = 14 | |
956 | attacking = false | |
957 | end)() | |
958 | end | |
959 | end | |
960 | end) | |
961 | ||
962 | mouse.KeyDown:connect(function(Press) | |
963 | Press=Press:lower() | |
964 | if Press=='r' then | |
965 | if dancing then | |
966 | dancing = false | |
967 | else | |
968 | ws = 6 | |
969 | recordbaby = 0 | |
970 | dancing = true | |
971 | change = .5 | |
972 | attacking = true | |
973 | spinme = Instance.new("Sound",Torso) | |
974 | spinme.Volume = 8 | |
975 | spinme.SoundId = "rbxassetid://145799973" | |
976 | spinme.Looped = true | |
977 | spinme:Play() | |
978 | coroutine.wrap(function() | |
979 | while dancing do | |
980 | recordbaby = recordbaby + 10 | |
981 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
982 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
983 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3) | |
984 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3) | |
985 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3) | |
986 | swait() | |
987 | end | |
988 | spinme:Remove() | |
989 | ws = 14 | |
990 | attacking = false | |
991 | end)() | |
992 | end | |
993 | end | |
994 | end) | |
995 | ||
996 | function ray(pos, dir, rang, ignoredesc) | |
997 | return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc) | |
998 | end | |
999 | ||
1000 | function ray2(startpos, endpos, distance, ignore) | |
1001 | local dir = CFrame.new(startpos,endpos).lookVector | |
1002 | return ray(startpos, dir, distance, ignore) | |
1003 | end | |
1004 | ||
1005 | checks1 = coroutine.wrap(function() -------Checks | |
1006 | while true do | |
1007 | hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character) | |
1008 | if Root.Velocity.y > 1 then | |
1009 | position = "Jump" | |
1010 | elseif Root.Velocity.y < -1 then | |
1011 | position = "Falling" | |
1012 | elseif Root.Velocity.Magnitude < 2 then | |
1013 | position = "Idle" | |
1014 | elseif Root.Velocity.Magnitude > 2 then | |
1015 | position = "Walking" | |
1016 | elseif Root.Velocity.Magnitude > 20 then | |
1017 | position = "Running" | |
1018 | else | |
1019 | end | |
1020 | wait() | |
1021 | end | |
1022 | end) | |
1023 | checks1() | |
1024 | ||
1025 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1026 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1027 | end | |
1028 | ||
1029 | function ray2(StartPos, EndPos, Distance, Ignore) | |
1030 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
1031 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
1032 | end | |
1033 | ||
1034 | OrgnC0 = Neck.C0 | |
1035 | local movelimbs = coroutine.wrap(function() | |
1036 | while RunSrv.RenderStepped:wait() do | |
1037 | TrsoLV = Torso.CFrame.lookVector | |
1038 | Dist = nil | |
1039 | Diff = nil | |
1040 | if not MseGuide then | |
1041 | print("Failed to recognize") | |
1042 | else | |
1043 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
1044 | Dist = (Head.CFrame.p-Point).magnitude | |
1045 | Diff = Head.CFrame.Y-Point.Y | |
1046 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
1047 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
1048 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
1049 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1050 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
1051 | end | |
1052 | end | |
1053 | end) | |
1054 | movelimbs() | |
1055 | immortal = {} | |
1056 | for i,v in pairs(Character:GetDescendants()) do | |
1057 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then | |
1058 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
1059 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1060 | end | |
1061 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) | |
1062 | elseif v:IsA("JointInstance") then | |
1063 | table.insert(immortal,{v,v.Parent,nil,nil,nil}) | |
1064 | end | |
1065 | end | |
1066 | for e = 1, #immortal do | |
1067 | if immortal[e] ~= nil then | |
1068 | local STUFF = immortal[e] | |
1069 | local PART = STUFF[1] | |
1070 | local PARENT = STUFF[2] | |
1071 | local MATERIAL = STUFF[3] | |
1072 | local COLOR = STUFF[4] | |
1073 | local TRANSPARENCY = STUFF[5] | |
1074 | if levitate then | |
1075 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
1076 | PART.Material = MATERIAL | |
1077 | PART.Color = COLOR | |
1078 | PART.Transparency = TRANSPARENCY | |
1079 | end | |
1080 | PART.AncestryChanged:connect(function() | |
1081 | PART.Parent = PARENT | |
1082 | end) | |
1083 | else | |
1084 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
1085 | PART.Material = MATERIAL | |
1086 | PART.Color = COLOR | |
1087 | PART.Transparency = TRANSPARENCY | |
1088 | end | |
1089 | PART.AncestryChanged:connect(function() | |
1090 | PART.Parent = PARENT | |
1091 | end) | |
1092 | end | |
1093 | end | |
1094 | end | |
1095 | function immortality() | |
1096 | for e = 1, #immortal do | |
1097 | if immortal[e] ~= nil then | |
1098 | local STUFF = immortal[e] | |
1099 | local PART = STUFF[1] | |
1100 | local PARENT = STUFF[2] | |
1101 | local MATERIAL = STUFF[3] | |
1102 | local COLOR = STUFF[4] | |
1103 | local TRANSPARENCY = STUFF[5] | |
1104 | if PART.ClassName == "Part" and PART == Root then | |
1105 | PART.Material = MATERIAL | |
1106 | PART.Color = COLOR | |
1107 | PART.Transparency = TRANSPARENCY | |
1108 | end | |
1109 | if PART.Parent ~= PARENT then | |
1110 | hum:Remove() | |
1111 | PART.Parent = PARENT | |
1112 | hum = Instance.new("Humanoid",Character) | |
1113 | hum.Name = "noneofurbusiness" | |
1114 | end | |
1115 | end | |
1116 | end | |
1117 | end | |
1118 | coroutine.wrap(function() | |
1119 | while true do | |
1120 | if hum.Health < .1 then | |
1121 | deadsound = Instance.new("Sound", Torso) | |
1122 | deadsound.Volume = 6 | |
1123 | deadsound.SoundId = "rbxassetid://1411352723" | |
1124 | deadsound:Play() | |
1125 | immortality() | |
1126 | end | |
1127 | wait() | |
1128 | end | |
1129 | end)() | |
1130 | ||
1131 | local anims = coroutine.wrap(function() | |
1132 | while true do | |
1133 | settime = 0.05 | |
1134 | sine = sine + change | |
1135 | if position == "Jump" and attacking == false then | |
1136 | change = 1 | |
1137 | spin = false | |
1138 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end | |
1139 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1140 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1141 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1142 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1143 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2) | |
1144 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
1145 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2) | |
1146 | elseif position == "Falling" and attacking == false then | |
1147 | change = 1 | |
1148 | spin = false | |
1149 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end | |
1150 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15) | |
1151 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1152 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1153 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1154 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
1155 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2) | |
1156 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2) | |
1157 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2) | |
1158 | elseif position == "Walking" and attacking == false and running == false then | |
1159 | change = 1.2 | |
1160 | walking = true | |
1161 | spin = false | |
1162 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end | |
1163 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3) | |
1164 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
1165 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3) | |
1166 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3) | |
1167 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3) | |
1168 | elseif position == "Idle" and attacking == false and running == false then | |
1169 | change = .5 | |
1170 | spin = true | |
1171 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end | |
1172 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1) | |
1173 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1) | |
1174 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1) | |
1175 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1) | |
1176 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1) | |
1177 | elseif position == "Running" and attacking == false then | |
1178 | change = 1 | |
1179 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end | |
1180 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
1181 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
1182 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1183 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
1184 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
1185 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
1186 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
1187 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
1188 | end | |
1189 | swait() | |
1190 | end | |
1191 | end) | |
1192 | anims() | |
1193 | warn("Back from the past to dance the dance. Made by Supr14(Credits to Krystalteam).") |