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