SHOW:
|
|
- or go back to the newest paste.
| 1 | -- [[[ | |
| 2 | --000000[[====================================================================================\\ | |
| 3 | - | --000000[[ DEIVIS97 EDIT |
| 3 | + | --000000[[ 5mzazatv and DEIVIS97 EDIT |
| 4 | --000000[[====================================================================================// | |
| 5 | -- [[[ | |
| 6 | ||
| 7 | ||
| 8 | m = game.Players.LocalPlayer | |
| 9 | char = m.Character | |
| 10 | local txt = Instance.new("BillboardGui", char)
| |
| 11 | txt.Adornee = char .Head | |
| 12 | txt.Name = "_status" | |
| 13 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 14 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 15 | local text = Instance.new("TextLabel", txt)
| |
| 16 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 17 | text.FontSize = "Size24" | |
| 18 | text.TextScaled = true | |
| 19 | text.TextTransparency = 0 | |
| 20 | text.BackgroundTransparency = 1 | |
| 21 | text.TextTransparency = 0 | |
| 22 | text.TextStrokeTransparency = 0 | |
| 23 | text.Font = "Arcade" | |
| 24 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 25 | ||
| 26 | v=Instance.new("Part")
| |
| 27 | v.Name = "ColorBrick" | |
| 28 | v.Parent=m.Character | |
| 29 | v.FormFactor="Symmetric" | |
| 30 | v.Anchored=true | |
| 31 | v.CanCollide=false | |
| 32 | v.BottomSurface="Smooth" | |
| 33 | v.TopSurface="Smooth" | |
| 34 | v.Size=Vector3.new(10,5,3) | |
| 35 | v.Transparency=1 | |
| 36 | v.CFrame=char.Torso.CFrame | |
| 37 | v.BrickColor=BrickColor.new("Really black")
| |
| 38 | v.Transparency=1 | |
| 39 | text.TextColor3 = Color3.new(255,0,0) | |
| 40 | v.Shape="Block" | |
| 41 | text.Text = "" | |
| 42 | ||
| 43 | ||
| 44 | pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
| |
| 45 | local plr = game.Players.LocalPlayer | |
| 46 | repeat wait() until plr.Character | |
| 47 | plr = game.Players.LocalPlayer | |
| 48 | char = plr.Character | |
| 49 | Character=plr.Character | |
| 50 | torso = char.Torso | |
| 51 | head = char.Head | |
| 52 | neck = torso.Neck | |
| 53 | vt=Vector3.new | |
| 54 | Humanoid=Character.Humanoid | |
| 55 | cf=CFrame.new | |
| 56 | cn=CFrame.new | |
| 57 | shake = true | |
| 58 | RootPart=Character.HumanoidRootPart | |
| 59 | RootJoint=RootPart.RootJoint | |
| 60 | euler=CFrame.fromEulerAnglesXYZ | |
| 61 | angles=CFrame.Angles | |
| 62 | sound = Instance.new("Sound", torso)
| |
| 63 | sound.SoundId = "rbxassetid://144901116" | |
| 64 | sound.Parent = char | |
| 65 | sound.Volume = 50 | |
| 66 | sound.Pitch = 1 | |
| 67 | sound:Play() | |
| 68 | sound.Looped = true | |
| 69 | RootCF=euler(-1.57,0,3.14) | |
| 70 | plr.Chatted:connect(function(message) | |
| 71 | if message:sub(1,4) == "play" then | |
| 72 | sound:Stop() | |
| 73 | sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6) | |
| 74 | sound:Play() | |
| 75 | end | |
| 76 | if message:sub(1,7) == "noshake" then | |
| 77 | shake = false | |
| 78 | coroutine.resume(coroutine.create(function() | |
| 79 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 80 | Text = 'Shake off'; | |
| 81 | Color = Color3.new(0,0,0); | |
| 82 | Color = Color3.new(0,255,255); | |
| 83 | Font = Enum.Font.Bodoni; | |
| 84 | FontSize = Enum.FontSize.Size24; | |
| 85 | }) | |
| 86 | end)) | |
| 87 | end | |
| 88 | if message:sub(1,2) == "KQ" then | |
| 89 | sound:Stop() | |
| 90 | sound.SoundId = "http://www.roblox.com/asset/?id=615990065" | |
| 91 | sound:Play() | |
| 92 | end | |
| 93 | ||
| 94 | if message:sub(1,8) == "MEGALOUD" then | |
| 95 | sound:Stop() | |
| 96 | sound.SoundId = "http://www.roblox.com/asset/?id=970111053" | |
| 97 | sound:Play() | |
| 98 | end | |
| 99 | ||
| 100 | if message:sub(1,8) == "NFL" then | |
| 101 | sound:Stop() | |
| 102 | sound.SoundId = "http://www.roblox.com/asset/?id=142315718" | |
| 103 | sound:Play() | |
| 104 | end | |
| 105 | ||
| 106 | ||
| 107 | if message:sub(1,8) == "Yare" then | |
| 108 | sound:Stop() | |
| 109 | sound.SoundId = "http://www.roblox.com/asset/?id=292481006" | |
| 110 | sound:Play() | |
| 111 | end | |
| 112 | ||
| 113 | ||
| 114 | if message:sub(1,5) == "Sweet" then | |
| 115 | sound:Stop() | |
| 116 | sound.SoundId = "http://www.roblox.com/asset/?id=493674525" | |
| 117 | sound:Play() | |
| 118 | end | |
| 119 | ||
| 120 | if message:sub(1,5) == "Curse" then | |
| 121 | sound:Stop() | |
| 122 | sound.SoundId = "http://www.roblox.com/asset/?id=486598641" | |
| 123 | sound:Play() | |
| 124 | end | |
| 125 | ||
| 126 | ||
| 127 | if message:sub(1,5) == "KiraL" then | |
| 128 | sound:Stop() | |
| 129 | sound.SoundId = "http://www.roblox.com/asset/?id=957970594" | |
| 130 | sound:Play() | |
| 131 | end | |
| 132 | ||
| 133 | if message:sub(1,8) == "FlamL" then | |
| 134 | sound:Stop() | |
| 135 | sound.SoundId = "http://www.roblox.com/asset/?id=1523846324" | |
| 136 | sound:Play() | |
| 137 | end | |
| 138 | ||
| 139 | if message:sub(1,6) == "OMG" then | |
| 140 | sound:Stop() | |
| 141 | sound.SoundId = "http://www.roblox.com/asset/?id=1259371424" | |
| 142 | sound:Play() | |
| 143 | end | |
| 144 | ||
| 145 | if message:sub(1,6) == "PLX" then | |
| 146 | sound.SoundId = "http://www.roblox.com/asset/?id=124433147" | |
| 147 | sound:Play() | |
| 148 | end | |
| 149 | ||
| 150 | if message:sub(1,6) == "LOL" then | |
| 151 | sound:Stop() | |
| 152 | sound.SoundId = "http://www.roblox.com/asset/?id=322621962" | |
| 153 | sound:Play() | |
| 154 | end | |
| 155 | ||
| 156 | if message:sub(1,6) == "Flam" then | |
| 157 | sound:Stop() | |
| 158 | sound.SoundId = "http://www.roblox.com/asset/?id=1262369561" | |
| 159 | sound:Play() | |
| 160 | end | |
| 161 | ||
| 162 | if message:sub(1,5) == "SSJ3" then | |
| 163 | sound:Stop() | |
| 164 | sound.SoundId = "http://www.roblox.com/asset/?id=451811905" | |
| 165 | sound:Play() | |
| 166 | wait(6) | |
| 167 | local ParticleEmitter0 = Instance.new("ParticleEmitter")
| |
| 168 | ParticleEmitter0.Parent = torso | |
| 169 | ParticleEmitter0.Transparency = NumberSequence.new(0.70000000298023,0.90000000298023) | |
| 170 | ParticleEmitter0.Size = NumberSequence.new(6.2240438461304,8.0928964614868,10.7158470153809,0) | |
| 171 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(255, 255, 0)) | |
| 172 | ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=305943367" | |
| 173 | ParticleEmitter0.Lifetime = NumberRange.new(1) | |
| 174 | ParticleEmitter0.Rate = 10 | |
| 175 | ParticleEmitter0.VelocitySpread = 0 | |
| 176 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(255, 255, 0)) | |
| 177 | wait(7) | |
| 178 | local Hair = Instance.new("Part")
| |
| 179 | Hair.Parent = char | |
| 180 | Hair.Name = "Hair" | |
| 181 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 182 | Hair.CFrame = char.head | |
| 183 | Hair:BreakJoints() | |
| 184 | Hair.CanCollide = false | |
| 185 | Hair.BrickColor = BrickColor.new("New Yeller")
| |
| 186 | Hair.TopSurface = "Smooth" | |
| 187 | Hair.BottomSurface = "Smooth" | |
| 188 | hair = Instance.new("Weld")
| |
| 189 | hair.Name = "Weld" | |
| 190 | hair.Part0 = char.head | |
| 191 | hair.Part1 = Hair | |
| 192 | hair.Parent = char.head | |
| 193 | hair.C0 = CFrame.new(-0.1, -0.71, 0.8)*CFrame.fromEulerAnglesXYZ(0, 3, 0) | |
| 194 | hair = Instance.new("SpecialMesh")
| |
| 195 | Mesh.Parent = Hair | |
| 196 | Mesh.MeshId = "rbxassetid://437432504" | |
| 197 | Mesh.TextureId = "http://www.roblox.com/asset/?id=614130918" | |
| 198 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 199 | end | |
| 200 | ||
| 201 | ||
| 202 | ||
| 203 | if message:sub(1,5) == "Kira" then | |
| 204 | sound:Stop() | |
| 205 | sound.SoundId = "http://www.roblox.com/asset/?id=578106329" | |
| 206 | sound:Play() | |
| 207 | end | |
| 208 | ||
| 209 | ||
| 210 | ||
| 211 | ||
| 212 | ||
| 213 | if message:sub(1,5) == "Shrek" then | |
| 214 | sound:Stop() | |
| 215 | sound.SoundId = "http://www.roblox.com/asset/?id=150771181" | |
| 216 | sound:Play() | |
| 217 | end | |
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | ||
| 222 | ||
| 223 | ||
| 224 | ||
| 225 | if message:sub(1,5) == "Sad" then | |
| 226 | sound:Stop() | |
| 227 | sound.SoundId = "http://www.roblox.com/asset/?id=146079760" | |
| 228 | sound:Play() | |
| 229 | end | |
| 230 | ||
| 231 | ||
| 232 | ||
| 233 | ||
| 234 | ||
| 235 | ||
| 236 | if message:sub(1,5) == "Halo" then | |
| 237 | sound:Stop() | |
| 238 | sound.SoundId = "http://www.roblox.com/asset/?id=158863545" | |
| 239 | sound:Play() | |
| 240 | end | |
| 241 | ||
| 242 | ||
| 243 | ||
| 244 | ||
| 245 | ||
| 246 | if message:sub(1,3) == "Cat" then | |
| 247 | sound:Stop() | |
| 248 | sound.SoundId = "http://www.roblox.com/asset/?id=130786686" | |
| 249 | sound:Play() | |
| 250 | end | |
| 251 | ||
| 252 | if message:sub(1,6) == "Spooky" then | |
| 253 | sound:Stop() | |
| 254 | sound.SoundId = "http://www.roblox.com/asset/?id=160442087" | |
| 255 | sound:Play() | |
| 256 | end | |
| 257 | ||
| 258 | if message:sub(1,6) == "HB" then | |
| 259 | sound:Stop() | |
| 260 | sound.SoundId = "rbxassetid://516339448" | |
| 261 | sound:Play() | |
| 262 | end | |
| 263 | ||
| 264 | if message:sub(1,8) == "BD" then | |
| 265 | sound:Stop() | |
| 266 | sound.SoundId = "http://www.roblox.com/asset/?id=678621902" | |
| 267 | sound:Play() | |
| 268 | end | |
| 269 | ||
| 270 | if message:sub(1,3) == "MLG" then | |
| 271 | sound:Stop() | |
| 272 | sound.SoundId = "http://www.roblox.com/asset/?id=177080835" | |
| 273 | sound:Play() | |
| 274 | end | |
| 275 | ||
| 276 | if message:sub(1,5) == "pitch" then | |
| 277 | sound.Pitch = ""..message:sub(1,2) | |
| 278 | end | |
| 279 | ||
| 280 | if message:sub(1,4) == "vol" then | |
| 281 | sound.Volume = ""..message:sub(1,3) | |
| 282 | end | |
| 283 | ||
| 284 | ||
| 285 | if message:sub(1,6) == "noglob" then | |
| 286 | sound.Parent = torso | |
| 287 | coroutine.resume(coroutine.create(function() | |
| 288 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 289 | Text = 'Global music off'; | |
| 290 | Color = Color3.new(0,0,0); | |
| 291 | Color = Color3.new(0,255,255); | |
| 292 | Font = Enum.Font.Bodoni; | |
| 293 | FontSize = Enum.FontSize.Size24; | |
| 294 | }) | |
| 295 | end)) | |
| 296 | end | |
| 297 | ||
| 298 | if message:sub(1,4) == "glob" then | |
| 299 | ||
| 300 | sound.Parent = char | |
| 301 | coroutine.resume(coroutine.create(function() | |
| 302 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 303 | Text = 'Global music on'; | |
| 304 | Color = Color3.new(0,0,0); | |
| 305 | Color = Color3.new(0,255,255); | |
| 306 | Font = Enum.Font.Bodoni; | |
| 307 | FontSize = Enum.FontSize.Size24; | |
| 308 | }) | |
| 309 | end)) | |
| 310 | ||
| 311 | end | |
| 312 | ||
| 313 | ||
| 314 | if message:sub(1,5) == "shake" then | |
| 315 | shake = true | |
| 316 | coroutine.resume(coroutine.create(function() | |
| 317 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 318 | Text = 'Shake on'; | |
| 319 | Color = Color3.new(0,0,0); | |
| 320 | Color = Color3.new(0,255,255); | |
| 321 | Font = Enum.Font.Bodoni; | |
| 322 | FontSize = Enum.FontSize.Size24; | |
| 323 | }) | |
| 324 | end)) | |
| 325 | end | |
| 326 | end) | |
| 327 | ||
| 328 | mouse=plr:GetMouse() | |
| 329 | ||
| 330 | ||
| 331 | ||
| 332 | ||
| 333 | ||
| 334 | ||
| 335 | ||
| 336 | coroutine.resume(coroutine.create(function() | |
| 337 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 338 | Text = 'Hello, Welcome to my dancer edit!'; | |
| 339 | Color = Color3.new(0,0,0); | |
| 340 | Color = Color3.new(0,255,255); | |
| 341 | Font = Enum.Font.Bodoni; | |
| 342 | FontSize = Enum.FontSize.Size24; | |
| 343 | }) | |
| 344 | end)) | |
| 345 | wait(0.5) | |
| 346 | ||
| 347 | ||
| 348 | local light = Instance.new("PointLight",torso)
| |
| 349 | light.Color = Color3.new(0, 0, 0) | |
| 350 | light.Brightness = 4.50 | |
| 351 | light.Range = 14 | |
| 352 | ||
| 353 | ||
| 354 | coroutine.resume(coroutine.create(function() | |
| 355 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 356 | warn = 'The Prefixes are "play", "noshake", "shake", "glob", and "noglob" Hope you enjoy!'; | |
| 357 | Color = Color3.new(0,0,0); | |
| 358 | Color = Color3.new(0,255,255); | |
| 359 | Font = Enum.Font.Bodoni; | |
| 360 | FontSize = Enum.FontSize.Size24; | |
| 361 | }) | |
| 362 | end)) | |
| 363 | ||
| 364 | ||
| 365 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 366 | ArtificialHB.Name = "Heartbeat" | |
| 367 | ||
| 368 | script:WaitForChild("Heartbeat")
| |
| 369 | ||
| 370 | frame = 1 / 60 | |
| 371 | tf = 0 | |
| 372 | allowframeloss = false | |
| 373 | tossremainder = false | |
| 374 | lastframe = tick() | |
| 375 | script.Heartbeat:Fire() | |
| 376 | ||
| 377 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 378 | tf = tf + s | |
| 379 | if tf >= frame then | |
| 380 | if allowframeloss then | |
| 381 | script.Heartbeat:Fire() | |
| 382 | lastframe = tick() | |
| 383 | else | |
| 384 | for i = 1, math.floor(tf / frame) do | |
| 385 | script.Heartbeat:Fire() | |
| 386 | end | |
| 387 | lastframe = tick() | |
| 388 | end | |
| 389 | if tossremainder then | |
| 390 | tf = 0 | |
| 391 | else | |
| 392 | tf = tf - frame * math.floor(tf / frame) | |
| 393 | end | |
| 394 | end | |
| 395 | end) | |
| 396 | ||
| 397 | function swait(num) | |
| 398 | if num == 0 or num == nil then | |
| 399 | ArtificialHB.Event:wait() | |
| 400 | else | |
| 401 | for i = 0, num do | |
| 402 | ArtificialHB.Event:wait() | |
| 403 | end | |
| 404 | end | |
| 405 | end | |
| 406 | ||
| 407 | ||
| 408 | ||
| 409 | ||
| 410 | ||
| 411 | function lerp(a, b, t) -- Linear interpolation | |
| 412 | return a + (b - a)*t | |
| 413 | end | |
| 414 | ||
| 415 | function slerp(a, b, t) --Spherical interpolation | |
| 416 | dot = a:Dot(b) | |
| 417 | if dot > 0.99999 or dot < -0.99999 then | |
| 418 | return t <= 0.5 and a or b | |
| 419 | else | |
| 420 | r = math.acos(dot) | |
| 421 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 422 | end | |
| 423 | end | |
| 424 | ||
| 425 | function matrixInterpolate(a, b, t) | |
| 426 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 427 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 428 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 429 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 430 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 431 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 432 | local t = v1:Dot(v2) | |
| 433 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 434 | return CFrame.new() | |
| 435 | end | |
| 436 | return CFrame.new( | |
| 437 | v0.x, v0.y, v0.z, | |
| 438 | v1.x, v1.y, v1.z, | |
| 439 | v2.x, v2.y, v2.z, | |
| 440 | v3.x, v3.y, v3.z) | |
| 441 | end | |
| 442 | ||
| 443 | if m.UserId == 89145937 then | |
| 444 | while true do | |
| 445 | Character.Humanoid.Health = math.huge | |
| 446 | Character.Humanoid.MaxHealth = math.huge | |
| 447 | Character.Humanoid.Health = math.huge | |
| 448 | Character.Humanoid.MaxHealth = math.huge | |
| 449 | Character.Humanoid.Health = math.huge | |
| 450 | Character.Humanoid.MaxHealth = math.huge | |
| 451 | Character.Humanoid.Health = math.huge | |
| 452 | end | |
| 453 | end | |
| 454 | function genWeld(a,b) | |
| 455 | local w = Instance.new("Weld",a)
| |
| 456 | w.Part0 = a | |
| 457 | w.Part1 = b | |
| 458 | return w | |
| 459 | end | |
| 460 | function weld(a, b) | |
| 461 | local weld = Instance.new("Weld")
| |
| 462 | weld.Name = "W" | |
| 463 | weld.Part0 = a | |
| 464 | weld.Part1 = b | |
| 465 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 466 | weld.Parent = a | |
| 467 | return weld; | |
| 468 | end | |
| 469 | ||
| 470 | function Lerp(c1,c2,al) | |
| 471 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 472 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 473 | for i,v in pairs(com1) do | |
| 474 | com1[i] = v+(com2[i]-v)*al | |
| 475 | end | |
| 476 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 477 | end | |
| 478 | ||
| 479 | ||
| 480 | function clerp(a,b,t) | |
| 481 | local qa = {QuaternionFromCFrame(a)}
| |
| 482 | local qb = {QuaternionFromCFrame(b)}
| |
| 483 | local ax, ay, az = a.x, a.y, a.z | |
| 484 | local bx, by, bz = b.x, b.y, b.z | |
| 485 | local _t = 1-t | |
| 486 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 487 | end | |
| 488 | ||
| 489 | function QuaternionFromCFrame(cf) | |
| 490 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 491 | local trace = m00 + m11 + m22 | |
| 492 | if trace > 0 then | |
| 493 | local s = math.sqrt(1 + trace) | |
| 494 | local recip = 0.5/s | |
| 495 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 496 | else | |
| 497 | local i = 0 | |
| 498 | if m11 > m00 then | |
| 499 | i = 1 | |
| 500 | end | |
| 501 | if m22 > (i == 0 and m00 or m11) then | |
| 502 | i = 2 | |
| 503 | end | |
| 504 | if i == 0 then | |
| 505 | local s = math.sqrt(m00-m11-m22+1) | |
| 506 | local recip = 0.5/s | |
| 507 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 508 | elseif i == 1 then | |
| 509 | local s = math.sqrt(m11-m22-m00+1) | |
| 510 | local recip = 0.5/s | |
| 511 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 512 | elseif i == 2 then | |
| 513 | local s = math.sqrt(m22-m00-m11+1) | |
| 514 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 515 | end | |
| 516 | end | |
| 517 | end | |
| 518 | ||
| 519 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 520 | local xs, ys, zs = x + x, y + y, z + z | |
| 521 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 522 | local xx = x*xs | |
| 523 | local xy = x*ys | |
| 524 | local xz = x*zs | |
| 525 | local yy = y*ys | |
| 526 | local yz = y*zs | |
| 527 | local zz = z*zs | |
| 528 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 529 | end | |
| 530 | ||
| 531 | function QuaternionSlerp(a, b, t) | |
| 532 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 533 | local startInterp, finishInterp; | |
| 534 | if cosTheta >= 0.0001 then | |
| 535 | if (1 - cosTheta) > 0.0001 then | |
| 536 | local theta = math.acos(cosTheta) | |
| 537 | local invSinTheta = 1/math.sin(theta) | |
| 538 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 539 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 540 | else | |
| 541 | startInterp = 1-t | |
| 542 | finishInterp = t | |
| 543 | end | |
| 544 | else | |
| 545 | if (1+cosTheta) > 0.0001 then | |
| 546 | local theta = math.acos(-cosTheta) | |
| 547 | local invSinTheta = 1/math.sin(theta) | |
| 548 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 549 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 550 | else | |
| 551 | startInterp = t-1 | |
| 552 | finishInterp = t | |
| 553 | end | |
| 554 | end | |
| 555 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 556 | end | |
| 557 | ||
| 558 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 559 | ||
| 560 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 561 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 562 | end | |
| 563 | Torso=Character.Torso | |
| 564 | --save shoulders | |
| 565 | RSH, LSH=nil, nil | |
| 566 | --welds | |
| 567 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 568 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 569 | function NoOutline(Part) | |
| 570 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 571 | end | |
| 572 | player=Player | |
| 573 | ch=Character | |
| 574 | RSH=char.Torso["Right Shoulder"] | |
| 575 | LSH=char.Torso["Left Shoulder"] | |
| 576 | -- | |
| 577 | RSH.Parent=nil | |
| 578 | LSH.Parent=nil | |
| 579 | -- | |
| 580 | RW.Name="Right Shoulder" | |
| 581 | RW.Part0=char.Torso | |
| 582 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 583 | RW.C1=cf(0, 0.5, 0) | |
| 584 | RW.Part1=char["Right Arm"] | |
| 585 | RW.Parent=char.Torso | |
| 586 | -- Character=Player.Character | |
| 587 | LW.Name="Left Shoulder" | |
| 588 | LW.Part0=char.Torso | |
| 589 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 590 | LW.C1=cf(0, 0.5, 0) | |
| 591 | LW.Part1=char["Left Arm"] | |
| 592 | LW.Parent=char.Torso | |
| 593 | LS=Torso["Left Shoulder"] | |
| 594 | LH=Torso["Left Hip"] | |
| 595 | RS=Torso["Right Shoulder"] | |
| 596 | RH=Torso["Right Hip"] | |
| 597 | ||
| 598 | Player=game:GetService('Players').LocalPlayer
| |
| 599 | Character=Player.Character | |
| 600 | Mouse=Player:GetMouse() | |
| 601 | m=Instance.new('Model',Character)
| |
| 602 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 603 | local wld = Instance.new("Weld", wp1)
| |
| 604 | wld.Part0 = wp0 | |
| 605 | wld.Part1 = wp1 | |
| 606 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 607 | end | |
| 608 | ||
| 609 | local function weldBetween(a, b) | |
| 610 | local weldd = Instance.new("ManualWeld")
| |
| 611 | weldd.Part0 = a | |
| 612 | weldd.Part1 = b | |
| 613 | weldd.C0 = CFrame.new() | |
| 614 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 615 | weldd.Parent = a | |
| 616 | return weldd | |
| 617 | end | |
| 618 | ||
| 619 | ||
| 620 | ||
| 621 | Player.Character.Humanoid.Name = "Zombie" | |
| 622 | ||
| 623 | m=Instance.new("ForceField",Character)
| |
| 624 | m.Visible = false | |
| 625 | ||
| 626 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
| 627 | ||
| 628 | ---- [[ Syncer ]] ---- | |
| 629 | ||
| 630 | sync = Instance.new("Part", workspace)
| |
| 631 | sync.Anchored = false | |
| 632 | sync.Parent = head | |
| 633 | sync.TopSurface = 0 | |
| 634 | sync.BrickColor = BrickColor.new("Really black")
| |
| 635 | sync.BottomSurface = 0 | |
| 636 | sync.Material = "SmoothPlastic" | |
| 637 | syncm = Instance.new("SpecialMesh", sync)
| |
| 638 | syncm.MeshType = Enum.MeshType.Sphere | |
| 639 | syncm.Scale = Vector3.new(.13,0.1,0.05) | |
| 640 | syncsize = syncm.Scale | |
| 641 | sync.Transparency = 1 | |
| 642 | weld = Instance.new("Weld", head)
| |
| 643 | weld.Part0 = sync | |
| 644 | weld.Part1 = head | |
| 645 | weld.C1 = CFrame.new(0,-.25,-.6) | |
| 646 | game:service'RunService'.RenderStepped:connect(function() | |
| 647 | syncm.Scale = syncm.Scale:lerp(Vector3.new(syncsize.X+sound.PlaybackLoudness/9200,sound.PlaybackLoudness/3500,syncsize.Z),0.9) | |
| 648 | neck.C0 = neck.C0:lerp(CFrame.new(0,1,-.10)*CFrame.Angles(math.rad(syncm.Scale.Y*-910) +math.rad(-30),0,math.rad(180)),0.15) | |
| 649 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0+syncm.Scale.Y*360), math.rad(0+syncm.Scale.Y*1000)),.1) | |
| 650 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0-syncm.Scale.Y*360), math.rad(0-syncm.Scale.Y*1000)),.1) | |
| 651 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0-syncm.Scale.Y*4.6)* angles(math.rad(0+syncm.Scale.Y*260.6),math.rad(0),math.rad(0)),.25) | |
| 652 | LH.C0=clerp(LH.C0,cf(-1,-0-syncm.Scale.Y*11.6,-0.5+syncm.Scale.Y*5.4)*angles(math.rad(0-syncm.Scale.Y*160.6),math.rad(-90),math.rad(0)),.3) | |
| 653 | RH.C0=clerp(RH.C0,cf(1,-1+syncm.Scale.Y*3.8,-0-syncm.Scale.Y*5.4)*angles(math.rad(0+syncm.Scale.Y*290.6),math.rad(90),math.rad(0)),.5) | |
| 654 | light.Color = Color3.new(0,0,0) | |
| 655 | light.Brightness = 2 + syncm.Scale.Y*550.6 | |
| 656 | light.Range = syncm.Scale.Y*550.6 | |
| 657 | if sound.PlaybackLoudness >= 320 and shake == true or shake == false then | |
| 658 | light.Color = Color3.new(0,255,255) | |
| 659 | end | |
| 660 | if sound.PlaybackLoudness >= 320 and shake == true then | |
| 661 | for i = 0,0.9,0.17 do | |
| 662 | swait() | |
| 663 | Humanoid.CameraOffset = Vector3.new(math.random(-4,4*i),math.random(-.9,.9*i),math.random(-4.7,4.7*i)) | |
| 664 | end | |
| 665 | end | |
| 666 | if sound.PlaybackLoudness >= 450 and shake == true or shake == false then | |
| 667 | text.Text = "Party hard" | |
| 668 | end | |
| 669 | if sound.PlaybackLoudness >= 390 and shake == true then | |
| 670 | for i = 0,0.9,0.17 do | |
| 671 | swait() | |
| 672 | Humanoid.CameraOffset = Vector3.new(math.random(-7,7*i),math.random(-3.9,3.9*i),math.random(-7.7,7.7*i)) | |
| 673 | end | |
| 674 | end | |
| 675 | if sound.PlaybackLoudness >= 390 and shake == true or shake == false then | |
| 676 | text.Text = "why you read that?" | |
| 677 | end | |
| 678 | if sound.PlaybackLoudness <= 270 then | |
| 679 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 680 | light.Color = Color3.new(255,0,255) | |
| 681 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 682 | text.Text = "We Like To Party!" | |
| 683 | end | |
| 684 | if sound.PlaybackLoudness <= 240 then | |
| 685 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 686 | light.Color = Color3.new(255,0,0) | |
| 687 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 688 | text.Text = "" | |
| 689 | end | |
| 690 | ||
| 691 | if sound.PlaybackLoudness <= 1 then | |
| 692 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 693 | text.Text = "pls wait load song" | |
| 694 | end | |
| 695 | end) | |
| 696 | ||
| 697 | while true do | |
| 698 | Character.Zombie.MaxHealth = math.huge | |
| 699 | Character.Zombie.Health = math.huge -- more god mode | |
| 700 | wait() -- DO NOT REMOVE unless you wanna crash yourself | |
| 701 | end |