SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -----------//KRYSTAL DANCE V2 (without remove)\\----------- |
| 1 | + | -----------//() Tord's Meme Dance ()\\----------- |
| 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 / Or Soviet's Dance idc | |
| 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 | ||
| 282 | fedora = Instance.new("Part",Character)
| |
| 283 | fedora.Size = Vector3.new(2,2,2) | |
| 284 | fedora.CFrame = Head.CFrame | |
| 285 | fedora.CanCollide = false | |
| 286 | fedoraweld = Instance.new("Weld",fedora)
| |
| 287 | fedoraweld.Part0 = fedora | |
| 288 | fedoraweld.Part1 = Head | |
| 289 | fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0) | |
| 290 | mfedora = Instance.new("SpecialMesh", fedora)
| |
| 291 | mfedora.MeshType = "FileMesh" | |
| 292 | mfedora.Scale = Vector3.new(.97, .97, .97) | |
| 293 | mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' | |
| 294 | ||
| 295 | shades = Instance.new("Part",Character)
| |
| 296 | shades.Size = Vector3.new(2,2,2) | |
| 297 | shades.CFrame = Head.CFrame | |
| 298 | shades.CanCollide = false | |
| 299 | shadesweld = Instance.new("Weld",shades)
| |
| 300 | shadesweld.Part0 = shades | |
| 301 | shadesweld.Part1 = Head | |
| 302 | shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15) | |
| 303 | mshades = Instance.new("SpecialMesh", shades)
| |
| 304 | mshades.MeshType = "FileMesh" | |
| 305 | mshades.Scale = Vector3.new(1.04, 1.28, 1.04) | |
| 306 | mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349' | |
| 307 | coroutine.wrap(function() | |
| 308 | while wait() do | |
| 309 | Head.face.Texture = "rbxasset://textures/face.png" | |
| 310 | hum.WalkSpeed = ws | |
| 311 | LeftArm.BrickColor = BrickColor.new("Pastel brown")
| |
| 312 | RightArm.BrickColor = BrickColor.new("Pastel brown")
| |
| 313 | Head.BrickColor = BrickColor.new("Pastel brown")
| |
| 314 | Torso.BrickColor = BrickColor.new("Pastel brown")
| |
| 315 | LeftLeg.BrickColor = BrickColor.new("Pastel brown")
| |
| 316 | RightLeg.BrickColor = BrickColor.new("Pastel brown")
| |
| 317 | end | |
| 318 | end)() | |
| 319 | godmode = coroutine.wrap(function() | |
| 320 | for i,v in pairs(Character:GetChildren()) do | |
| 321 | if v:IsA("BasePart") and v ~= Root then
| |
| 322 | v.Anchored = false | |
| 323 | end | |
| 324 | end | |
| 325 | while true do | |
| 326 | hum.MaxHealth = math.huge | |
| 327 | wait(0.0000001) | |
| 328 | hum.Health = math.huge | |
| 329 | wait() | |
| 330 | end | |
| 331 | end) | |
| 332 | godmode() | |
| 333 | ff = Instance.new("ForceField", Character)
| |
| 334 | ff.Visible = false | |
| 335 | ||
| 336 | coroutine.wrap(function() | |
| 337 | for i,v in pairs(Character:GetChildren()) do | |
| 338 | if v.Name == "Animate" then v:Remove() | |
| 339 | end | |
| 340 | end | |
| 341 | end)() | |
| 342 | ||
| 343 | function damagealll(Radius,Position) | |
| 344 | local Returning = {}
| |
| 345 | for _,v in pairs(workspace:GetChildren()) do | |
| 346 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
| |
| 347 | if v:FindFirstChild("Torso") then
| |
| 348 | local Mag = (v.Torso.Position - Position).magnitude | |
| 349 | if Mag < Radius then | |
| 350 | table.insert(Returning,v) | |
| 351 | end | |
| 352 | elseif v:FindFirstChild("UpperTorso") then
| |
| 353 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
| 354 | if Mag < Radius then | |
| 355 | table.insert(Returning,v) | |
| 356 | end | |
| 357 | end | |
| 358 | end | |
| 359 | end | |
| 360 | return Returning | |
| 361 | end | |
| 362 | ||
| 363 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 364 | ArtificialHB.Name = "Heartbeat" | |
| 365 | script:WaitForChild("Heartbeat")
| |
| 366 | ||
| 367 | frame = 1 / 60 | |
| 368 | tf = 0 | |
| 369 | allowframeloss = false | |
| 370 | tossremainder = false | |
| 371 | ||
| 372 | ||
| 373 | lastframe = tick() | |
| 374 | script.Heartbeat:Fire() | |
| 375 | ||
| 376 | ||
| 377 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 378 | tf = tf + s | |
| 379 | if tf >= frame then | |
| 380 | if allowframeloss then | |
| 381 | script.Heartbeat:Fire() | |
| 382 | lastframe = tick() | |
| 383 | else | |
| 384 | for i = 1, math.floor(tf / frame) do | |
| 385 | script.Heartbeat:Fire() | |
| 386 | end | |
| 387 | lastframe = tick() | |
| 388 | end | |
| 389 | if tossremainder then | |
| 390 | tf = 0 | |
| 391 | else | |
| 392 | tf = tf - frame * math.floor(tf / frame) | |
| 393 | end | |
| 394 | end | |
| 395 | end) | |
| 396 | ||
| 397 | function swait(num) | |
| 398 | if num == 0 or num == nil then | |
| 399 | game:service("RunService").Stepped:wait(0)
| |
| 400 | else | |
| 401 | for i = 0, num do | |
| 402 | game:service("RunService").Stepped:wait(0)
| |
| 403 | end | |
| 404 | end | |
| 405 | end | |
| 406 | ||
| 407 | for _,n in pairs(Character:GetChildren()) do | |
| 408 | if n:IsA("Accessory") then n:Remove() end
| |
| 409 | end | |
| 410 | for _,x in pairs(Character:GetChildren()) do | |
| 411 | if x:IsA("Decal") then x:Remove() end
| |
| 412 | end | |
| 413 | ||
| 414 | intro = true | |
| 415 | ws = 0 | |
| 416 | ||
| 417 | bigfedora = Instance.new("Part",Character)
| |
| 418 | bigfedora.Size = Vector3.new(2,2,2) | |
| 419 | 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) | |
| 420 | bigfedora.CanCollide = false | |
| 421 | bigfedora.Anchored = true | |
| 422 | bigfedora.Name = "mbigf" | |
| 423 | mbigfedora = Instance.new("SpecialMesh", bigfedora)
| |
| 424 | mbigfedora.MeshType = "FileMesh" | |
| 425 | mbigfedora.Scale = Vector3.new(6, 7, 7) | |
| 426 | mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' | |
| 427 | for i,v in pairs(Character:GetDescendants()) do | |
| 428 | if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
| |
| 429 | end | |
| 430 | end | |
| 431 | for i = 1, 60 do | |
| 432 | 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) | |
| 433 | swait() | |
| 434 | end | |
| 435 | wait(.25) | |
| 436 | for i,v in pairs(Character:GetDescendants()) do | |
| 437 | if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
| |
| 438 | end | |
| 439 | end | |
| 440 | for i = 1, 50 do | |
| 441 | bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05) | |
| 442 | swait() | |
| 443 | end | |
| 444 | zmc = 0 | |
| 445 | for i = 1, 29 do | |
| 446 | zmc = zmc + 2 | |
| 447 | mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25) | |
| 448 | bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0) | |
| 449 | swait() | |
| 450 | end | |
| 451 | bigfedora:Remove() | |
| 452 | ||
| 453 | ws = 14 | |
| 454 | ||
| 455 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
| 456 | so = Instance.new("Sound")
| |
| 457 | so.Parent = PARENT | |
| 458 | so.SoundId = "rbxassetid://"..ID | |
| 459 | so.Volume = VOL | |
| 460 | so.Looped = LOOP | |
| 461 | ||
| 462 | so:Play() | |
| 463 | removeuseless:AddItem(so,REMOVE) | |
| 464 | end | |
| 465 | ||
| 466 | mouse.KeyDown:connect(function(Press) | |
| 467 | Press=Press:lower() | |
| 468 | if Press=='k' then | |
| 469 | if dancing then | |
| 470 | dancing = false | |
| 471 | else | |
| 472 | dancing = true | |
| 473 | ws = 0 | |
| 474 | change = .5 | |
| 475 | attacking = true | |
| 476 | jam = Instance.new("Sound",Torso)
| |
| 477 | jam.SoundId = "rbxassetid://665751753" | |
| 478 | jam.Volume = 8 | |
| 479 | jam.Looped = true | |
| 480 | jam.TimePosition = 22.3 | |
| 481 | jam:Play() | |
| 482 | lol90 = 0 | |
| 483 | coroutine.wrap(function() | |
| 484 | while dancing do | |
| 485 | lol90 = lol90 + 11 | |
| 486 | 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) | |
| 487 | ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25) | |
| 488 | 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) | |
| 489 | 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) | |
| 490 | 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) | |
| 491 | 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) | |
| 492 | swait() | |
| 493 | end | |
| 494 | ws = 14 | |
| 495 | jam:Remove() | |
| 496 | ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 497 | attacking = false | |
| 498 | end)() | |
| 499 | end | |
| 500 | end | |
| 501 | end) | |
| 502 | ||
| 503 | mouse.KeyDown:connect(function(Press) | |
| 504 | Press=Press:lower() | |
| 505 | if Press=='j' then | |
| 506 | if dancing then | |
| 507 | dancing = false | |
| 508 | else | |
| 509 | dancing = true | |
| 510 | ws = 3 | |
| 511 | change = .5 | |
| 512 | attacking = true | |
| 513 | g1 = Instance.new("BodyGyro", Root)
| |
| 514 | g1.D = 175 | |
| 515 | g1.P = 20000 | |
| 516 | g1.MaxTorque = Vector3.new(0,9000,0) | |
| 517 | herecomesthemoney = Instance.new("Sound",Torso)
| |
| 518 | herecomesthemoney.Pitch = 1 | |
| 519 | herecomesthemoney.SoundId = "rbxassetid://2426693638" | |
| 520 | herecomesthemoney.Volume = 8 | |
| 521 | herecomesthemoney.Looped = true | |
| 522 | herecomesthemoney:Play() | |
| 523 | robuxpile = Instance.new("Part",Torso)
| |
| 524 | robuxpile.Size = Vector3.new(1,1,1) | |
| 525 | robuxpile.CFrame = LeftArm.CFrame | |
| 526 | robuxpile.CanCollide = false | |
| 527 | robuxpileweld = Instance.new("Weld",robuxpile)
| |
| 528 | robuxpileweld.Part0 = robuxpile | |
| 529 | robuxpileweld.Part1 = Torso | |
| 530 | robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4) | |
| 531 | mrobuxpile = Instance.new("SpecialMesh", robuxpile)
| |
| 532 | mrobuxpile.MeshType = "FileMesh" | |
| 533 | mrobuxpile.Scale = Vector3.new(0.85, .85, .85) | |
| 534 | mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344' | |
| 535 | coroutine.wrap(function() | |
| 536 | coroutine.wrap(function() | |
| 537 | while wait(.35) do | |
| 538 | if not dancing then break end | |
| 539 | local robux = Instance.new("Part",Torso)
| |
| 540 | robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90)) | |
| 541 | robux.Anchored = false | |
| 542 | robux.CanCollide = true | |
| 543 | robux.Size = Vector3.new(1,1,1) | |
| 544 | removeuseless:AddItem(robux,4) | |
| 545 | mrobux = Instance.new("SpecialMesh", robux)
| |
| 546 | mrobux.MeshType = "FileMesh" | |
| 547 | mrobux.Scale = Vector3.new(1.25, 1.25, 1.25) | |
| 548 | mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136' | |
| 549 | bov = Instance.new("BodyVelocity",robux)
| |
| 550 | bov.maxForce = Vector3.new(99999,99999,99999) | |
| 551 | robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p) | |
| 552 | bov.velocity = robux.CFrame.lookVector*45 | |
| 553 | removeuseless:AddItem(bov,.1) | |
| 554 | end | |
| 555 | end)() | |
| 556 | while dancing do | |
| 557 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
| 558 | 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) | |
| 559 | 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) | |
| 560 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25) | |
| 561 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25) | |
| 562 | 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) | |
| 563 | swait() | |
| 564 | end | |
| 565 | ws = 14 | |
| 566 | removeuseless:AddItem(g1,.001) | |
| 567 | robuxpile:Remove() | |
| 568 | attacking = false | |
| 569 | end)() | |
| 570 | end | |
| 571 | end | |
| 572 | end) | |
| 573 | ||
| 574 | mouse.KeyDown:connect(function(Press) | |
| 575 | Press=Press:lower() | |
| 576 | if Press=='h' then | |
| 577 | if dancing then | |
| 578 | dancing = false | |
| 579 | else | |
| 580 | dancing = true | |
| 581 | ws = 0 | |
| 582 | change = .5 | |
| 583 | attacking = true | |
| 584 | jellyfishjam = Instance.new("Sound",Torso)
| |
| 585 | jellyfishjam.SoundId = "rbxassetid://840189092" | |
| 586 | jellyfishjam.Volume = 8 | |
| 587 | jellyfishjam.Looped = true | |
| 588 | jellyfishjam.TimePosition = 14.8 | |
| 589 | jellyfishjam:Play() | |
| 590 | coroutine.wrap(function() | |
| 591 | while dancing do | |
| 592 | for i = 1, 15 do | |
| 593 | if not dancing then break end | |
| 594 | 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) | |
| 595 | 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) | |
| 596 | 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) | |
| 597 | 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) | |
| 598 | 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) | |
| 599 | swait() | |
| 600 | end | |
| 601 | for i = 1, 15 do | |
| 602 | if not dancing then break end | |
| 603 | 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) | |
| 604 | 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) | |
| 605 | 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) | |
| 606 | 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) | |
| 607 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25) | |
| 608 | swait() | |
| 609 | end | |
| 610 | for i = 1, 15 do | |
| 611 | if not dancing then break end | |
| 612 | 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) | |
| 613 | 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) | |
| 614 | 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) | |
| 615 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25) | |
| 616 | 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) | |
| 617 | swait() | |
| 618 | end | |
| 619 | for i = 1, 15 do | |
| 620 | if not dancing then break end | |
| 621 | 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) | |
| 622 | 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) | |
| 623 | 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) | |
| 624 | 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) | |
| 625 | 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) | |
| 626 | swait() | |
| 627 | end | |
| 628 | swait() | |
| 629 | end | |
| 630 | ws = 14 | |
| 631 | attacking = false | |
| 632 | end)() | |
| 633 | end | |
| 634 | end | |
| 635 | end) | |
| 636 | ||
| 637 | mouse.KeyDown:connect(function(Press) | |
| 638 | Press=Press:lower() | |
| 639 | if Press=='g' then | |
| 640 | if dancing then | |
| 641 | dancing = false | |
| 642 | else | |
| 643 | dancing = true | |
| 644 | ws = 0 | |
| 645 | change = .5 | |
| 646 | attacking = true | |
| 647 | deadmau7 = Instance.new("Sound",Torso)
| |
| 648 | deadmau7.SoundId = "rbxassetid://168166611" | |
| 649 | deadmau7.Volume = 8 | |
| 650 | deadmau7.Looped = true | |
| 651 | deadmau7:Play() | |
| 652 | coroutine.wrap(function() | |
| 653 | coroutine.wrap(function() | |
| 654 | while dancing do | |
| 655 | 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) | |
| 656 | swait() | |
| 657 | end | |
| 658 | end)() | |
| 659 | while dancing do | |
| 660 | for i = 1, 28 do | |
| 661 | if not dancing then break end | |
| 662 | 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) | |
| 663 | 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) | |
| 664 | 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) | |
| 665 | 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) | |
| 666 | swait() | |
| 667 | end | |
| 668 | for i = 1, 28 do | |
| 669 | if not dancing then break end | |
| 670 | 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) | |
| 671 | 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) | |
| 672 | 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) | |
| 673 | 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) | |
| 674 | swait() | |
| 675 | end | |
| 676 | swait() | |
| 677 | end | |
| 678 | ws = 14 | |
| 679 | deadmau7:Remove() | |
| 680 | attacking = false | |
| 681 | end)() | |
| 682 | end | |
| 683 | end | |
| 684 | end) | |
| 685 | ||
| 686 | mouse.KeyDown:connect(function(Press) | |
| 687 | Press=Press:lower() | |
| 688 | if Press=='f' then | |
| 689 | if dancing then | |
| 690 | dancing = false | |
| 691 | else | |
| 692 | dancing = true | |
| 693 | ws = 6 | |
| 694 | change = .5 | |
| 695 | attacking = true | |
| 696 | bennyhill = Instance.new("Sound",Torso)
| |
| 697 | bennyhill.SoundId = "rbxassetid://138211362" | |
| 698 | bennyhill.Volume = 8 | |
| 699 | bennyhill.Looped = true | |
| 700 | bennyhill:Play() | |
| 701 | coroutine.wrap(function() | |
| 702 | while dancing do | |
| 703 | 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) | |
| 704 | 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) | |
| 705 | 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) | |
| 706 | 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) | |
| 707 | 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) | |
| 708 | swait() | |
| 709 | end | |
| 710 | ws = 14 | |
| 711 | bennyhill:Remove() | |
| 712 | attacking = false | |
| 713 | end)() | |
| 714 | end | |
| 715 | end | |
| 716 | end) | |
| 717 | ||
| 718 | mouse.KeyDown:connect(function(Press) | |
| 719 | Press=Press:lower() | |
| 720 | if Press=='p' then | |
| 721 | if dancing then | |
| 722 | dancing = false | |
| 723 | else | |
| 724 | dancing = true | |
| 725 | ws = 0 | |
| 726 | change = .5 | |
| 727 | attacking = true | |
| 728 | barrelspin = 0 | |
| 729 | barrelrollsound = Instance.new("Sound",Torso)
| |
| 730 | barrelrollsound.SoundId = "rbxassetid://505320170" | |
| 731 | barrelrollsound.Volume = 8 | |
| 732 | barrelrollsound.Looped = true | |
| 733 | barrelrollsound:Play() | |
| 734 | barrol = Instance.new("Part",Torso)
| |
| 735 | barrol.Size = Vector3.new(1,1,1) | |
| 736 | barrol.CFrame = Torso.CFrame | |
| 737 | barrol.CanCollide = false | |
| 738 | barrolweld = Instance.new("Weld",barrol)
| |
| 739 | barrolweld.Part0 = barrol | |
| 740 | barrolweld.Part1 = Torso | |
| 741 | barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0) | |
| 742 | mbarrol = Instance.new("SpecialMesh", barrol)
| |
| 743 | mbarrol.MeshType = "FileMesh" | |
| 744 | mbarrol.Scale = Vector3.new(1.05, .95, 1.05) | |
| 745 | mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268' | |
| 746 | coroutine.wrap(function() | |
| 747 | while dancing do | |
| 748 | 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) | |
| 749 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) | |
| 750 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25) | |
| 751 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25) | |
| 752 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25) | |
| 753 | swait() | |
| 754 | end | |
| 755 | ws = 14 | |
| 756 | barrol:Remove() | |
| 757 | attacking = false | |
| 758 | end)() | |
| 759 | end | |
| 760 | end | |
| 761 | end) | |
| 762 | ||
| 763 | mouse.KeyDown:connect(function(Press) | |
| 764 | Press=Press:lower() | |
| 765 | if Press=='q' then | |
| 766 | if dancing then | |
| 767 | dancing = false | |
| 768 | else | |
| 769 | dancing = true | |
| 770 | ws = 0 | |
| 771 | change = .5 | |
| 772 | spinningmove = 0 | |
| 773 | dbwouldlovethis = Instance.new("Sound",Torso)
| |
| 774 | dbwouldlovethis.SoundId = "rbxassetid://1532157598" | |
| 775 | dbwouldlovethis.Volume = 8 | |
| 776 | dbwouldlovethis.Looped = true | |
| 777 | dbwouldlovethis:Play() | |
| 778 | attacking = true | |
| 779 | coroutine.wrap(function() | |
| 780 | while dancing do | |
| 781 | spinningmove = spinningmove + 10 | |
| 782 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2) | |
| 783 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 784 | 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) | |
| 785 | 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) | |
| 786 | 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) | |
| 787 | swait() | |
| 788 | end | |
| 789 | ws = 14 | |
| 790 | dbwouldlovethis:Remove() | |
| 791 | attacking = false | |
| 792 | end)() | |
| 793 | end | |
| 794 | end | |
| 795 | end) | |
| 796 | ||
| 797 | ||
| 798 | mouse.KeyDown:connect(function(Press) | |
| 799 | Press=Press:lower() | |
| 800 | if Press=='u' then | |
| 801 | if dancing then | |
| 802 | dancing = false | |
| 803 | else | |
| 804 | dancing = true | |
| 805 | ws = 6 | |
| 806 | change = .5 | |
| 807 | attacking = true | |
| 808 | slavdance = Instance.new("Sound",Torso)
| |
| 809 | slavdance.SoundId = "rbxassetid://2341226836" | |
| 810 | slavdance.Volume = 6 | |
| 811 | slavdance.Looped = true | |
| 812 | slavdance:Play() | |
| 813 | coroutine.wrap(function() | |
| 814 | while dancing do | |
| 815 | for i = 1, 17 do | |
| 816 | if not dancing then break end | |
| 817 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
| 818 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 819 | 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) | |
| 820 | 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) | |
| 821 | 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) | |
| 822 | swait() | |
| 823 | end | |
| 824 | for i = 1, 17 do | |
| 825 | if not dancing then break end | |
| 826 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 827 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
| 828 | 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) | |
| 829 | 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) | |
| 830 | 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) | |
| 831 | swait() | |
| 832 | end | |
| 833 | swait() | |
| 834 | end | |
| 835 | ws = 14 | |
| 836 | slavdance:Remove() | |
| 837 | attacking = false | |
| 838 | end)() | |
| 839 | end | |
| 840 | end | |
| 841 | end) | |
| 842 | ||
| 843 | mouse.KeyDown:connect(function(Press) | |
| 844 | Press=Press:lower() | |
| 845 | if Press=='y' then | |
| 846 | if dancing then | |
| 847 | dancing = false | |
| 848 | else | |
| 849 | dancing = true | |
| 850 | ws = 0 | |
| 851 | change = .5 | |
| 852 | walkforward = 0 | |
| 853 | walkrotation = 0 | |
| 854 | attacking = true | |
| 855 | truelegend = Instance.new("Sound",Torso)
| |
| 856 | truelegend.SoundId = "rbxassetid://487872908" | |
| 857 | truelegend.TimePosition = 13.98 | |
| 858 | truelegend.Volume = 8 | |
| 859 | truelegend.Looped = true | |
| 860 | truelegend:Play() | |
| 861 | coroutine.wrap(function() | |
| 862 | while dancing do | |
| 863 | for i = 1, 100 do | |
| 864 | if not dancing then break end | |
| 865 | walkforward = walkforward + .1 | |
| 866 | 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) | |
| 867 | 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) | |
| 868 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 869 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 870 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 871 | swait() | |
| 872 | end | |
| 873 | for i = 1, 50 do | |
| 874 | if not dancing then break end | |
| 875 | walkrotation = walkrotation + 15 | |
| 876 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
| 877 | swait() | |
| 878 | end | |
| 879 | walkrotation = 0 | |
| 880 | for i = 1, 100 do | |
| 881 | if not dancing then break end | |
| 882 | walkforward = walkforward - .1 | |
| 883 | 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) | |
| 884 | 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) | |
| 885 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2) | |
| 886 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4) | |
| 887 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 888 | swait() | |
| 889 | end | |
| 890 | for i = 1, 50 do | |
| 891 | if not dancing then break end | |
| 892 | walkrotation = walkrotation + 15 | |
| 893 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1) | |
| 894 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
| 895 | swait() | |
| 896 | end | |
| 897 | walkrotation = 0 | |
| 898 | swait() | |
| 899 | end | |
| 900 | ws = 14 | |
| 901 | truelegend:Remove() | |
| 902 | attacking = false | |
| 903 | end)() | |
| 904 | end | |
| 905 | end | |
| 906 | end) | |
| 907 | ||
| 908 | mouse.KeyDown:connect(function(Press) | |
| 909 | Press=Press:lower() | |
| 910 | if Press=='t' then | |
| 911 | if dancing then | |
| 912 | dancing = false | |
| 913 | else | |
| 914 | dancing = true | |
| 915 | ws = 0 | |
| 916 | change = .5 | |
| 917 | attacking = true | |
| 918 | plummusic = Instance.new("Sound",Torso)
| |
| 919 | plummusic.Volume = 8 | |
| 920 | plummusic.Looped = true | |
| 921 | plummusic.SoundId = "rbxassetid://2526093213" | |
| 922 | plummusic:Play() | |
| 923 | coroutine.wrap(function() | |
| 924 | while dancing do | |
| 925 | for i = 1, 20 do | |
| 926 | if not dancing then break end | |
| 927 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) | |
| 928 | 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) | |
| 929 | 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) | |
| 930 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2) | |
| 931 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2) | |
| 932 | swait() | |
| 933 | end | |
| 934 | for i = 1, 20 do | |
| 935 | if not dancing then break end | |
| 936 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2) | |
| 937 | 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) | |
| 938 | 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) | |
| 939 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2) | |
| 940 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2) | |
| 941 | swait() | |
| 942 | end | |
| 943 | swait() | |
| 944 | end | |
| 945 | ws = 14 | |
| 946 | plummusic:Remove() | |
| 947 | attacking = false | |
| 948 | end)() | |
| 949 | end | |
| 950 | end | |
| 951 | end) | |
| 952 | ||
| 953 | mouse.KeyDown:connect(function(Press) | |
| 954 | Press=Press:lower() | |
| 955 | if Press=='e' then | |
| 956 | if dancing then | |
| 957 | dancing = false | |
| 958 | else | |
| 959 | dancing = true | |
| 960 | ws = 0 | |
| 961 | change = .5 | |
| 962 | attacking = true | |
| 963 | mrozo = Instance.new("Sound",Torso)
| |
| 964 | mrozo.Volume = 8 | |
| 965 | mrozo.SoundId = "rbxassetid://335701357" | |
| 966 | mrozo.Looped = true | |
| 967 | mrozo.TimePosition = 10 | |
| 968 | mrozo:Play() | |
| 969 | coroutine.wrap(function() | |
| 970 | while dancing do | |
| 971 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1) | |
| 972 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1) | |
| 973 | 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) | |
| 974 | 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) | |
| 975 | 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) | |
| 976 | swait() | |
| 977 | end | |
| 978 | mrozo:Remove() | |
| 979 | ws = 14 | |
| 980 | attacking = false | |
| 981 | end)() | |
| 982 | end | |
| 983 | end | |
| 984 | end) | |
| 985 | ||
| 986 | mouse.KeyDown:connect(function(Press) | |
| 987 | Press=Press:lower() | |
| 988 | if Press=='r' then | |
| 989 | if dancing then | |
| 990 | dancing = false | |
| 991 | else | |
| 992 | ws = 6 | |
| 993 | recordbaby = 0 | |
| 994 | dancing = true | |
| 995 | change = .5 | |
| 996 | attacking = true | |
| 997 | spinme = Instance.new("Sound",Torso)
| |
| 998 | spinme.Volume = 8 | |
| 999 | spinme.SoundId = "rbxassetid://145799973" | |
| 1000 | spinme.Looped = true | |
| 1001 | spinme:Play() | |
| 1002 | coroutine.wrap(function() | |
| 1003 | while dancing do | |
| 1004 | recordbaby = recordbaby + 10 | |
| 1005 | 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) | |
| 1006 | 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) | |
| 1007 | 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) | |
| 1008 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3) | |
| 1009 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3) | |
| 1010 | swait() | |
| 1011 | end | |
| 1012 | spinme:Remove() | |
| 1013 | ws = 14 | |
| 1014 | attacking = false | |
| 1015 | end)() | |
| 1016 | end | |
| 1017 | end | |
| 1018 | end) | |
| 1019 | ||
| 1020 | function ray(pos, dir, rang, ignoredesc) | |
| 1021 | return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc) | |
| 1022 | end | |
| 1023 | ||
| 1024 | function ray2(startpos, endpos, distance, ignore) | |
| 1025 | local dir = CFrame.new(startpos,endpos).lookVector | |
| 1026 | return ray(startpos, dir, distance, ignore) | |
| 1027 | end | |
| 1028 | ||
| 1029 | checks1 = coroutine.wrap(function() -------Checks | |
| 1030 | while true do | |
| 1031 | hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character) | |
| 1032 | if Root.Velocity.y > 1 then | |
| 1033 | position = "Jump" | |
| 1034 | elseif Root.Velocity.y < -1 then | |
| 1035 | position = "Falling" | |
| 1036 | elseif Root.Velocity.Magnitude < 2 then | |
| 1037 | position = "Idle" | |
| 1038 | elseif Root.Velocity.Magnitude > 2 then | |
| 1039 | position = "Walking" | |
| 1040 | elseif Root.Velocity.Magnitude > 20 then | |
| 1041 | position = "Running" | |
| 1042 | else | |
| 1043 | end | |
| 1044 | wait() | |
| 1045 | end | |
| 1046 | end) | |
| 1047 | checks1() | |
| 1048 | ||
| 1049 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 1050 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 1051 | end | |
| 1052 | ||
| 1053 | function ray2(StartPos, EndPos, Distance, Ignore) | |
| 1054 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
| 1055 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
| 1056 | end | |
| 1057 | ||
| 1058 | OrgnC0 = Neck.C0 | |
| 1059 | local movelimbs = coroutine.wrap(function() | |
| 1060 | while RunSrv.RenderStepped:wait() do | |
| 1061 | TrsoLV = Torso.CFrame.lookVector | |
| 1062 | Dist = nil | |
| 1063 | Diff = nil | |
| 1064 | if not MseGuide then | |
| 1065 | print("Failed to recognize")
| |
| 1066 | else | |
| 1067 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 1068 | Dist = (Head.CFrame.p-Point).magnitude | |
| 1069 | Diff = Head.CFrame.Y-Point.Y | |
| 1070 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 1071 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
| 1072 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
| 1073 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1074 | 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) | |
| 1075 | end | |
| 1076 | end | |
| 1077 | end) | |
| 1078 | movelimbs() | |
| 1079 | immortal = {}
| |
| 1080 | for i,v in pairs(Character:GetDescendants()) do | |
| 1081 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
| |
| 1082 | 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 | |
| 1083 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1084 | end | |
| 1085 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
| |
| 1086 | elseif v:IsA("JointInstance") then
| |
| 1087 | table.insert(immortal,{v,v.Parent,nil,nil,nil})
| |
| 1088 | end | |
| 1089 | end | |
| 1090 | for e = 1, #immortal do | |
| 1091 | if immortal[e] ~= nil then | |
| 1092 | local STUFF = immortal[e] | |
| 1093 | local PART = STUFF[1] | |
| 1094 | local PARENT = STUFF[2] | |
| 1095 | local MATERIAL = STUFF[3] | |
| 1096 | local COLOR = STUFF[4] | |
| 1097 | local TRANSPARENCY = STUFF[5] | |
| 1098 | if levitate then | |
| 1099 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 1100 | PART.Material = MATERIAL | |
| 1101 | PART.Color = COLOR | |
| 1102 | PART.Transparency = TRANSPARENCY | |
| 1103 | end | |
| 1104 | PART.AncestryChanged:connect(function() | |
| 1105 | PART.Parent = PARENT | |
| 1106 | end) | |
| 1107 | else | |
| 1108 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 1109 | PART.Material = MATERIAL | |
| 1110 | PART.Color = COLOR | |
| 1111 | PART.Transparency = TRANSPARENCY | |
| 1112 | end | |
| 1113 | PART.AncestryChanged:connect(function() | |
| 1114 | PART.Parent = PARENT | |
| 1115 | end) | |
| 1116 | end | |
| 1117 | end | |
| 1118 | end | |
| 1119 | function immortality() | |
| 1120 | for e = 1, #immortal do | |
| 1121 | if immortal[e] ~= nil then | |
| 1122 | local STUFF = immortal[e] | |
| 1123 | local PART = STUFF[1] | |
| 1124 | local PARENT = STUFF[2] | |
| 1125 | local MATERIAL = STUFF[3] | |
| 1126 | local COLOR = STUFF[4] | |
| 1127 | local TRANSPARENCY = STUFF[5] | |
| 1128 | if PART.ClassName == "Part" and PART == Root then | |
| 1129 | PART.Material = MATERIAL | |
| 1130 | PART.Color = COLOR | |
| 1131 | PART.Transparency = TRANSPARENCY | |
| 1132 | end | |
| 1133 | if PART.Parent ~= PARENT then | |
| 1134 | hum:Remove() | |
| 1135 | PART.Parent = PARENT | |
| 1136 | hum = Instance.new("Humanoid",Character)
| |
| 1137 | hum.Name = "noneofurbusiness" | |
| 1138 | end | |
| 1139 | end | |
| 1140 | end | |
| 1141 | end | |
| 1142 | coroutine.wrap(function() | |
| 1143 | while true do | |
| 1144 | if hum.Health < .1 then | |
| 1145 | deadsound = Instance.new("Sound", Torso)
| |
| 1146 | deadsound.Volume = 6 | |
| 1147 | deadsound.SoundId = "rbxassetid://1411352723" | |
| 1148 | deadsound:Play() | |
| 1149 | immortality() | |
| 1150 | end | |
| 1151 | wait() | |
| 1152 | end | |
| 1153 | end)() | |
| 1154 | ||
| 1155 | local anims = coroutine.wrap(function() | |
| 1156 | while true do | |
| 1157 | settime = 0.05 | |
| 1158 | sine = sine + change | |
| 1159 | if position == "Jump" and attacking == false then | |
| 1160 | change = 1 | |
| 1161 | spin = false | |
| 1162 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
| |
| 1163 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1164 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1165 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 1166 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 1167 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2) | |
| 1168 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
| 1169 | 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) | |
| 1170 | elseif position == "Falling" and attacking == false then | |
| 1171 | change = 1 | |
| 1172 | spin = false | |
| 1173 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
| |
| 1174 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15) | |
| 1175 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1176 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1177 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 1178 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
| 1179 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2) | |
| 1180 | 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) | |
| 1181 | 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) | |
| 1182 | elseif position == "Walking" and attacking == false and running == false then | |
| 1183 | change = 1.2 | |
| 1184 | walking = true | |
| 1185 | spin = false | |
| 1186 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
| |
| 1187 | 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) | |
| 1188 | 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) | |
| 1189 | 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) | |
| 1190 | 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) | |
| 1191 | 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) | |
| 1192 | elseif position == "Idle" and attacking == false and running == false then | |
| 1193 | change = .5 | |
| 1194 | spin = true | |
| 1195 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
| |
| 1196 | 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) | |
| 1197 | 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) | |
| 1198 | 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) | |
| 1199 | 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) | |
| 1200 | 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) | |
| 1201 | elseif position == "Running" and attacking == false then | |
| 1202 | change = 1 | |
| 1203 | for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
| |
| 1204 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
| 1205 | 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) | |
| 1206 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1207 | 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) | |
| 1208 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
| 1209 | 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) | |
| 1210 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
| 1211 | 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) | |
| 1212 | end | |
| 1213 | swait() | |
| 1214 | end | |
| 1215 | end) | |
| 1216 | anims() | |
| 1217 | warn("Back from the past to dance the dance. Made by Supr14(Credits to Krystalteam).") |