SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | return RealPlayer[Index] | |
| 88 | end | |
| 89 | end; | |
| 90 | __tostring = function(self) | |
| 91 | return RealPlayer.Name | |
| 92 | end | |
| 93 | }) | |
| 94 | end | |
| 95 | end | |
| 96 | if RealGame[Index] then | |
| 97 | local Type = type(RealGame[Index]) | |
| 98 | if Type == "function" then | |
| 99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 100 | return function (self,Service) | |
| 101 | if Service:lower() == "players" then | |
| 102 | return setmetatable({},{
| |
| 103 | __index = function (self2,Index2) | |
| 104 | local RealService = RealGame:GetService(Service) | |
| 105 | local Type2 = type(Index2) | |
| 106 | if Type2 == "function" then | |
| 107 | return function (self,...) | |
| 108 | return RealService[Index2](RealService,...) | |
| 109 | end | |
| 110 | else | |
| 111 | if Index2:lower() == "localplayer" then | |
| 112 | return Sandbox(owner) | |
| 113 | end | |
| 114 | return RealService[Index2] | |
| 115 | end | |
| 116 | end; | |
| 117 | __tostring = function(self) | |
| 118 | return RealGame:GetService(Service).Name | |
| 119 | end | |
| 120 | }) | |
| 121 | elseif Service:lower() == "contextactionservice" then | |
| 122 | return InternalData["ContextActionService"] | |
| 123 | elseif Service:lower() == "contextactionservice" then | |
| 124 | return InternalData["UserInputService"] | |
| 125 | elseif Service:lower() == "runservice" then | |
| 126 | return setmetatable({},{
| |
| 127 | __index = function(self2,Index2) | |
| 128 | local RealService = RealGame:GetService(Service) | |
| 129 | local Type2 = type(Index2) | |
| 130 | if Type2 == "function" then | |
| 131 | return function (self,...) | |
| 132 | return RealService[Index2](RealService,...) | |
| 133 | end | |
| 134 | else | |
| 135 | if Index2:lower() == "bindtorenderstep" then | |
| 136 | return function (self,Name,Priority,Function) | |
| 137 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 138 | end | |
| 139 | end | |
| 140 | if Index2:lower() == "renderstepped" then | |
| 141 | return RealService["Stepped"] | |
| 142 | end | |
| 143 | return RealService[Index2] | |
| 144 | end | |
| 145 | end | |
| 146 | }) | |
| 147 | else | |
| 148 | return RealGame:GetService(Service) | |
| 149 | end | |
| 150 | end | |
| 151 | end | |
| 152 | return function (self,...) | |
| 153 | return RealGame[Index](RealGame,...) | |
| 154 | end | |
| 155 | else | |
| 156 | if game:GetService(Index) then | |
| 157 | return game:GetService(Index) | |
| 158 | end | |
| 159 | return RealGame[Index] | |
| 160 | end | |
| 161 | else | |
| 162 | return nil | |
| 163 | end | |
| 164 | end | |
| 165 | });Game = game;owner = game:GetService("Players").LocalPlayer
| |
| 166 | print("Complete! Running...")
| |
| 167 | ||
| 168 | ||
| 169 | ||
| 170 | --Created with PenguinAnonymous's compiler | |
| 171 | --PenguinAnonymous is not responsible for damages caused to your game | |
| 172 | --Please stop using my plugin to create abusive scripts | |
| 173 | --Errors: | |
| 174 | local runDummyScript = function(f,scri) | |
| 175 | local oldenv = getfenv(f) | |
| 176 | local newenv = setmetatable({}, {
| |
| 177 | __index = function(_, k) | |
| 178 | if k:lower() == 'script' then | |
| 179 | return scri | |
| 180 | else | |
| 181 | return oldenv[k] | |
| 182 | end | |
| 183 | end | |
| 184 | }) | |
| 185 | setfenv(f, newenv) | |
| 186 | ypcall(function() f() end) | |
| 187 | end | |
| 188 | cors = {}
| |
| 189 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 190 | mas.Name = "CompiledModel" | |
| 191 | o1 = Instance.new("LocalScript")
| |
| 192 | o1.Name = "Wubstep" | |
| 193 | o1.Parent = mas | |
| 194 | table.insert(cors,function() | |
| 195 | wait() | |
| 196 | runDummyScript(function() | |
| 197 | ||
| 198 | function clerp(c1,c2,al) | |
| 199 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 200 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 201 | for i,v in pairs(com1) do | |
| 202 | com1[i] = v+(com2[i]-v)*al | |
| 203 | end | |
| 204 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 205 | end | |
| 206 | ||
| 207 | plr = game:service'Players'.LocalPlayer | |
| 208 | char = plr.Character | |
| 209 | mouse = plr:GetMouse() | |
| 210 | humanoid = char:findFirstChild("Humanoid")
| |
| 211 | torso = char:findFirstChild("Torso")
| |
| 212 | head = char.Head | |
| 213 | ra = char:findFirstChild("Right Arm")
| |
| 214 | la = char:findFirstChild("Left Arm")
| |
| 215 | rl = char:findFirstChild("Right Leg")
| |
| 216 | ll = char:findFirstChild("Left Leg")
| |
| 217 | rs = torso:findFirstChild("Right Shoulder")
| |
| 218 | ls = torso:findFirstChild("Left Shoulder")
| |
| 219 | rh = torso:findFirstChild("Right Hip")
| |
| 220 | lh = torso:findFirstChild("Left Hip")
| |
| 221 | neck = torso:findFirstChild("Neck")
| |
| 222 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
| |
| 223 | rootpart = char:findFirstChild("HumanoidRootPart")
| |
| 224 | camera = workspace.CurrentCamera | |
| 225 | anim = char:findFirstChild("Animate")
| |
| 226 | ||
| 227 | if char:FindFirstChild("Animate") then
| |
| 228 | char.Animate:Destroy() | |
| 229 | end | |
| 230 | humanoid.Animator:Destroy() | |
| 231 | ||
| 232 | local rm = Instance.new("Weld", torso)
| |
| 233 | rm.C0 = CFrame.new(1.5, 0.5, 0) | |
| 234 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 235 | rm.Part0 = torso | |
| 236 | rm.Part1 = ra | |
| 237 | ||
| 238 | local lm = Instance.new("Weld", torso)
| |
| 239 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 240 | lm.C1 = CFrame.new(0, 0.5, 0) | |
| 241 | lm.Part0 = torso | |
| 242 | lm.Part1 = la | |
| 243 | ||
| 244 | local rlegm = Instance.new("Weld", torso)
| |
| 245 | rlegm.C0 = CFrame.new(0.5, -1, 0) | |
| 246 | rlegm.C1 = CFrame.new(0, 1, 0) | |
| 247 | rlegm.Part0 = torso | |
| 248 | rlegm.Part1 = rl | |
| 249 | local llegm = Instance.new("Weld", torso)
| |
| 250 | llegm.C0 = CFrame.new(-0.5, -1, 0) | |
| 251 | llegm.C1 = CFrame.new(0, 1, 0) | |
| 252 | llegm.Part0 = torso | |
| 253 | llegm.Part1 = ll | |
| 254 | ||
| 255 | neck.C0 = CFrame.new(0, 1, 0) | |
| 256 | neck.C1 = CFrame.new(0, -.5, 0) | |
| 257 | ||
| 258 | rj.C0 = CFrame.new() | |
| 259 | rj.C1 = CFrame.new() | |
| 260 | ||
| 261 | local Rbx = LoadLibrary("RbxUtility")
| |
| 262 | local Create = Rbx.Create | |
| 263 | ||
| 264 | GUI = Create("ScreenGui"){
| |
| 265 | Parent = plr.PlayerGui, | |
| 266 | Enabled = true, | |
| 267 | ResetOnSpawn = true, | |
| 268 | Name = "WubstepGUI" | |
| 269 | } | |
| 270 | ||
| 271 | Main = Create("Frame"){
| |
| 272 | Parent = GUI, | |
| 273 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 274 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 275 | BorderSizePixel = 0, | |
| 276 | BackgroundTransparency = 0, | |
| 277 | Size = UDim2.new(0.2,0,0.5,0), | |
| 278 | Position = UDim2.new(-1.2,0,0.25,0), | |
| 279 | ZIndex = 1, | |
| 280 | Visible = true, | |
| 281 | Selectable = false, | |
| 282 | Name = "Main" | |
| 283 | } | |
| 284 | ||
| 285 | IDBox = Create("TextBox"){
| |
| 286 | Parent = Main, | |
| 287 | BackgroundColor3 = Color3.new(9/255,9/255,9/255), | |
| 288 | BackgroundTransparency = 0.7, | |
| 289 | BorderColor3 = Color3.new(255/255,255/255,255/255), | |
| 290 | BorderSizePixel = 5, | |
| 291 | Name = "ID", | |
| 292 | Position = UDim2.new(0.05,0,0.03,0), | |
| 293 | Selectable = true, | |
| 294 | ShowNativeInput = true, | |
| 295 | ClearTextOnFocus = true, | |
| 296 | Size = UDim2.new(0.9,0,0.15,0), | |
| 297 | Visible = true, | |
| 298 | ZIndex = 2, | |
| 299 | Text = "ID", | |
| 300 | TextWrapped = true, | |
| 301 | TextScaled = true, | |
| 302 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 303 | TextStrokeTransparency = 0, | |
| 304 | TextStrokeColor3 = Color3.new(0,0,0) | |
| 305 | } | |
| 306 | ||
| 307 | PlayButton = Create("TextButton"){
| |
| 308 | Parent = Main, | |
| 309 | BackgroundTransparency = 0, | |
| 310 | BackgroundColor3 = Color3.new(9/255,9/255,9/255), | |
| 311 | BorderSizePixel = 0, | |
| 312 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 313 | Name = "Play", | |
| 314 | Modal = false, | |
| 315 | Position = UDim2.new(0.05,0,0.205,0), | |
| 316 | Size = UDim2.new(0.9,0,0.1,0), | |
| 317 | ZIndex = 2, | |
| 318 | Text = "Play", | |
| 319 | TextScaled = true, | |
| 320 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 321 | TextStrokeTransparency = 1, | |
| 322 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 323 | TextWrapped = true | |
| 324 | } | |
| 325 | ||
| 326 | VolumeInc = Create("TextButton"){
| |
| 327 | Parent = Main, | |
| 328 | BackgroundColor3 = Color3.new(0,7/255,48/255), | |
| 329 | BorderSizePixel = 2, | |
| 330 | Modal = false, | |
| 331 | Name = "+", | |
| 332 | Position = UDim2.new(0.75,0,0.325,0), | |
| 333 | Size = UDim2.new(0.2,0,0.34,0), | |
| 334 | Visible = true, | |
| 335 | TextScaled = true, | |
| 336 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 337 | TextStrokeTransparency = 1, | |
| 338 | Text = "+" | |
| 339 | } | |
| 340 | ||
| 341 | VolumeDec = Create("TextButton"){
| |
| 342 | Parent = Main, | |
| 343 | BackgroundColor3 = Color3.new(48/255,0,0), | |
| 344 | BorderSizePixel = 2, | |
| 345 | Modal = false, | |
| 346 | Name = "+", | |
| 347 | Position = UDim2.new(0.05,0,0.325,0), | |
| 348 | Size = UDim2.new(0.2,0,0.34,0), | |
| 349 | Visible = true, | |
| 350 | TextScaled = true, | |
| 351 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 352 | TextStrokeTransparency = 1, | |
| 353 | Text = "-" | |
| 354 | } | |
| 355 | ||
| 356 | VolText = Create("TextLabel"){
| |
| 357 | Parent = Main, | |
| 358 | BackgroundColor3 = Color3.new(255/255,255/255,255/255), | |
| 359 | BackgroundTransparency = 1, | |
| 360 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 361 | BorderSizePixel = 0, | |
| 362 | Name = "Volume", | |
| 363 | Position = UDim2.new(0.175,0,0.325,0), | |
| 364 | Size = UDim2.new(0.64,0,0.1,0), | |
| 365 | Visible = true, | |
| 366 | Text = "Volume", | |
| 367 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 368 | TextScaled = true, | |
| 369 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 370 | TextStrokeTransparency = 0 | |
| 371 | } | |
| 372 | ||
| 373 | VolNum = Create("TextLabel"){
| |
| 374 | Parent = Main, | |
| 375 | BackgroundTransparency = 1, | |
| 376 | BorderSizePixel = 0, | |
| 377 | Name = "###", | |
| 378 | Position = UDim2.new(0.175,0,0.45,0), | |
| 379 | Size = UDim2.new(0.64,0,0.2,0), | |
| 380 | TextStrokeTransparency = 0, | |
| 381 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 382 | Text = "1", | |
| 383 | TextScaled = true | |
| 384 | } | |
| 385 | ||
| 386 | HeadphText = Create("TextLabel"){
| |
| 387 | Parent = Main, | |
| 388 | BackgroundTransparency = 1, | |
| 389 | BorderSizePixel = 0, | |
| 390 | Name = "Headphones", | |
| 391 | Position = UDim2.new(0.05,0,0.7,0), | |
| 392 | Size = UDim2.new(0.64,0,0.1,0), | |
| 393 | TextStrokeTransparency = 0, | |
| 394 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 395 | Text = "Headphones", | |
| 396 | TextScaled = true | |
| 397 | } | |
| 398 | ||
| 399 | NotesText = Create("TextLabel"){
| |
| 400 | Parent = Main, | |
| 401 | BackgroundTransparency = 1, | |
| 402 | BorderSizePixel = 0, | |
| 403 | Name = "Notes", | |
| 404 | Position = UDim2.new(0.05,0,0.85,0), | |
| 405 | Size = UDim2.new(0.64,0,0.1,0), | |
| 406 | TextStrokeTransparency = 0, | |
| 407 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 408 | Text = "Notes", | |
| 409 | TextScaled = true | |
| 410 | } | |
| 411 | ||
| 412 | Check1 = Create("TextButton"){
| |
| 413 | Parent = Main, | |
| 414 | BackgroundTransparency = 0.7, | |
| 415 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 416 | BorderSizePixel = 5, | |
| 417 | BorderColor3 = Color3.new(0,0,0), | |
| 418 | Name = "Check1", | |
| 419 | Modal = false, | |
| 420 | Position = UDim2.new(0.78,0,0.7,0), | |
| 421 | Size = UDim2.new(0.13,0,0.1,0), | |
| 422 | ZIndex = 2, | |
| 423 | Text = "", | |
| 424 | TextScaled = true, | |
| 425 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 426 | TextStrokeTransparency = 1, | |
| 427 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 428 | TextWrapped = true | |
| 429 | } | |
| 430 | ||
| 431 | Check2 = Create("TextButton"){
| |
| 432 | Parent = Main, | |
| 433 | BackgroundTransparency = 0.7, | |
| 434 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 435 | BorderSizePixel = 5, | |
| 436 | BorderColor3 = Color3.new(0,0,0), | |
| 437 | Name = "Check2", | |
| 438 | Modal = false, | |
| 439 | Position = UDim2.new(0.78,0,0.85,0), | |
| 440 | Size = UDim2.new(0.13,0,0.1,0), | |
| 441 | ZIndex = 2, | |
| 442 | Text = "", | |
| 443 | TextScaled = true, | |
| 444 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 445 | TextStrokeTransparency = 1, | |
| 446 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 447 | TextWrapped = true | |
| 448 | } | |
| 449 | ||
| 450 | Checkmark1 = Create("ImageLabel"){
| |
| 451 | Parent = Check1, | |
| 452 | Size = UDim2.new(1,0,1,0), | |
| 453 | Position = UDim2.new(0,0,0,0), | |
| 454 | BorderSizePixel = 0, | |
| 455 | BackgroundTransparency = 1, | |
| 456 | Image = "rbxassetid://55565289", | |
| 457 | } | |
| 458 | ||
| 459 | Checkmark2 = Create("ImageLabel"){
| |
| 460 | Parent = Check2, | |
| 461 | Size = UDim2.new(1,0,1,0), | |
| 462 | Position = UDim2.new(0,0,0,0), | |
| 463 | BorderSizePixel = 0, | |
| 464 | BackgroundTransparency = 1, | |
| 465 | Image = "rbxassetid://55565289", | |
| 466 | } | |
| 467 | ||
| 468 | OpenButton = Create("TextButton"){
| |
| 469 | Parent = GUI, | |
| 470 | BackgroundTransparency = 0.7, | |
| 471 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 472 | BorderSizePixel = 5, | |
| 473 | BorderColor3 = Color3.new(0,0,0), | |
| 474 | Name = "Open/Close", | |
| 475 | Modal = false, | |
| 476 | Position = UDim2.new(0,0,0.7,0), | |
| 477 | Size = UDim2.new(0.13,0,0.1,0), | |
| 478 | ZIndex = 2, | |
| 479 | Text = "Wubstep", | |
| 480 | TextScaled = true, | |
| 481 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 482 | TextStrokeTransparency = 0, | |
| 483 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 484 | TextWrapped = true | |
| 485 | } | |
| 486 | ||
| 487 | local Open = false | |
| 488 | local Debounce = false | |
| 489 | OpenButton.MouseButton1Down:connect(function() | |
| 490 | if Open == false and Debounce == false then | |
| 491 | Debounce = true | |
| 492 | Main:TweenPosition(UDim2.new(0.4, 0, 0.25, 0),"Out","Quad",3,false) | |
| 493 | repeat wait() until Main.Position == UDim2.new(0.4,0,0.25,0) | |
| 494 | wait(0.2) | |
| 495 | Open = true | |
| 496 | Debounce = false | |
| 497 | elseif Open == true and Debounce == false then | |
| 498 | Debounce = true | |
| 499 | Main:TweenPosition(UDim2.new(-1.2, 0, 0.25, 0),"Out","Quad",5,false) | |
| 500 | repeat wait() until Main.Position == UDim2.new(-1.2,0,0.25,0) | |
| 501 | wait(0.2) | |
| 502 | Open = false | |
| 503 | Debounce = false | |
| 504 | end | |
| 505 | end) | |
| 506 | ||
| 507 | local Volume = 1 | |
| 508 | VolumeInc.MouseButton1Down:connect(function() | |
| 509 | if Volume < 10 then | |
| 510 | Volume = Volume + 0.5 | |
| 511 | end | |
| 512 | end) | |
| 513 | VolumeDec.MouseButton1Down:connect(function() | |
| 514 | if Volume > 0 then | |
| 515 | Volume = Volume - 0.5 | |
| 516 | end | |
| 517 | end) | |
| 518 | ||
| 519 | humanoid.WalkSpeed = 7 | |
| 520 | ||
| 521 | local s = Instance.new('Sound', head)
| |
| 522 | s.Volume = Volume | |
| 523 | s.SoundId = "rbxassetid://0" --EG: Music to my ears | |
| 524 | s.Looped = true | |
| 525 | s:play() | |
| 526 | ||
| 527 | PlayButton.MouseButton1Down:connect(function() | |
| 528 | s.SoundId = "rbxassetid://"..IDBox.Text | |
| 529 | end) | |
| 530 | ||
| 531 | rsc0 = rm.C0 | |
| 532 | lsc0 = lm.C0 | |
| 533 | neckc0 = neck.C0 | |
| 534 | rootc0 = rj.C0 | |
| 535 | llc0 = llegm.C0 | |
| 536 | rlc0 = rlegm.C0 | |
| 537 | speed = 0.25 | |
| 538 | angle = 0 | |
| 539 | anglespeed = 1 | |
| 540 | ||
| 541 | local Hat = Instance.new('Part', char)
| |
| 542 | Hat.FormFactor = 'Custom' | |
| 543 | Hat.Size = Vector3.new(1,1,1) | |
| 544 | Hat.CanCollide = false | |
| 545 | Hat.Locked = true | |
| 546 | Hat.Name = 'Headphones' | |
| 547 | Hat:breakJoints() | |
| 548 | Hat.TopSurface = 0 | |
| 549 | Hat.BottomSurface = 0 | |
| 550 | local Mesh = Instance.new('SpecialMesh', Hat)
| |
| 551 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545" | |
| 552 | Mesh.TextureId = "rbxassetid://186142634" | |
| 553 | ||
| 554 | local Weld = Instance.new('Weld', Hat)
| |
| 555 | Weld.Part0 = Hat | |
| 556 | Weld.Part1 = head | |
| 557 | Weld.C1 = CFrame.new(0, .2, 0) | |
| 558 | ||
| 559 | local HP = true | |
| 560 | local Not = true | |
| 561 | Check1.MouseButton1Down:connect(function() | |
| 562 | if HP == true then | |
| 563 | HP = false | |
| 564 | Hat.Transparency = 0 | |
| 565 | Checkmark1.Visible = true | |
| 566 | elseif HP == false then | |
| 567 | HP = true | |
| 568 | Hat.Transparency = 1 | |
| 569 | Checkmark1.Visible = false | |
| 570 | end | |
| 571 | end) | |
| 572 | Check2.MouseButton1Down:connect(function() | |
| 573 | if Not == true then | |
| 574 | Not = false | |
| 575 | Checkmark2.Visible = false | |
| 576 | elseif Not == false then | |
| 577 | Not = true | |
| 578 | Checkmark2.Visible = true | |
| 579 | end | |
| 580 | end) | |
| 581 | ||
| 582 | local SplashEffect = Instance.new('Part')
| |
| 583 | Instance.new("CylinderMesh", SplashEffect);
| |
| 584 | SplashEffect.Size = Vector3.new(.2,.2,.2) | |
| 585 | SplashEffect.Anchored = true | |
| 586 | SplashEffect.Transparency = 1 | |
| 587 | SplashEffect.CanCollide = false | |
| 588 | SplashEffect.Locked = true | |
| 589 | SplashEffect.Material = "Neon" | |
| 590 | local surfacegui = Instance.new('SurfaceGui', SplashEffect)
| |
| 591 | surfacegui.Face = 'Top' | |
| 592 | surfacegui.CanvasSize = Vector2.new(800,800) | |
| 593 | local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
| |
| 594 | SplashEffectImage.Size = UDim2.new(1,0,1,0) | |
| 595 | SplashEffectImage.Image = "rbxassetid://166139049" | |
| 596 | SplashEffectImage.BackgroundTransparency = 1 | |
| 597 | SplashEffectImage.Name = 'Effect' | |
| 598 | SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255) | |
| 599 | local light = Instance.new('PointLight', SplashEffect)
| |
| 600 | ||
| 601 | local SplashEffect2 = SplashEffect:clone() | |
| 602 | SplashEffect2:ClearAllChildren() | |
| 603 | Instance.new("CylinderMesh", SplashEffect2);
| |
| 604 | local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
| |
| 605 | surfacegui2.Face = 'Top' | |
| 606 | surfacegui2.CanvasSize = Vector2.new(800,800) | |
| 607 | local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
| |
| 608 | SplashEffect2Image.Size = UDim2.new(1,0,1,0) | |
| 609 | SplashEffect2Image.Image = "rbxassetid://166139049" | |
| 610 | SplashEffect2Image.BackgroundTransparency = 1 | |
| 611 | SplashEffect2Image.Name = 'Effect' | |
| 612 | SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255) | |
| 613 | local light2 = Instance.new('PointLight', SplashEffect2)
| |
| 614 | ||
| 615 | local Crack = Instance.new('Part')
| |
| 616 | Crack.Size = Vector3.new(12, .2, 12) | |
| 617 | Crack.Anchored = true | |
| 618 | Crack.Transparency = 1 | |
| 619 | Crack.CanCollide = false | |
| 620 | ||
| 621 | Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
| |
| 622 | local Image = Instance.new('Decal', Crack)
| |
| 623 | Image.Face = 'Top' | |
| 624 | ||
| 625 | ||
| 626 | local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
| |
| 627 | local Splash1cframe | |
| 628 | local Splash2cframe | |
| 629 | ||
| 630 | function math_pos(float) | |
| 631 | if float < 0 then float = 0 end | |
| 632 | return float | |
| 633 | end | |
| 634 | function math_neg(float) | |
| 635 | if float > 0 then float = 0 end | |
| 636 | return float | |
| 637 | end | |
| 638 | function math_max(float, max) | |
| 639 | if float > max then float = max end | |
| 640 | return float | |
| 641 | end | |
| 642 | function math_min(float, min) | |
| 643 | if float > min then float = min end | |
| 644 | return float | |
| 645 | end | |
| 646 | pchar = char | |
| 647 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 648 | local p = Instance.new('Part',parent)
| |
| 649 | p.formFactor = 'Custom' | |
| 650 | p.Size = Vector3.new(x,y,z) | |
| 651 | p.BrickColor = BrickColor.new(color) | |
| 652 | p.Material = "Neon" | |
| 653 | p.CanCollide = cc | |
| 654 | p.Transparency = tr | |
| 655 | p.Anchored = an | |
| 656 | p.TopSurface,p.BottomSurface = 0,0 | |
| 657 | p.Locked=true | |
| 658 | p:BreakJoints() | |
| 659 | return p | |
| 660 | end | |
| 661 | Mesh = function(par,num,x,y,z) | |
| 662 | local msh = _ | |
| 663 | if num == 1 then | |
| 664 | msh = Instance.new("CylinderMesh",par)
| |
| 665 | elseif num == 2 then | |
| 666 | msh = Instance.new("SpecialMesh",par)
| |
| 667 | msh.MeshType = 3 | |
| 668 | elseif num == 3 then | |
| 669 | msh = Instance.new("BlockMesh",par)
| |
| 670 | elseif num == 4 then | |
| 671 | msh = Instance.new("SpecialMesh",par)
| |
| 672 | msh.MeshType = "Torso" | |
| 673 | elseif type(num) == 'string' then | |
| 674 | msh = Instance.new("SpecialMesh",par)
| |
| 675 | msh.MeshId = num | |
| 676 | end | |
| 677 | msh.Scale = Vector3.new(x,y,z) | |
| 678 | return msh | |
| 679 | end | |
| 680 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 681 | local a= Part(1,1,1,col1,.5,false,true,pchar) | |
| 682 | local a2= Part(1,1,1,col2,.5,false,true,pchar) | |
| 683 | local a3= Part(1,1,1,col2,.5,false,true,pchar) | |
| 684 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 685 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 686 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 687 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 688 | a.CFrame=cfr | |
| 689 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 690 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 691 | for i,v in pairs(workspace:children()) do | |
| 692 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 693 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 694 | if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
| |
| 695 | v.Humanoid.Health=v.Humanoid.Health-dmg | |
| 696 | v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2)) | |
| 697 | end | |
| 698 | end | |
| 699 | end | |
| 700 | end | |
| 701 | Spawn(function() | |
| 702 | while true do | |
| 703 | wait() | |
| 704 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 705 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 706 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 707 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 708 | a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2)) | |
| 709 | a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2)) | |
| 710 | a.Transparency=a.Transparency+0.05 | |
| 711 | a2.Transparency=a2.Transparency+0.05 | |
| 712 | a3.Transparency=a3.Transparency+0.05 | |
| 713 | end | |
| 714 | end) | |
| 715 | end | |
| 716 | ||
| 717 | local lasttick | |
| 718 | local Action = false | |
| 719 | local db = false | |
| 720 | cd = false | |
| 721 | ||
| 722 | mouse.KeyDown:connect(function(k) | |
| 723 | if k:byte() == 32 then | |
| 724 | if not jumped then | |
| 725 | lasttick = tick() | |
| 726 | end | |
| 727 | elseif k:lower() == "c" and db == false and cd == false then | |
| 728 | cd = true | |
| 729 | local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
| |
| 730 | local Col1 = Colors[math.random(1,#Colors)] | |
| 731 | local Col2 = Colors[math.random(1,#Colors)] | |
| 732 | explosion(Col1,Col2,torso.CFrame,Vector3.new(80,80,80),60,80) | |
| 733 | cd = false | |
| 734 | elseif k:lower() == "f" and db == false then | |
| 735 | db = true | |
| 736 | local Rbx = LoadLibrary("RbxUtility")
| |
| 737 | local Cre = Rbx.Create | |
| 738 | local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
| |
| 739 | local sh = Cre("Part"){
| |
| 740 | Parent = char, | |
| 741 | Size = Vector3.new(0.2,0.2,0.2), | |
| 742 | Anchored = true, | |
| 743 | CanCollide = false, | |
| 744 | Material = "Neon", | |
| 745 | BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]), | |
| 746 | CFrame = torso.CFrame | |
| 747 | } | |
| 748 | local msh = Cre("SpecialMesh"){
| |
| 749 | MeshType = "Sphere", | |
| 750 | Scale = Vector3.new(0.01,0.01,0.01), | |
| 751 | Parent = sh | |
| 752 | } | |
| 753 | game:GetService("Debris"):AddItem(sh,25)
| |
| 754 | coroutine.resume(coroutine.create(function() | |
| 755 | local a = 0 | |
| 756 | for i=0,150 do | |
| 757 | game:GetService("RunService").RenderStepped:wait()
| |
| 758 | sh.CFrame = torso.CFrame | |
| 759 | msh.Scale = msh.Scale + Vector3.new(math.floor(i/18),math.floor(i/18),math.floor(i/18)) | |
| 760 | sh.Transparency = i/150 | |
| 761 | a = a + 1 | |
| 762 | if a >= 3 then | |
| 763 | a = 0 | |
| 764 | sh.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 765 | end | |
| 766 | for i,v in pairs(game.Workspace:GetChildren()) do | |
| 767 | if v and v.Name ~= plr.Name and v:FindFirstChild("Humanoid") then
| |
| 768 | if v:FindFirstChild("Torso") then
| |
| 769 | if (v.Torso.Position - torso.Position).magnitude <= i then | |
| 770 | v:BreakJoints() | |
| 771 | end | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | db = false | |
| 777 | end)) | |
| 778 | end | |
| 779 | end) | |
| 780 | ||
| 781 | plr.Chatted:connect(function(msg) | |
| 782 | if msg == "/e dance" or msg == "/emote dance" then | |
| 783 | Action = 'Dancing' | |
| 784 | end | |
| 785 | if msg == "/e dance2" or msg == "/emote dance2" then | |
| 786 | Action = 'Dancing2' | |
| 787 | end | |
| 788 | if msg == "/e dance3" or msg == "/emote dance3" then | |
| 789 | Action = 'Dancing3' | |
| 790 | end | |
| 791 | end) | |
| 792 | ||
| 793 | local screengui = Instance.new('ScreenGui', plr.PlayerGui)
| |
| 794 | screengui.Name = "Vinyl's Effect" | |
| 795 | local frame = Instance.new('ImageLabel', screengui)
| |
| 796 | frame.Size = UDim2.new(1,250,1,250) | |
| 797 | frame.Position = UDim2.new(0,-125,0,-125) | |
| 798 | frame.Image = "rbxassetid://186263828" | |
| 799 | frame.BackgroundTransparency = 1 | |
| 800 | ||
| 801 | local parts = Instance.new('Model', char)
| |
| 802 | ||
| 803 | coroutine.resume(coroutine.create(function() | |
| 804 | while true do | |
| 805 | game:GetService("RunService").RenderStepped:wait()
| |
| 806 | VolNum.Text = Volume | |
| 807 | s.Volume = Volume | |
| 808 | end | |
| 809 | end)) | |
| 810 | ||
| 811 | local Notes = {}
| |
| 812 | game:service'RunService'.RenderStepped:connect(function() | |
| 813 | angle = (angle % 100) + anglespeed/10 | |
| 814 | local rscf = rsc0 | |
| 815 | local lscf = lsc0 | |
| 816 | local rjcf = rootc0 | |
| 817 | local ncf = neckc0 | |
| 818 | local rlcf = rlc0 | |
| 819 | local llcf = llc0 | |
| 820 | local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0)) | |
| 821 | local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
| |
| 822 | do --Right leg effect | |
| 823 | local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1) | |
| 824 | local hit,hitz, normal = workspace:FindPartOnRay(ray, char) | |
| 825 | if hit and hit:IsA'BasePart' and hitz then | |
| 826 | if SplashEffect.Parent == nil then | |
| 827 | local COLOR = SplashColors[math.random(1,#SplashColors)]; | |
| 828 | SplashEffect.Parent = parts | |
| 829 | SplashEffect.Transparency = 0.2 | |
| 830 | SplashEffect.BrickColor = BrickColor.new(COLOR) | |
| 831 | SplashEffect.Size = Vector3.new(.2,.2,.2) | |
| 832 | SplashEffectImage.ImageColor3 = COLOR; | |
| 833 | SplashEffectImage.ImageTransparency = 0 | |
| 834 | SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0) | |
| 835 | Splash1cframe = SplashEffect.CFrame | |
| 836 | light.Color = SplashEffectImage.ImageColor3 | |
| 837 | light.Brightness = 1 | |
| 838 | light.Range = 8 | |
| 839 | if Not == true then | |
| 840 | for i = 1, math.random(6,10) do | |
| 841 | local Note = Instance.new('Part', parts)
| |
| 842 | Note.CanCollide = false | |
| 843 | Note.Material = "Neon" | |
| 844 | Note.Anchored = true | |
| 845 | Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20) | |
| 846 | Note.Color = SplashEffectImage.ImageColor3 | |
| 847 | Note.Size = Vector3.new(1,1,1) | |
| 848 | local mesh = Instance.new('SpecialMesh', Note)
| |
| 849 | mesh.MeshId = "rbxassetid://1088207" | |
| 850 | mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5) | |
| 851 | table.insert(Notes,Note) | |
| 852 | end | |
| 853 | end | |
| 854 | wait(1) | |
| 855 | SplashEffect.Parent = nil | |
| 856 | Splash1cframe = nil | |
| 857 | end | |
| 858 | end | |
| 859 | end | |
| 860 | do --Left leg effect | |
| 861 | local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1) | |
| 862 | local hit,hitz, normal = workspace:FindPartOnRay(ray, char) | |
| 863 | if hit and hit:IsA'BasePart' and hitz then | |
| 864 | if SplashEffect2.Parent == nil then | |
| 865 | local COLOR = SplashColors[math.random(1,#SplashColors)]; | |
| 866 | SplashEffect2.Parent = parts | |
| 867 | SplashEffect2.Transparency = 0.2 | |
| 868 | ||
| 869 | SplashEffect2.BrickColor = BrickColor.new(COLOR) | |
| 870 | SplashEffect2.Size = Vector3.new(.2,.2,.2) | |
| 871 | SplashEffect2Image.ImageColor3 = COLOR; | |
| 872 | SplashEffect2Image.ImageTransparency = 0 | |
| 873 | SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0) | |
| 874 | Splash2cframe = SplashEffect2.CFrame | |
| 875 | light2.Color = SplashEffect2Image.ImageColor3 | |
| 876 | light2.Brightness = 1 | |
| 877 | light2.Range = 8 | |
| 878 | if Not == true then | |
| 879 | for i = 1, math.random(6,10) do | |
| 880 | local Note = Instance.new('Part', parts)
| |
| 881 | Note.CanCollide = false | |
| 882 | Note.Material = "Neon" | |
| 883 | Note.Anchored = true | |
| 884 | Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20) | |
| 885 | Note.Color = SplashEffect2Image.ImageColor3 | |
| 886 | Note.Size = Vector3.new(1,1,1) | |
| 887 | local mesh = Instance.new('SpecialMesh', Note)
| |
| 888 | mesh.MeshId = "rbxassetid://1088207" | |
| 889 | mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5) | |
| 890 | table.insert(Notes,Note) | |
| 891 | end | |
| 892 | end | |
| 893 | wait(1) | |
| 894 | SplashEffect2.Parent = nil | |
| 895 | Splash2cframe = nil | |
| 896 | end | |
| 897 | end | |
| 898 | end | |
| 899 | if Action == 'Dancing' then | |
| 900 | anglespeed = .95 | |
| 901 | llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02) | |
| 902 | rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02) | |
| 903 | rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0) | |
| 904 | lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1) | |
| 905 | rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0) | |
| 906 | ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0) | |
| 907 | elseif Action == 'Dancing2' then | |
| 908 | anglespeed = 1.15 | |
| 909 | llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02) | |
| 910 | rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02) | |
| 911 | rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35) | |
| 912 | lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35) | |
| 913 | rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0) | |
| 914 | ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2) | |
| 915 | elseif Action == 'Dancing3' then | |
| 916 | anglespeed = .95 | |
| 917 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0) | |
| 918 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05) | |
| 919 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05) | |
| 920 | rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8) | |
| 921 | lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8) | |
| 922 | ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0) | |
| 923 | elseif Action == false then | |
| 924 | if not jumphit then | |
| 925 | anglespeed = 2 | |
| 926 | rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0) | |
| 927 | llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0) | |
| 928 | lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0) | |
| 929 | rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0) | |
| 930 | elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then | |
| 931 | anglespeed = .75 | |
| 932 | ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0) | |
| 933 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) | |
| 934 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05) | |
| 935 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05) | |
| 936 | rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015) | |
| 937 | lscf = lsc0 * CFrame.Angles(math.asin(math.sin(angle))*.25, 0, -.015) | |
| 938 | elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then | |
| 939 | anglespeed = 1 | |
| 940 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0) | |
| 941 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025) | |
| 942 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025) | |
| 943 | rscf = rsc0 * CFrame.Angles(.5 - math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2) | |
| 944 | lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2) | |
| 945 | end | |
| 946 | end | |
| 947 | if SplashEffect.Parent ~= nil then | |
| 948 | if light then | |
| 949 | light.Range = light.Range + 1 | |
| 950 | light.Brightness = light.Brightness - .045 | |
| 951 | end | |
| 952 | SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25) | |
| 953 | SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045 | |
| 954 | SplashEffect.Transparency = SplashEffect.Transparency + .025 | |
| 955 | SplashEffect.CFrame = Splash1cframe | |
| 956 | end | |
| 957 | ||
| 958 | if Crack.Parent ~= nil then | |
| 959 | if Image.Transparency > 1 then Crack.Parent = nil end | |
| 960 | Image.Transparency = Image.Transparency + .045 | |
| 961 | end | |
| 962 | ||
| 963 | if SplashEffect2.Parent ~= nil then | |
| 964 | if light2 then | |
| 965 | light2.Range = light2.Range + 1 | |
| 966 | light2.Brightness = light2.Brightness - .045 | |
| 967 | end | |
| 968 | SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25) | |
| 969 | SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045 | |
| 970 | SplashEffect2.Transparency = SplashEffect2.Transparency + .025 | |
| 971 | SplashEffect2.CFrame = Splash2cframe | |
| 972 | end | |
| 973 | ||
| 974 | for i,v in pairs(Notes) do | |
| 975 | if v and v:IsA'BasePart' then | |
| 976 | if v.Transparency > 1 then | |
| 977 | v:Destroy() | |
| 978 | table.remove(Notes, i) | |
| 979 | end | |
| 980 | v.CFrame = v.CFrame * CFrame.new(0,0,-.285) | |
| 981 | v.Transparency = v.Transparency + .025 | |
| 982 | end | |
| 983 | end | |
| 984 | ||
| 985 | if Action ~= false then | |
| 986 | if torso.Velocity.magnitude > 2 then | |
| 987 | Action = false | |
| 988 | end | |
| 989 | end | |
| 990 | ||
| 991 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
| 992 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
| 993 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
| 994 | rm.C0 = clerp(rm.C0,rscf,speed) | |
| 995 | lm.C0 = clerp(lm.C0,lscf,speed) | |
| 996 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
| 997 | neck.C0 = clerp(neck.C0,ncf,speed) | |
| 998 | end) | |
| 999 | ||
| 1000 | plr.Chatted:connect(function(msg) | |
| 1001 | if (msg:sub(1,4) == "/mc ") then | |
| 1002 | s:stop(); | |
| 1003 | s.SoundId = "rbxassetid://"..msg:sub(5); | |
| 1004 | s:play(); | |
| 1005 | elseif msg:lower() == "/mc epicsaxguy" then | |
| 1006 | s:stop() | |
| 1007 | s.SoundId = "rbxassetid://130775431" | |
| 1008 | s:play() | |
| 1009 | elseif msg:lower() == "/mc shirushi" then | |
| 1010 | s:stop() | |
| 1011 | s.SoundId = "rbxassetid://186565262" | |
| 1012 | s:play() | |
| 1013 | end | |
| 1014 | end) | |
| 1015 | ||
| 1016 | ||
| 1017 | while true do | |
| 1018 | for i = 0,140,15 do | |
| 1019 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1020 | frame.Rotation = 0+math.random() | |
| 1021 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1022 | game:service'RunService'.RenderStepped:wait() | |
| 1023 | end | |
| 1024 | for i = 140,5, -15 do | |
| 1025 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1026 | frame.Rotation = 0+math.random(-10,10)/10 | |
| 1027 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1028 | game:service'RunService'.RenderStepped:wait() | |
| 1029 | end | |
| 1030 | for i = 5,25,15 do | |
| 1031 | frame.Rotation = 0-math.random() | |
| 1032 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1033 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1034 | game:service'RunService'.RenderStepped:wait() | |
| 1035 | end | |
| 1036 | for i = 25,0,-15 do | |
| 1037 | frame.Rotation = 0+math.random() | |
| 1038 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1039 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1040 | game:service'RunService'.RenderStepped:wait() | |
| 1041 | end | |
| 1042 | for i = 0,75,-15 do | |
| 1043 | frame.Rotation = 0-math.random() | |
| 1044 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1045 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1046 | game:service'RunService'.RenderStepped:wait() | |
| 1047 | end | |
| 1048 | for i = 75,0,-15 do | |
| 1049 | frame.Rotation = 0 | |
| 1050 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1051 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1052 | game:service'RunService'.RenderStepped:wait() | |
| 1053 | end | |
| 1054 | end | |
| 1055 | end,o1) | |
| 1056 | end) | |
| 1057 | mas.Parent = workspace | |
| 1058 | mas:MakeJoints() | |
| 1059 | local mas1 = mas:GetChildren() | |
| 1060 | for i=1,#mas1 do | |
| 1061 | mas1[i].Parent = script | |
| 1062 | ypcall(function() mas1[i]:MakeJoints() end) | |
| 1063 | end | |
| 1064 | mas:Destroy() | |
| 1065 | for i=1,#cors do | |
| 1066 | spawn(cors[i]) | |
| 1067 | end | |
| 1068 | ||
| 1069 | game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
| |
| 1070 | game:GetService("Lighting").Brightness = 1
| |
| 1071 | game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
| |
| 1072 | game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
| |
| 1073 | game:GetService("Lighting").GlobalShadows = true
| |
| 1074 | game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
| |
| 1075 | game:GetService("Lighting").Outlines = true
| |
| 1076 | game:GetService("Lighting").GeographicLatitude = 41.733299255371
| |
| 1077 | game:GetService("Lighting").TimeOfDay = "14:00:00"
| |
| 1078 | game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
| |
| 1079 | game:GetService("Lighting").FogEnd = 100000
| |
| 1080 | game:GetService("Lighting").FogStart = 0 |