SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Had to use Inferno as a base though, bit lazy to start from complete scratch -- | |
| 2 | -- [ Rick & Morty!] -- | |
| 3 | wait() | |
| 4 | LoudVolume = false | |
| 5 | Submerged = false | |
| 6 | Music = true | |
| 7 | script.Name = "Rick" -- or Morty. | |
| 8 | Player = game.Players.LocalPlayer | |
| 9 | c = game.Players.LocalPlayer.Character | |
| 10 | Head = c.Head | |
| 11 | anim = c.Humanoid.Animator | |
| 12 | - | Humanoid = c:findFirstChild("Humanoid")Humanoid.Name = "InfiniteBeing"
|
| 12 | + | Humanoid = c:findFirstChild("Humanoid")Humanoid.Name = "ddanneee"
|
| 13 | b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman"
| |
| 14 | rage = false | |
| 15 | p = game.Players.LocalPlayer | |
| 16 | s = Instance.new("Sound",c.Head)
| |
| 17 | s.Name = "Rick&MortyMusic" | |
| 18 | s.SoundId = "rbxassetid://888185977" | |
| 19 | s.Pitch = 1 | |
| 20 | if LoudVolume == true then s.Volume = 6 else s.Volume = 1 end | |
| 21 | s.Looped = true | |
| 22 | wait(0.1) | |
| 23 | s:play() | |
| 24 | Music = false | |
| 25 | ||
| 26 | local Effects = {}
| |
| 27 | attack = false | |
| 28 | local attacking = false | |
| 29 | vt = Vector3.new | |
| 30 | bc = BrickColor.new | |
| 31 | br = BrickColor.random | |
| 32 | it = Instance.new | |
| 33 | cf = CFrame.new | |
| 34 | euler = CFrame.fromEulerAnglesXYZ | |
| 35 | angles = CFrame.Angles | |
| 36 | matr = math.random | |
| 37 | mouse = Player:GetMouse() | |
| 38 | ||
| 39 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 40 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 41 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 42 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 43 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 44 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 45 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 46 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 47 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 48 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 49 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 50 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 51 | RS = c.Torso:FindFirstChild("Right Shoulder")
| |
| 52 | LS = c.Torso:FindFirstChild("Left Shoulder")
| |
| 53 | RH = c.Torso:FindFirstChild("Right Hip")
| |
| 54 | LH = c.Torso:FindFirstChild("Left Hip")
| |
| 55 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
| |
| 56 | N = c.Torso:FindFirstChild("Neck")
| |
| 57 | cf = CFrame.new | |
| 58 | ang = CFrame.Angles | |
| 59 | rd = math.rad | |
| 60 | rd2 = math.random | |
| 61 | ||
| 62 | ||
| 63 | function swait(num) | |
| 64 | if num==0 or num==nil then | |
| 65 | game:service'RunService'.Heartbeat:wait(0) | |
| 66 | else | |
| 67 | for i=0,num do | |
| 68 | game:service'RunService'.Heartbeat:wait(0) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | ||
| 73 | function lerpz(joint, prop, cfrmz, alp) | |
| 74 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
| 75 | end | |
| 76 | function resetlerp() | |
| 77 | RJ.C0 = RJC0 | |
| 78 | RJ.C1 = RJC1 | |
| 79 | N.C0 = NC0 | |
| 80 | N.C1 = NC1 | |
| 81 | RS.C0 = RSC0 | |
| 82 | RS.C1 = RSC1 | |
| 83 | LS.C0 = LSC0 | |
| 84 | LS.C1 = LSC1 | |
| 85 | RH.C0 = RHC0 | |
| 86 | RH.C1 = RHC1 | |
| 87 | LH.C0 = LHC0 | |
| 88 | LH.C1 = LHC1 | |
| 89 | end | |
| 90 | ||
| 91 | New = function(Object, Parent, Name, Data) | |
| 92 | local Object = Instance.new(Object) | |
| 93 | for Index, Value in pairs(Data or {}) do
| |
| 94 | Object[Index] = Value | |
| 95 | end | |
| 96 | Object.Parent = Parent | |
| 97 | Object.Name = Name | |
| 98 | return Object | |
| 99 | end | |
| 100 | -- Les Build a Portal gun shall we?" | |
| 101 | function CreatePortalGun() | |
| 102 | if c:findFirstChild("PortalGun") == nil then
| |
| 103 | local m = Instance.new("Model",c)m.Name = "PortalGun"
| |
| 104 | local P = Instance.new("Part",m)P.Size = Vector3.new(0.6,1,0.4)P.CanCollide = false P.Material = "SmoothPlastic" P.Name = "Base"
| |
| 105 | local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c["Right Arm"] W.C0 = CFrame.new(0,1.6,0.6)W.Name = "GunWeld"
| |
| 106 | local P2 = Instance.new("Part",m)P2.Size = Vector3.new(0.2,0.8,0.2)P2.Material = "SmoothPlastic" P2.Name = "Handle" P2.CanCollide = false
| |
| 107 | local W2 = Instance.new("Weld",P2)W2.Part0 = P2 W2.Part1 = P W2.C0 = CFrame.new(0,-0.5,0.15)*CFrame.Angles(math.rad(-30),0,0)
| |
| 108 | local P3 = Instance.new("Part",m)P3.Size = Vector3.new(0.55,0.4,0.2)P3.CanCollide = false P3.Material = "Neon" P3.Name = "FrontLight"
| |
| 109 | local W3 = Instance.new("Weld",P3)W3.Part0 = P3 W3.Part1 = P W3.C0 = CFrame.new(0,0.31,0)P3.BrickColor = BrickColor.new("Bright green")
| |
| 110 | local P4 = Instance.new("Part",m)P4.Size = Vector3.new(0.2,0.2,0.4)P4.CanCollide = false P4.Material = "Neon" P4.Name = "TopLight" P4.Transparency = 0.5
| |
| 111 | local W4 = Instance.new("Weld",P4)W4.Part0 = P4 W4.Part1 = P W4.C0 = CFrame.new(0,0,0.35)P4.BrickColor = BrickColor.new("Bright green")
| |
| 112 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.25,0.25,0.45)P5.CanCollide = false P5.Material = "Neon" P5.Name = "TopLight" P5.Transparency = 0.5
| |
| 113 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 P5.BrickColor = BrickColor.new("Bright green")
| |
| 114 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.3,0.2)P5.CanCollide = false P5.Material = "SmoothPlastic" P5.Name = "LowerLight"
| |
| 115 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,0,-0.15)
| |
| 116 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.2,0.2)P5.CanCollide = false P5.Material = "SmoothPlastic" P5.Name = "Button"
| |
| 117 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,-0.3,-0.2) P5.BrickColor = BrickColor.new("Bright red")
| |
| 118 | local B = Instance.new("BlockMesh",P5)B.Scale = Vector3.new(1,0.75,0.75)
| |
| 119 | for i,v in pairs (m:children()) do | |
| 120 | if v.ClassName == "Part" then | |
| 121 | v.TopSurface = "SmoothNoOutlines" | |
| 122 | v.BottomSurface = "SmoothNoOutlines" | |
| 123 | v.BackSurface = "SmoothNoOutlines" | |
| 124 | v.Front = "SmoothNoOutlines" | |
| 125 | v.LeftSurface = "SmoothNoOutlines" | |
| 126 | v.RightSurface = "SmoothNoOutlines" | |
| 127 | end | |
| 128 | end | |
| 129 | end | |
| 130 | end | |
| 131 | function ThrowGun() | |
| 132 | if c:findFirstChild("PortalGun")~=nil then
| |
| 133 | anim.Parent = nil | |
| 134 | local gun = c:findFirstChild("PortalGun") gun.Parent = game.Workspace
| |
| 135 | for i = 1,14 do | |
| 136 | swait() | |
| 137 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 138 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 139 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(65), rd(90)), 0.25) | |
| 140 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 141 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 142 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 143 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 144 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 145 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 146 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 147 | end | |
| 148 | gun.Base.GunWeld:remove() | |
| 149 | local BV = Instance.new("BodyVelocity",gun.Base)BV.Velocity = c.HumanoidRootPart.CFrame.lookVector*50 game.Debris:AddItem(BV,0.1)
| |
| 150 | for i = 1,14 do | |
| 151 | swait() | |
| 152 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 153 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 154 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 155 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 156 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 157 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 158 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 159 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 160 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 161 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 162 | end | |
| 163 | for i = 1,14 do | |
| 164 | swait() | |
| 165 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 166 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 167 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 168 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 169 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 170 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 171 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 172 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 173 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 174 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 175 | end | |
| 176 | resetlerp() | |
| 177 | anim.Parent = Humanoid | |
| 178 | end | |
| 179 | end | |
| 180 | -- ;-; -- | |
| 181 | function PortalRipple(Portalz, Colorz) | |
| 182 | if Portalz == nil then return end | |
| 183 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = Colorz Portal.Name = "PortalEnergy"
| |
| 184 | Portal.CFrame = Portalz.CFrame Portal.Size = Vector3.new(0.25,0.45,0.55) Portal.Material = "Neon" local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere"
| |
| 185 | Spawn(function() | |
| 186 | Portal.Transparency = 0.5 | |
| 187 | for i = 1,20 do | |
| 188 | Portal.Transparency = Portal.Transparency + 0.025 | |
| 189 | Portal.Size = Portal.Size + Vector3.new(0.39,0.54,-0.01) | |
| 190 | Portal.CFrame = Portalz.CFrame | |
| 191 | swait() | |
| 192 | end | |
| 193 | Portal:remove() | |
| 194 | end) | |
| 195 | end | |
| 196 | function CreatePortal1() | |
| 197 | Spawn(function() | |
| 198 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
| |
| 199 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 200 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://181004957" S:Play()
| |
| 201 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 202 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 203 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
| |
| 204 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon" | |
| 205 | local PosP = Portal.CFrame | |
| 206 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 207 | for i = 1,10 do | |
| 208 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 209 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 210 | Portal.CFrame = PosP | |
| 211 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 212 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 213 | Portal2.CFrame = PosP | |
| 214 | swait() | |
| 215 | end | |
| 216 | Portal.Touched:connect(function(PartH) | |
| 217 | if PartH.Parent ~= c and PartH.Parent.Parent ~= c and PartH.Size.Z <= 200 and PartH.Name ~= "PortalEnergy" then | |
| 218 | PartH:remove() | |
| 219 | end | |
| 220 | end) | |
| 221 | local R = 1 | |
| 222 | for i = 1,100 do | |
| 223 | wait(0.1) | |
| 224 | if R == 1 then R = 2 | |
| 225 | PortalRipple(Portal2,BrickColor.new("Earth green"))
| |
| 226 | elseif R == 2 then R = 1 | |
| 227 | PortalRipple(Portal2,BrickColor.new("Lime green"))
| |
| 228 | elseif R == 3 then R = 4 | |
| 229 | PortalRipple(Portal2,BrickColor.new("Earth green"))
| |
| 230 | elseif R == 4 then R = 1 | |
| 231 | PortalRipple(Portal2,BrickColor.new("Lime green"))
| |
| 232 | end | |
| 233 | end | |
| 234 | for i = 1,10 do | |
| 235 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 236 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 237 | Portal.CFrame = PosP | |
| 238 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 239 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 240 | Portal2.CFrame = PosP | |
| 241 | swait() | |
| 242 | end | |
| 243 | end) | |
| 244 | end | |
| 245 | ||
| 246 | function CreatePortal2() | |
| 247 | Spawn(function() | |
| 248 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
| |
| 249 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 250 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 251 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://477163697" S:Play()
| |
| 252 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 253 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
| |
| 254 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon" | |
| 255 | local PosP = Portal.CFrame | |
| 256 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 257 | for i = 1,10 do | |
| 258 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 259 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 260 | Portal.CFrame = PosP | |
| 261 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 262 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 263 | Portal2.CFrame = PosP | |
| 264 | swait() | |
| 265 | end | |
| 266 | for i = 1,10 do | |
| 267 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 268 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 269 | Portal.CFrame = PosP | |
| 270 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 271 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 272 | Portal2.CFrame = PosP | |
| 273 | swait() | |
| 274 | end | |
| 275 | end) | |
| 276 | end | |
| 277 | ||
| 278 | function CreatePortal3() | |
| 279 | Spawn(function() | |
| 280 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
| |
| 281 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 282 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 283 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
| |
| 284 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon" | |
| 285 | local PosP = Portal.CFrame | |
| 286 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 287 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://181004957" S:Play()
| |
| 288 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 289 | for i = 1,10 do | |
| 290 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 291 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 292 | Portal.CFrame = PosP | |
| 293 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 294 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 295 | Portal2.CFrame = PosP | |
| 296 | swait() | |
| 297 | end | |
| 298 | for i = 1,10 do | |
| 299 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 300 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 301 | Portal.CFrame = PosP | |
| 302 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 303 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 304 | Portal2.CFrame = PosP | |
| 305 | swait() | |
| 306 | end | |
| 307 | end) | |
| 308 | end | |
| 309 | ||
| 310 | function DestructionPortal() | |
| 311 | attack = true | |
| 312 | anim.Parent = nil | |
| 313 | for i = 1,14 do | |
| 314 | swait() | |
| 315 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 316 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 317 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 318 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 319 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 320 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 321 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 322 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 323 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 324 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 325 | end | |
| 326 | for i = 1,6 do | |
| 327 | swait() | |
| 328 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.35) | |
| 329 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.35) | |
| 330 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(125)), 0.35) | |
| 331 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 332 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 333 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 334 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 335 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 336 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 337 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 338 | end | |
| 339 | CreatePortal1() | |
| 340 | for i = 1,10 do | |
| 341 | swait() | |
| 342 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 343 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 344 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 345 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 346 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 347 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 348 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 349 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 350 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 351 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 352 | end | |
| 353 | for i = 1,10 do | |
| 354 | swait() | |
| 355 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 356 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 357 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 358 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 359 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 360 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 361 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 362 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 363 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 364 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 365 | end | |
| 366 | resetlerp() | |
| 367 | attack = false | |
| 368 | anim.Parent = Humanoid | |
| 369 | end | |
| 370 | Disappeared = false | |
| 371 | function DisappearPortal() | |
| 372 | if Disappeared == false then | |
| 373 | attack = true Humanoid.WalkSpeed = 150 Humanoid.JumpPower = 250 | |
| 374 | Disappeared = true | |
| 375 | anim.Parent = nil | |
| 376 | for i = 1,14 do | |
| 377 | swait() | |
| 378 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 379 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25) | |
| 380 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25) | |
| 381 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 382 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 383 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 384 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 385 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 386 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 387 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 388 | end | |
| 389 | for i = 1,8 do | |
| 390 | swait() | |
| 391 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 392 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.5) | |
| 393 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(15), rd(0), rd(15)), 0.5) | |
| 394 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 395 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 396 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 397 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 398 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 399 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 400 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 401 | end | |
| 402 | CreatePortal2() | |
| 403 | for i = 1,14 do | |
| 404 | swait() | |
| 405 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 406 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25) | |
| 407 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25) | |
| 408 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 409 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 410 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 411 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 412 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 413 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 414 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 415 | end | |
| 416 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 1000000) * ang(rd(0), rd(0), rd(0)), 1) | |
| 417 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 1) | |
| 418 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 1) | |
| 419 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 420 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 421 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 422 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 423 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 424 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 425 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 426 | attack = false | |
| 427 | anim.Parent = Humanoid | |
| 428 | else Disappeared = false | |
| 429 | resetlerp() Humanoid.WalkSpeed = 16 Humanoid.JumpPower = 50 | |
| 430 | CreatePortal3() wait() | |
| 431 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0) | |
| 432 | end | |
| 433 | end | |
| 434 | ||
| 435 | function EpicLaugh() | |
| 436 | for i = 1,5 do | |
| 437 | local S = Instance.new("Sound",c.Head)S.SoundId = "rbxassetid://207358216" S.Volume = 10 S:Play()
| |
| 438 | end | |
| 439 | for i = 1,35 do | |
| 440 | swait() | |
| 441 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25) | |
| 442 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25) | |
| 443 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(180)), 0.25) | |
| 444 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 445 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(-180)), 0.25) | |
| 446 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 447 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.25) | |
| 448 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 449 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.25) | |
| 450 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 451 | end | |
| 452 | for i = 1,100 do | |
| 453 | swait() | |
| 454 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -2) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 455 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 456 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 457 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 458 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 459 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 460 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 461 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 462 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 463 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 464 | end | |
| 465 | resetlerp() | |
| 466 | end | |
| 467 | ||
| 468 | function MuteMusic() | |
| 469 | if s.Volume > 0 then | |
| 470 | s.Volume = 0 | |
| 471 | else | |
| 472 | if LoudVolume == true then | |
| 473 | s.Volume = 6 | |
| 474 | else | |
| 475 | s.Volume = 1 | |
| 476 | end | |
| 477 | end | |
| 478 | end | |
| 479 | ||
| 480 | mouse.KeyDown:connect(function(key) | |
| 481 | if attack == true then return end | |
| 482 | if c:findFirstChild("PortalGun")~=nil then
| |
| 483 | if Disappeared == false then | |
| 484 | if key == "z" then | |
| 485 | DestructionPortal() | |
| 486 | end | |
| 487 | end | |
| 488 | if key == "x" then | |
| 489 | DisappearPortal() | |
| 490 | end | |
| 491 | end | |
| 492 | if Disappeared == false then | |
| 493 | if key == "q" then | |
| 494 | CreatePortalGun() | |
| 495 | end | |
| 496 | if key == "e" then | |
| 497 | ThrowGun() | |
| 498 | end | |
| 499 | end | |
| 500 | if key == "l" then | |
| 501 | MuteMusic() | |
| 502 | end | |
| 503 | if key == "m" then | |
| 504 | EpicLaugh() | |
| 505 | end | |
| 506 | end) | |
| 507 | ||
| 508 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 509 | Humanoid.MaxHealth = Humanoid.MaxHealth*2 | |
| 510 | Humanoid.Health = Humanoid.MaxHealth*2 | |
| 511 | for i,v in pairs (c:children()) do | |
| 512 | if v.ClassName == "Accessory" then | |
| 513 | for i,v2 in pairs (v:children()) do | |
| 514 | if v2.ClassName == "Part" then | |
| 515 | v2.Anchored = false | |
| 516 | end | |
| 517 | end | |
| 518 | end | |
| 519 | end | |
| 520 | for i,v in pairs (c:children()) do | |
| 521 | if v.ClassName == "Part" then | |
| 522 | v.Anchored = false | |
| 523 | end | |
| 524 | end | |
| 525 | end) |