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