SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | -- The Box of Wonder -- | |
| 3 | ||
| 4 | wait() | |
| 5 | script.Parent = nil | |
| 6 | LoudVolume = false | |
| 7 | Submerged = false | |
| 8 | Music = true | |
| 9 | script.Name = "CardboardBox" | |
| 10 | Player = game.Players.LocalPlayer | |
| 11 | c = game.Players.LocalPlayer.Character | |
| 12 | Head = c.Head | |
| 13 | anim = c.Humanoid.Animator | |
| 14 | Humanoid = c:findFirstChild("Humanoid")
| |
| 15 | b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman"
| |
| 16 | rage = false | |
| 17 | p = game.Players.LocalPlayer | |
| 18 | Music = false | |
| 19 | W = nil | |
| 20 | local Effects = {}
| |
| 21 | attack = false | |
| 22 | local attacking = false | |
| 23 | vt = Vector3.new | |
| 24 | bc = BrickColor.new | |
| 25 | br = BrickColor.random | |
| 26 | it = Instance.new | |
| 27 | cf = CFrame.new | |
| 28 | euler = CFrame.fromEulerAnglesXYZ | |
| 29 | angles = CFrame.Angles | |
| 30 | matr = math.random | |
| 31 | mouse = Player:GetMouse() | |
| 32 | ||
| 33 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 34 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 35 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 36 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 37 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 38 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 39 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 40 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 41 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 42 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 43 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 44 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 45 | RS = c.Torso:FindFirstChild("Right Shoulder")
| |
| 46 | LS = c.Torso:FindFirstChild("Left Shoulder")
| |
| 47 | RH = c.Torso:FindFirstChild("Right Hip")
| |
| 48 | LH = c.Torso:FindFirstChild("Left Hip")
| |
| 49 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
| |
| 50 | N = c.Torso:FindFirstChild("Neck")
| |
| 51 | cf = CFrame.new | |
| 52 | ang = CFrame.Angles | |
| 53 | rd = math.rad | |
| 54 | rd2 = math.random | |
| 55 | ||
| 56 | function lerpz(joint, prop, cfrmz, alp) | |
| 57 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
| 58 | end | |
| 59 | function resetlerp() | |
| 60 | RJ.C0 = RJC0 | |
| 61 | RJ.C1 = RJC1 | |
| 62 | N.C0 = NC0 | |
| 63 | N.C1 = NC1 | |
| 64 | RS.C0 = RSC0 | |
| 65 | RS.C1 = RSC1 | |
| 66 | LS.C0 = LSC0 | |
| 67 | LS.C1 = LSC1 | |
| 68 | RH.C0 = RHC0 | |
| 69 | RH.C1 = RHC1 | |
| 70 | LH.C0 = LHC0 | |
| 71 | LH.C1 = LHC1 | |
| 72 | end | |
| 73 | ||
| 74 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://235529455" S.Volume = 3 S.Looped = true
| |
| 75 | function NukeShockwaves(Size, CFramez) | |
| 76 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
| |
| 77 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
| |
| 78 | - | SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0) |
| 78 | + | SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0) |
| 79 | Spawn(function() | |
| 80 | for i = 1,math.huge do | |
| 81 | if Shock.Transparency >= 1 then break end | |
| 82 | Shock.Transparency = Shock.Transparency + 0.05 | |
| 83 | wait() | |
| 84 | end | |
| 85 | end) | |
| 86 | end | |
| 87 | ||
| 88 | function swait(num) | |
| 89 | if num==0 or num==nil then | |
| 90 | game:service'RunService'.Heartbeat:wait(0) | |
| 91 | else | |
| 92 | for i=0,num do | |
| 93 | game:service'RunService'.Heartbeat:wait(0) | |
| 94 | end | |
| 95 | end | |
| 96 | end | |
| 97 | ||
| 98 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0) | |
| 99 | local P = Instance.new("Part",c)P.Size = Vector3.new(3,3,3)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P
| |
| 100 | P.TopSurface = "SmoothNoOutlines" P.BottomSurface = "SmoothNoOutlines" P.FrontSurface = "SmoothNoOutlines" P.BackSurface = "SmoothNoOutlines" | |
| 101 | - | P.LeftSurface = "SmoothNoOutlines" P.RightSurface = "SmoothNoOutlines" P.BrickColor = BrickColor.new("Linen") P.Material = "SmoothPlastic"
|
| 101 | + | P.LeftSurface = "SmoothNoOutlines" P.RightSurface = "SmoothNoOutlines" P.BrickColor = BrickColor.new("Bright yellow") P.Material = "SmoothPlastic"
|
| 102 | local M = Instance.new("BlockMesh",P)
| |
| 103 | - | local tra = Instance.new("ParticleEmitter",P) tra.Color = ColorSequence.new(Color3.new(0/255,170/255,255/255)) tra.Texture = "rbxassetid://73623723"
|
| 103 | + | local tra = Instance.new("ParticleEmitter",P) tra.Color = ColorSequence.new(Color3.new(0/255,170/255,255/255)) tra.Texture = "rbxassetid://1008438637"
|
| 104 | tra.Rate = 2 tra.Rotation = NumberRange.new(-25,25) tra.Lifetime = NumberRange.new(1,2) tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.35,0),NumberSequenceKeypoint.new(1,0.35,0)})
| |
| 105 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.135,0,0),NumberSequenceKeypoint.new(0.875,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 106 | tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.ZOffset = 1 tra.Acceleration = Vector3.new(0,5,0) tra.Enabled = false | |
| 107 | function SelfDestructBox() | |
| 108 | local Sound = Instance.new("Sound",c.HumanoidRootPart) Sound.SoundId = "rbxassetid://256286242" Sound.Volume = 4 Sound:Play()
| |
| 109 | P.Touched:connect(function(Hit) | |
| 110 | if Hit == c or Hit.Parent == c or Hit.Anchored == true then return end | |
| 111 | for i,v in pairs(game.Workspace:children()) do | |
| 112 | if v:findFirstChild("HumanoidRootPart")~= nil and v ~= c then
| |
| 113 | if (v.HumanoidRootPart.Position-c.HumanoidRootPart.Position).magnitude <= 25 then | |
| 114 | v:findFirstChild("Humanoid"):TakeDamage(100)
| |
| 115 | end | |
| 116 | end | |
| 117 | end | |
| 118 | Hit = true c.Parent = nil | |
| 119 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true
| |
| 120 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Bright orange") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock)
| |
| 121 | Shock.CFrame = CFrame.new(P.Position) SM.MeshType = "Sphere" | |
| 122 | P:remove() | |
| 123 | local Pos = Shock.Position | |
| 124 | local Sound = Instance.new("Sound",Shock) Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 4 Sound.Parent = Shock Sound.PlaybackSpeed = 1 Sound:Play()
| |
| 125 | for i = 1,4 do | |
| 126 | SM.Scale = SM.Scale + Vector3.new(i*2,i*2,i*2) | |
| 127 | swait() | |
| 128 | end | |
| 129 | for i = 1,30 do | |
| 130 | SM.Offset = Vector3.new(math.random(-2,2)/10,math.random(-2,2)/10,math.random(-2,2)/10) | |
| 131 | NukeShockwaves(i*3,CFrame.new(Shock.Position)) | |
| 132 | swait() | |
| 133 | end | |
| 134 | for i = 1,30 do | |
| 135 | Shock.Transparency = Shock.Transparency + 1/30 | |
| 136 | SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025) | |
| 137 | swait() | |
| 138 | end | |
| 139 | end) | |
| 140 | end | |
| 141 | ||
| 142 | sine = 0 | |
| 143 | ||
| 144 | Sadness = false | |
| 145 | ||
| 146 | InBox = false local Speed | |
| 147 | function HideInBox() | |
| 148 | if InBox == false then Humanoid.WalkSpeed = 6 S:Play() | |
| 149 | Humanoid.HipHeight = -0.5 anim.Parent = nil InBox = true c.Head.Transparency = 1 | |
| 150 | for i = 1,10 do | |
| 151 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 152 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 153 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 154 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 155 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 156 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 157 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 158 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 159 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 160 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
| 161 | swait() | |
| 162 | end | |
| 163 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 164 | v2.Transparency = 1 end end end end tra.Enabled = true | |
| 165 | while InBox == true do | |
| 166 | if Sadness == true then | |
| 167 | tra.Enabled = false | |
| 168 | else | |
| 169 | tra.Enabled = true | |
| 170 | end | |
| 171 | if attack == false then | |
| 172 | local Beat = 1+(S.PlaybackLoudness)/2500 | |
| 173 | M.Scale = Vector3.new(Beat,Beat,Beat) | |
| 174 | if (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 4 then | |
| 175 | sine = sine + 1 Humanoid.HipHeight = -0.5 | |
| 176 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 177 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 178 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 179 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 180 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 181 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 182 | lerpz(RH, "C0", RHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
| 183 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 184 | lerpz(LH, "C0", LHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
| 185 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 186 | else Humanoid.HipHeight = -1.5 | |
| 187 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 188 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 189 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 190 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 191 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 192 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 193 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 194 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 195 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 196 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 197 | end | |
| 198 | end | |
| 199 | swait() | |
| 200 | end | |
| 201 | else InBox = false anim.Parent = Humanoid Humanoid.HipHeight = 0 Humanoid.WalkSpeed = 16 c.Head.Transparency = 0 S:Stop() | |
| 202 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 203 | v2.Transparency = 0 end end end end tra.Enabled = false | |
| 204 | M.Scale = Vector3.new(1,1,1) | |
| 205 | for i = 1,10 do | |
| 206 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 207 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 208 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 209 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 210 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 211 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 212 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 213 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 214 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 215 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 216 | swait() | |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | ||
| 221 | WeegeeAttax = false | |
| 222 | function WeegeeAttack() | |
| 223 | WeegeeAttax = true | |
| 224 | while WeegeeAttax == true do | |
| 225 | swait() | |
| 226 | for i,v in pairs (game.Workspace:children()) do | |
| 227 | if v.Name == "Weegee" then | |
| 228 | if v:findFirstChild("BodyVelocity")==nil then
| |
| 229 | local BV = Instance.new("BodyVelocity",v)BV.Velocity = v.CFrame.lookVector*-75
| |
| 230 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 231 | else | |
| 232 | v:findFirstChild("BodyVelocity").Velocity = v.CFrame.lookVector*-75
| |
| 233 | end | |
| 234 | v.CFrame = CFrame.new(v.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
| 235 | v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(180),0) | |
| 236 | end | |
| 237 | end | |
| 238 | end | |
| 239 | for i,v in pairs (game.Workspace:children()) do | |
| 240 | if v.Name == "Weegee" then | |
| 241 | if v:findFirstChild("BodyVelocity")~=nil then
| |
| 242 | v:findFirstChild("BodyVelocity"):remove()
| |
| 243 | end | |
| 244 | end | |
| 245 | end | |
| 246 | end | |
| 247 | ||
| 248 | function Retreat() | |
| 249 | if Inflated == false then | |
| 250 | anim.Parent = nil | |
| 251 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play()
| |
| 252 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 253 | v2.Transparency = 1 end end end end | |
| 254 | for i = 1,4 do | |
| 255 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 256 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 257 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 258 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 259 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 260 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 261 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 262 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 263 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 264 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 265 | swait() | |
| 266 | end | |
| 267 | for i = 1,100 do | |
| 268 | Humanoid.HipHeight = -1.5 c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
| 269 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
| 270 | swait() | |
| 271 | end | |
| 272 | W.C0 = CFrame.Angles(0,0,0) | |
| 273 | if InBox == false then | |
| 274 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 275 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
| 276 | for i = 1,10 do | |
| 277 | swait() | |
| 278 | end | |
| 279 | end | |
| 280 | else | |
| 281 | anim.Parent = nil | |
| 282 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play()
| |
| 283 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 284 | v2.Transparency = 1 end end end end | |
| 285 | if InBox == false then | |
| 286 | for i = 1,4 do | |
| 287 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 288 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 289 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 290 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 291 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 292 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 293 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 294 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 295 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 296 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
| 297 | swait() | |
| 298 | end | |
| 299 | end | |
| 300 | for i = 1,100 do | |
| 301 | c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
| 302 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
| 303 | swait() | |
| 304 | end | |
| 305 | if InBox == false then | |
| 306 | resetlerp() | |
| 307 | end | |
| 308 | W.C0 = CFrame.Angles(0,0,0) | |
| 309 | if InBox == false then | |
| 310 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 311 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
| 312 | for i = 1,10 do | |
| 313 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 314 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 315 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 316 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 317 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 318 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 319 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 320 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 321 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 322 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 323 | swait() | |
| 324 | end | |
| 325 | end | |
| 326 | end | |
| 327 | end | |
| 328 | Inflated = false | |
| 329 | function Inflate() | |
| 330 | if Inflated == false then | |
| 331 | local Charge = 0 S.Volume = 10 | |
| 332 | for i = 1,75 do Charge = Charge + 0.1 c.HumanoidRootPart.Anchored = true Inflated = true Humanoid.HipHeight = Humanoid.HipHeight + 0.05 | |
| 333 | P.Size = P.Size+Vector3.new(Charge*0.1,Charge*0.1,Charge*0.1)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P
| |
| 334 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,1,0) | |
| 335 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 336 | lerpz(N, "C0", NC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 337 | lerpz(RS, "C0", RSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 338 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 339 | lerpz(LS, "C0", LSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 340 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 341 | lerpz(RH, "C0", RHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 342 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 343 | lerpz(LH, "C0", LHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 344 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 345 | swait() | |
| 346 | end | |
| 347 | local hit = false | |
| 348 | P.Touched:connect(function(Hit) | |
| 349 | if hit == true then return end | |
| 350 | if Hit.Anchored == true and Hit.Name ~= "NoMoonPls" then | |
| 351 | hit = true P.Anchored = true | |
| 352 | for i = 1,8 do | |
| 353 | local S2 = Instance.new("Sound",P)S2.SoundId = "rbxassetid://211062246" S2.Volume = 10 S2:Play()
| |
| 354 | local S3 = Instance.new("Sound",P)S3.SoundId = "rbxassetid://133159174" S3.Volume = 10 S3:Play() game.Debris:AddItem(S3,4)
| |
| 355 | end | |
| 356 | end | |
| 357 | end) | |
| 358 | else | |
| 359 | local Charge = 0 | |
| 360 | for i = 1,25 do Charge = Charge + 0.3 c.HumanoidRootPart.Anchored = true Inflated = false Humanoid.HipHeight = Humanoid.HipHeight - 0.15 | |
| 361 | P.Size = P.Size-Vector3.new(Charge*0.1,Charge*0.1,Charge*0.1)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P
| |
| 362 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-1,0) | |
| 363 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 364 | lerpz(N, "C0", NC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 365 | lerpz(RS, "C0", RSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 366 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 367 | lerpz(LS, "C0", LSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 368 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 369 | lerpz(RH, "C0", RHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 370 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 371 | lerpz(LH, "C0", LHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 372 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 373 | swait() | |
| 374 | end | |
| 375 | resetlerp() P.Size = Vector3.new(3,3,3) W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P S.Volume = 1
| |
| 376 | end | |
| 377 | end | |
| 378 | ||
| 379 | function Sadnessz() | |
| 380 | if Sadness == false then | |
| 381 | Song = "Sadness" Sadness = true | |
| 382 | S.SoundId = "rbxassetid://225195031" | |
| 383 | local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(6,1,6)Cl.CanCollide = true Cl.Anchored = true Cl.BrickColor = BrickColor.new("Dark stone grey")
| |
| 384 | local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://1095708" M.Scale = Vector3.new(7,4,7) local Ch = 0
| |
| 385 | while Sadness == true do | |
| 386 | local Rain = Instance.new("Part",c)Rain.Size = Vector3.new(0.2,2,0.2)Rain.CanCollide = false Rain.BrickColor = BrickColor.new("Light blue")
| |
| 387 | local RM = Instance.new("BlockMesh",Rain)RM.Scale = Vector3.new(0.05,1,0.05) Rain.Material = "Neon" game.Debris:AddItem(Rain,2)
| |
| 388 | local BV = Instance.new("BodyVelocity",Rain)BV.Velocity = Vector3.new(0,-100,0)
| |
| 389 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 390 | Cl.CFrame = CFrame.new(c.HumanoidRootPart.Position+Vector3.new(0,6,0)) | |
| 391 | Rain.CFrame = Cl.CFrame*CFrame.new(math.random(-50,50)/10,0,math.random(-25,25)/10) | |
| 392 | swait() | |
| 393 | end | |
| 394 | Cl:remove() | |
| 395 | else | |
| 396 | Sadness = false | |
| 397 | end | |
| 398 | end | |
| 399 | ||
| 400 | Song = "TomodachiMarket" | |
| 401 | function Playlist() | |
| 402 | S.TimePosition = 0 | |
| 403 | if Song == "TomodachiMarket" then | |
| 404 | Song = "SmexyJazz" | |
| 405 | S.SoundId = "rbxassetid://178790549" | |
| 406 | elseif Song == "SmexyJazz" then | |
| 407 | Song = "Elevator" | |
| 408 | S.SoundId = "rbxassetid://130768299" | |
| 409 | elseif Song == "Elevator" then | |
| 410 | Song = "Henesys" | |
| 411 | S.SoundId = "rbxassetid://160461278" | |
| 412 | elseif Song == "Henesys" then | |
| 413 | Song = "WhiteChristmas" | |
| 414 | S.SoundId = "rbxassetid://529406609" | |
| 415 | elseif Song == "WhiteChristmas" then | |
| 416 | Song = "Guitar" | |
| 417 | S.SoundId = "rbxassetid://339600793" | |
| 418 | elseif Song == "Guitar" then | |
| 419 | Song = "SuperSanic" | |
| 420 | S.SoundId = "rbxassetid://149103854" | |
| 421 | elseif Song == "SuperSanic" then | |
| 422 | Song = "WiiChannel" | |
| 423 | S.SoundId = "rbxassetid://252169264" | |
| 424 | elseif Song == "WiiChannel" then | |
| 425 | Song = "8-Bitbowser" | |
| 426 | S.SoundId = "rbxassetid://410075847" | |
| 427 | elseif Song == "8-Bitbowser" then | |
| 428 | Song = "Dragonforce" | |
| 429 | S.SoundId = "rbxassetid://608289510" | |
| 430 | elseif Song == "Dragonforce" then | |
| 431 | Song = "Gerudo Valley" | |
| 432 | S.SoundId = "rbxassetid://155743407" | |
| 433 | elseif Song == "Gerudo Valley" then | |
| 434 | Song = "EggsForBart" | |
| 435 | S.SoundId = "rbxassetid://872826213" | |
| 436 | elseif Song == "EggsForBart" or Song == "Sadness" then | |
| 437 | Song = "TomodachiMarket" | |
| 438 | S.SoundId = "rbxassetid://235529455" | |
| 439 | end | |
| 440 | end | |
| 441 | Headlightz = false | |
| 442 | function Headlights() | |
| 443 | attack = true | |
| 444 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 445 | v2.Transparency = 0 end end end end tra.Enabled = true | |
| 446 | c.Head.Transparency = 0 | |
| 447 | ||
| 448 | for i = 1,8 do | |
| 449 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 450 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 451 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
| 452 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 453 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
| 454 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 455 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 456 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 457 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 458 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 459 | swait() | |
| 460 | end | |
| 461 | for i = 1,6 do | |
| 462 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 0.35) * ang(rd(30), rd(0), rd(0)), 0.5) | |
| 463 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
| 464 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(35)), 0.5) | |
| 465 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 466 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(-35)), 0.5) | |
| 467 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 468 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 469 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 470 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 471 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 472 | swait() | |
| 473 | end | |
| 474 | if Headlightz == false then | |
| 475 | Headlightz = true | |
| 476 | - | local He1 = Instance.new("Part",c)He1.Size = Vector3.new(1,0.4,1)He1.BrickColor = BrickColor.new("Bright green")He1.Material = "Neon"
|
| 476 | + | local He1 = Instance.new("Part",c)He1.Size = Vector3.new(1,0.4,1)He1.BrickColor = BrickColor.new("Really black")He1.Material = "SmoothPlastic"
|
| 477 | - | local He2 = Instance.new("Part",c)He2.Size = Vector3.new(1,0.4,1)He2.BrickColor = BrickColor.new("Bright green")He2.Material = "Neon"
|
| 477 | + | local He2 = Instance.new("Part",c)He2.Size = Vector3.new(1,0.4,1)He2.BrickColor = BrickColor.new("Really black")He2.Material = "SmoothPlastic"
|
| 478 | local W1 = Instance.new("Weld",P)W1.Part0 = P W1.Part1 = He1 W1.C0 = CFrame.new(0.7,0,-1.5)He1.Name = "Headlight1"
| |
| 479 | local C1 = Instance.new("CylinderMesh",He1)W1.C0 = W1.C0 * CFrame.Angles(math.rad(90),0,0)He2.Name = "Headlight2"
| |
| 480 | local W2 = Instance.new("Weld",P)W2.Part0 = P W2.Part1 = He2 W2.C0 = CFrame.new(-0.7,0,-1.5)
| |
| 481 | local C2 = Instance.new("CylinderMesh",He2)W2.C0 = W2.C0 * CFrame.Angles(math.rad(90),0,0)
| |
| 482 | elseif Headlightz == true then | |
| 483 | Headlightz = false c:findFirstChild("Headlight1"):remove() c:findFirstChild("Headlight2"):remove()
| |
| 484 | end | |
| 485 | for i = 1,3 do | |
| 486 | lerpz(RJ, "C0", RJC0 * cf(0, -1, 2) * ang(rd(30), rd(0), rd(0)), 0.5) | |
| 487 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
| 488 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(35)), 0.5) | |
| 489 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 490 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-35)), 0.5) | |
| 491 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 492 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 493 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 494 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 495 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 496 | swait() | |
| 497 | end | |
| 498 | for i = 1,3 do | |
| 499 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 500 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 501 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
| 502 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 503 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
| 504 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 505 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 506 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 507 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 508 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 509 | swait() | |
| 510 | end | |
| 511 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 512 | v2.Transparency = 1 end end end end tra.Enabled = true | |
| 513 | c.Head.Transparency = 1 | |
| 514 | attack = false | |
| 515 | end | |
| 516 | ||
| 517 | local PEAR = Instance.new("Model",nil)
| |
| 518 | function PullInBox() | |
| 519 | attack = true | |
| 520 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 521 | v2.Transparency = 0 end end end end tra.Enabled = true | |
| 522 | c.Head.Transparency = 0 | |
| 523 | for i = 1,4 do | |
| 524 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 525 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
| 526 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
| 527 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 528 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 529 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 530 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 531 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 532 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 533 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 534 | swait() | |
| 535 | end | |
| 536 | local Hit = false | |
| 537 | local FE = c["Right Arm"].Touched:connect(function(Part) | |
| 538 | if Part ~= c and Part.Size.X <= 50 and Part.Size.Z <= 50 and Part.Size.Y <= 50 then | |
| 539 | Part.Parent = PEAR | |
| 540 | end | |
| 541 | end) | |
| 542 | for i = 1,2 do | |
| 543 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 2) * ang(rd(30), rd(15), rd(30)), 0.5) | |
| 544 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
| 545 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(120)), 0.5) | |
| 546 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 547 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 548 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 549 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 550 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 551 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 552 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 553 | swait() | |
| 554 | end | |
| 555 | for i = 1,2 do | |
| 556 | lerpz(RJ, "C0", RJC0 * cf(0, -1.75, 1) * ang(rd(60), rd(15), rd(30)), 0.5) | |
| 557 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
| 558 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
| 559 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 560 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 561 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 562 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 563 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 564 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 565 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 566 | swait() | |
| 567 | end | |
| 568 | for i = 1,4 do | |
| 569 | lerpz(RJ, "C0", RJC0 * cf(0, -2.25, 0.5) * ang(rd(90), rd(15), rd(30)), 0.5) | |
| 570 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-60), rd(15), rd(-30)), 0.5) | |
| 571 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
| 572 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 573 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 574 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 575 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 576 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 577 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 578 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 579 | swait() | |
| 580 | end | |
| 581 | for i = 1,4 do | |
| 582 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
| 583 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
| 584 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
| 585 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 586 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 587 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 588 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 589 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 590 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 591 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 592 | swait() | |
| 593 | end | |
| 594 | FE:disconnect() | |
| 595 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
| 596 | v2.Transparency = 1 end end end end tra.Enabled = true | |
| 597 | c.Head.Transparency = 1 | |
| 598 | attack = false | |
| 599 | end | |
| 600 | ||
| 601 | function ThrowStuff() | |
| 602 | P.Anchored = true | |
| 603 | for i,v in pairs (PEAR:children()) do v.Parent = game.Workspace v.Anchored = false v.CanCollide = true | |
| 604 | local PS = Instance.new("Sound",v)PS.SoundId = "rbxassetid://521410270" PS.Volume = 1 PS.PlaybackSpeed = math.random(10,14)/10 PS:Play()
| |
| 605 | v.Name = "Weegee" v.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
| 606 | local BV = Instance.new("BodyVelocity",v)BV.Velocity = Vector3.new(math.random(-10,10),math.random(45,100),math.random(-10,10))game.Debris:AddItem(BV,0.1)
| |
| 607 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 608 | swait() | |
| 609 | end | |
| 610 | P.Anchored = false | |
| 611 | end | |
| 612 | ||
| 613 | function Weegee() | |
| 614 | local PS = Instance.new("Sound",P)PS.SoundId = "rbxassetid://244303550" PS.Volume = 0.25 PS.PlaybackSpeed = math.random(8,18)/10 PS:Play()
| |
| 615 | - | local We = Instance.new("Part",game.Workspace)We.Size = Vector3.new(1,2,1)local WeM = Instance.new("SpecialMesh",We) We.Name = "Weegee"
|
| 615 | + | local We = Instance.new("Part",game.Workspace)We.Size = Vector3.new(5,3,4)local WeM = Instance.new("SpecialMesh",We) We.Name = "Weegee"
|
| 616 | - | WeM.MeshId = "rbxassetid://430819577" WeM.Scale = Vector3.new(0.001, 0.001, 0.001) WeM.TextureId = "rbxassetid://430819580" |
| 616 | + | WeM.MeshId = "rbxassetid://539723450" WeM.Scale = Vector3.new(3, 3, 3) WeM.TextureId = "rbxassetid://710863492" |
| 617 | We.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
| 618 | local BV = Instance.new("BodyVelocity",We)BV.Velocity = Vector3.new(math.random(-10,10),math.random(45,100),math.random(-10,10))game.Debris:AddItem(BV,0.1)
| |
| 619 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 620 | end | |
| 621 | mouse.KeyDown:connect(function(key) | |
| 622 | if attack == true then return end | |
| 623 | if InBox == true and Inflated == false and Sadness == false then | |
| 624 | if key == "x" then | |
| 625 | Headlights() | |
| 626 | end | |
| 627 | if key == "q" then | |
| 628 | PullInBox() | |
| 629 | end | |
| 630 | if key == "e" then | |
| 631 | ThrowStuff() | |
| 632 | end | |
| 633 | if key == "b" then | |
| 634 | Weegee() | |
| 635 | end | |
| 636 | elseif InBox == true and Sadness == true then | |
| 637 | if key == "b" then | |
| 638 | MoneyPls() | |
| 639 | end | |
| 640 | elseif InBox == false then | |
| 641 | if key == "x" then | |
| 642 | Inflate() | |
| 643 | end | |
| 644 | end | |
| 645 | if key == "c" then | |
| 646 | Sadnessz() | |
| 647 | end | |
| 648 | if key == "z" then | |
| 649 | HideInBox() | |
| 650 | end | |
| 651 | if key == "v" then | |
| 652 | WeegeeAttack() | |
| 653 | end | |
| 654 | if key == "f" then | |
| 655 | Retreat() | |
| 656 | end | |
| 657 | if key == "n" then | |
| 658 | Playlist() | |
| 659 | end | |
| 660 | if key == "m" then | |
| 661 | SelfDestructBox() | |
| 662 | end | |
| 663 | end) | |
| 664 | ||
| 665 | mouse.KeyUp:connect(function(key) | |
| 666 | if key == "v" then | |
| 667 | WeegeeAttax = false | |
| 668 | end | |
| 669 | end) | |
| 670 | ||
| 671 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 672 | Humanoid.MaxHealth = Humanoid.MaxHealth*2 | |
| 673 | Humanoid.Health = Humanoid.MaxHealth*2 | |
| 674 | if attack == false then | |
| 675 | for i,v in pairs (c:children()) do | |
| 676 | if v.ClassName == "Accessory" then | |
| 677 | for i,v2 in pairs (v:children()) do | |
| 678 | if v2.ClassName == "Part" then | |
| 679 | v2.Anchored = false | |
| 680 | end | |
| 681 | end | |
| 682 | end | |
| 683 | end | |
| 684 | for i,v in pairs (c:children()) do | |
| 685 | if v.ClassName == "Part" then | |
| 686 | v.Anchored = false | |
| 687 | end | |
| 688 | end | |
| 689 | end | |
| 690 | end) |