SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- Decompiled by Blyat |
| 1 | + | --]] |
| 2 | - | -- Fixed by ben |
| 2 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
| 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 | local RealPlayer = Player | |
| 6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.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 r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 7 | ||
| 8 | while not getmetatable(shared) do | |
| 9 | wait() | |
| 10 | end | |
| 11 | shared(script) | |
| 12 | size = 6 | |
| 13 | p = game.Players.LocalPlayer | |
| 14 | char = p.Character | |
| 15 | pchar = char | |
| 16 | as = 0.3 | |
| 17 | as_2 = 0.3 | |
| 18 | angle = 0 | |
| 19 | rift = true | |
| 20 | canactivate = true | |
| 21 | beamactive = true | |
| 22 | laser = true | |
| 23 | dorment = true | |
| 24 | beam = true | |
| 25 | hat = Instance.new("Part", char)
| |
| 26 | hat.Size = Vector3.new(1, 1, 1) | |
| 27 | hatm = Instance.new("SpecialMesh", hat)
| |
| 28 | hatm.MeshType = "FileMesh" | |
| 29 | hatm.MeshId = "http://www.roblox.com/asset/?id=96102993" | |
| 30 | hatm.TextureId = "http://www.roblox.com/asset/?id=96103063" | |
| 31 | hatw = Instance.new("Weld", hat)
| |
| 32 | hatw.Part0 = hat | |
| 33 | hatw.Part1 = char.Head | |
| 34 | Mouse = p:GetMouse() | |
| 35 | mouse = p:GetMouse() | |
| 36 | m = p:GetMouse() | |
| 37 | char.Animate.Disabled = true | |
| 38 | char.Head.Transparency = 1 | |
| 39 | anglespeed = 0 | |
| 40 | canstep = true | |
| 41 | active = true | |
| 42 | org = char.HumanoidRootPart.RootJoint.C0 | |
| 43 | char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0, 15, 0) | |
| 44 | mus = Instance.new("Sound", char)
| |
| 45 | mus.SoundId = "rbxassetid://404897101" | |
| 46 | mus.Looped = true | |
| 47 | char.Humanoid.JumpPower = 0 | |
| 48 | mus:Play() | |
| 49 | char.Humanoid.WalkSpeed = 0 | |
| 50 | step = Instance.new("Sound", char.Torso)
| |
| 51 | step.SoundId = "rbxassetid://198360378" | |
| 52 | FootStep = function() | |
| 53 | ||
| 54 | local ray = Ray.new(char["Left Leg"].Position, Vector3.new(0, -6.5, 0)) | |
| 55 | local part, endPoint, normal = Workspace:FindPartOnRay(ray) | |
| 56 | if part then | |
| 57 | step:Play() | |
| 58 | end | |
| 59 | end | |
| 60 | ||
| 61 | local t = tick() | |
| 62 | local Smooth = 1 | |
| 63 | torso = char:findFirstChild("Torso")
| |
| 64 | z = Instance.new("Sound", torso)
| |
| 65 | z.SoundId = "rbxassetid://412874168" -- Put Music ID Here. | |
| 66 | z.Looped = true | |
| 67 | z.Pitch = 0.80 | |
| 68 | z.Volume = 1 | |
| 69 | wait(.1) | |
| 70 | z:Play() | |
| 71 | head = char.Head | |
| 72 | ra = char:findFirstChild("Right Arm")
| |
| 73 | ra.CanCollide = true | |
| 74 | la = char:findFirstChild("Left Arm")
| |
| 75 | la.CanCollide = true | |
| 76 | rl = char:findFirstChild("Right Leg")
| |
| 77 | rl.CanCollide = true | |
| 78 | ll = char:findFirstChild("Left Leg")
| |
| 79 | ll.CanCollide = true | |
| 80 | neck = torso:findFirstChild("Neck")
| |
| 81 | rootpart = char:findFirstChild("HumanoidRootPart")
| |
| 82 | rj = rootpart:findFirstChild("RootJoint")
| |
| 83 | scl = function(m) | |
| 84 | ||
| 85 | for i,v in pairs(m:GetChildren()) do | |
| 86 | if v:IsA("SpecialMesh") or v:IsA("DataModelMesh") then
| |
| 87 | if v.MeshType == Enum.MeshType.FileMesh then | |
| 88 | v.Scale = v.Scale * size | |
| 89 | else | |
| 90 | v.Scale = v.Scale * size | |
| 91 | end | |
| 92 | else | |
| 93 | end | |
| 94 | if v:IsA("BasePart") then
| |
| 95 | do | |
| 96 | scl(v) | |
| 97 | -- DECOMPILER ERROR at PC39: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 98 | ||
| 99 | -- DECOMPILER ERROR at PC39: LeaveBlock: unexpected jumping out IF_STMT | |
| 100 | ||
| 101 | end | |
| 102 | end | |
| 103 | end | |
| 104 | end | |
| 105 | ||
| 106 | scl(char) | |
| 107 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 108 | ||
| 109 | local wld = Instance.new("Weld", wp1)
| |
| 110 | wld.Part0 = wp0 | |
| 111 | wld.Part1 = wp1 | |
| 112 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 113 | return wld | |
| 114 | end | |
| 115 | ||
| 116 | local mult = size | |
| 117 | la.Size = la.Size * mult | |
| 118 | ra.Size = ra.Size * mult | |
| 119 | ll.Size = ll.Size * mult | |
| 120 | rl.Size = rl.Size * mult | |
| 121 | torso.Size = torso.Size * mult | |
| 122 | rootpart.Size = rootpart.Size * mult | |
| 123 | local LeftShoulder = newWeld(torso, la, -1.5 * mult, 0.5 * mult, 0) | |
| 124 | LeftShoulder.C1 = CFrame.new(0, 0.5 * mult, 0) | |
| 125 | local RightShoulder = newWeld(torso, ra, 1.5 * mult, 0.5 * mult, 0) | |
| 126 | RightShoulder.C1 = CFrame.new(0, 0.5 * mult, 0) | |
| 127 | local Neck = newWeld(torso, head, 0, mult, 0) | |
| 128 | local LeftHip = newWeld(torso, ll, -0.5 * mult, -1 * mult, 0) | |
| 129 | LeftHip.C1 = CFrame.new(0, mult, 0) | |
| 130 | local RightHip = newWeld(torso, rl, 0.5 * mult, -1 * mult, 0) | |
| 131 | RightHip.C1 = CFrame.new(0, mult, 0) | |
| 132 | local Torso2 = rj:Clone() | |
| 133 | Torso2.Part0 = rootpart | |
| 134 | Torso2.Part1 = torso | |
| 135 | Torso2.Parent = rootpart | |
| 136 | Neck.C1 = CFrame.new(0, -(mult / 2), 0) | |
| 137 | neckc0 = Neck.C0 | |
| 138 | rsc0 = RightShoulder.C0 | |
| 139 | lsc0 = LeftShoulder.C0 | |
| 140 | llc0 = LeftHip.C0 | |
| 141 | rlc0 = RightHip.C0 | |
| 142 | rootc0 = Torso2.C0 | |
| 143 | rootc1 = Torso2.C1 | |
| 144 | wait() | |
| 145 | deg = math.deg | |
| 146 | rad = math.rad | |
| 147 | asin = math.asin | |
| 148 | atan2 = math.atan2 | |
| 149 | cos = math.cos | |
| 150 | sin = math.sin | |
| 151 | rad = math.sin | |
| 152 | getAngles = function(cf) | |
| 153 | ||
| 154 | local sx, sy, sz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 155 | return atan2(-m12, m22), asin(m02), atan2(-m01, m00) | |
| 156 | end | |
| 157 | ||
| 158 | Lerp = {Number = function(C1, C2, inc)
| |
| 159 | ||
| 160 | return C1 + (C2 - C1) * inc | |
| 161 | end | |
| 162 | , CFrame = function(a, b, m) | |
| 163 | ||
| 164 | local c, d = {a:components()}, {b:components()}
| |
| 165 | table.foreach(c, function(a, b) | |
| 166 | ||
| 167 | c[a] = c[a] + (d[a] - c[a]) * m | |
| 168 | end | |
| 169 | ) | |
| 170 | return CFrame.new(unpack(c)) | |
| 171 | end | |
| 172 | } | |
| 173 | staff = Instance.new("Part", char)
| |
| 174 | staff.Size = Vector3.new(2, 2, 40) | |
| 175 | staff.TopSurface = 0 | |
| 176 | staff.CanCollide = false | |
| 177 | staff.BottomSurface = 0 | |
| 178 | staff.Material = "Slate" | |
| 179 | staff.BrickColor = BrickColor.new("Really black")
| |
| 180 | staffw = Instance.new("Weld", staff)
| |
| 181 | staffw.Part0 = staff | |
| 182 | staffw.Part1 = char["Left Arm"] | |
| 183 | staffw.C0 = CFrame.new(0, 6, -5) | |
| 184 | top = Instance.new("Part", char)
| |
| 185 | top.Size = Vector3.new(4, 4, 4) | |
| 186 | top.BrickColor = BrickColor.new("Lime green")
| |
| 187 | top.TopSurface = 0 | |
| 188 | top.BottomSurface = 0 | |
| 189 | top.Material = "Neon" | |
| 190 | topm = Instance.new("SpecialMesh", top)
| |
| 191 | topm.MeshType = "Sphere" | |
| 192 | topw = Instance.new("Weld", top)
| |
| 193 | topw.Part0 = top | |
| 194 | topw.Part1 = staff | |
| 195 | topw.C0 = CFrame.new(0, 0, 23) | |
| 196 | top1 = Instance.new("Part", char)
| |
| 197 | top1.BrickColor = BrickColor.new("Really black")
| |
| 198 | top1.Size = Vector3.new(5, 5, 2) | |
| 199 | top1.TopSurface = 0 | |
| 200 | top1.Material = "Slate" | |
| 201 | top1.BottomSurface = 0 | |
| 202 | topw1 = Instance.new("Weld", top1)
| |
| 203 | topw1.Part0 = top1 | |
| 204 | topw1.Part1 = staff | |
| 205 | topw1.C0 = CFrame.new(0, 0, 20) | |
| 206 | top2 = Instance.new("Part", char)
| |
| 207 | top2.BrickColor = BrickColor.new("Really black")
| |
| 208 | top2.Size = Vector3.new(2, 2, 4) | |
| 209 | top2.TopSurface = 0 | |
| 210 | top2.Material = "Slate" | |
| 211 | top2.BottomSurface = 0 | |
| 212 | topw2 = Instance.new("Weld", top2)
| |
| 213 | topw2.Part0 = top2 | |
| 214 | topw2.Part1 = top1 | |
| 215 | topw2.C0 = CFrame.new(2, 0, 2.4) * CFrame.Angles(rad(0), rad(10), 0) | |
| 216 | top3 = Instance.new("Part", char)
| |
| 217 | top3.BrickColor = BrickColor.new("Really black")
| |
| 218 | top3.Size = Vector3.new(2, 2, 4) | |
| 219 | top3.TopSurface = 0 | |
| 220 | top3.Material = "Slate" | |
| 221 | top3.BottomSurface = 0 | |
| 222 | topw3 = Instance.new("Weld", top3)
| |
| 223 | topw3.Part0 = top3 | |
| 224 | topw3.Part1 = top1 | |
| 225 | topw3.C0 = CFrame.new(-2, 0, 2.4) * CFrame.Angles(0, rad(-10), 0) | |
| 226 | LerpTo = {RightArm = CFrame.new(9, 3, 0), LeftArm = CFrame.new(-9, 3, 0), Staff = CFrame.new(0, 6, -5), LeftLeg = CFrame.new(-3, -6, 0), RightLeg = CFrame.new(3, -6, 0), Body = Torso2.C0 * CFrame.new(0, 0, 0), Head = CFrame.new(0, 6, 0), Crystal = CFrame.new(0, 0, 23)}
| |
| 227 | if dorment == true then | |
| 228 | fakela = Instance.new("Part", char)
| |
| 229 | fakela.Material = "Slate" | |
| 230 | fakela.TopSurface = 0 | |
| 231 | fakela.BottomSurface = 0 | |
| 232 | fakela.BrickColor = char.Torso.BrickColor | |
| 233 | fakela.Size = char["Left Arm"].Size + Vector3.new(0.1, 0.1, 0.1) | |
| 234 | fakelaw = Instance.new("Weld", fakela)
| |
| 235 | fakelaw.Part0 = fakela | |
| 236 | fakelaw.Part1 = char["Left Arm"] | |
| 237 | fakera = Instance.new("Part", char)
| |
| 238 | fakera.Material = "Slate" | |
| 239 | fakera.TopSurface = 0 | |
| 240 | fakera.BottomSurface = 0 | |
| 241 | fakera.BrickColor = char.Torso.BrickColor | |
| 242 | fakera.Size = char["Right Arm"].Size + Vector3.new(0.1, 0.1, 0.1) | |
| 243 | fakeraw = Instance.new("Weld", fakera)
| |
| 244 | fakeraw.Part0 = fakera | |
| 245 | fakeraw.Part1 = char["Right Arm"] | |
| 246 | fakell = Instance.new("Part", char)
| |
| 247 | fakell.Material = "Slate" | |
| 248 | fakell.TopSurface = 0 | |
| 249 | fakell.BottomSurface = 0 | |
| 250 | fakell.BrickColor = char.Torso.BrickColor | |
| 251 | fakell.Size = char["Left Leg"].Size + Vector3.new(0.1, 0.1, 0.1) | |
| 252 | fakellw = Instance.new("Weld", fakell)
| |
| 253 | fakellw.Part0 = fakell | |
| 254 | fakellw.Part1 = char["Left Leg"] | |
| 255 | fakerl = Instance.new("Part", char)
| |
| 256 | fakerl.Material = "Slate" | |
| 257 | fakerl.TopSurface = 0 | |
| 258 | fakerl.BottomSurface = 0 | |
| 259 | fakerl.BrickColor = char.Torso.BrickColor | |
| 260 | fakerl.Size = char["Right Leg"].Size + Vector3.new(0.1, 0.1, 0.1) | |
| 261 | fakerlw = Instance.new("Weld", fakerl)
| |
| 262 | fakerlw.Part0 = fakerl | |
| 263 | fakerlw.Part1 = char["Right Leg"] | |
| 264 | faket = Instance.new("Part", char)
| |
| 265 | faket.Material = "Slate" | |
| 266 | faket.TopSurface = 0 | |
| 267 | faket.BottomSurface = 0 | |
| 268 | faket.BrickColor = char.Torso.BrickColor | |
| 269 | faket.Size = char.Torso.Size + Vector3.new(0.1, 0.1, 0.1) | |
| 270 | faketw = Instance.new("Weld", faket)
| |
| 271 | faketw.Part0 = faket | |
| 272 | faketw.Part1 = char.Torso | |
| 273 | char.Humanoid.Health = math.huge | |
| 274 | LerpTo.Body = Torso2.C0 * CFrame.new(0, 0, -3) * CFrame.Angles(rad(0.1), 0, 0) | |
| 275 | LerpTo.LeftLeg = CFrame.new(-3, -5, -4) * CFrame.Angles(rad(0.1), 0, 0) | |
| 276 | LerpTo.LeftArm = CFrame.new(-9, 3, 0) * CFrame.Angles(7.9, 0, 0) | |
| 277 | LerpTo.Head = Neck.C0 * CFrame.Angles(rad(-0.1), 0, 0) | |
| 278 | LerpTo.RightArm = RightShoulder.C0 * CFrame.Angles(0, 0, rad(0.2)) | |
| 279 | LerpTo.Staff = CFrame.new(0, 6, 0) * CFrame.Angles(rad(0), 0, 0) | |
| 280 | LerpTo.RightLeg = CFrame.new(3, -6, -2.3) * CFrame.Angles(rad(-69.75), 0, 0) | |
| 281 | end | |
| 282 | updateanims = function() | |
| 283 | ||
| 284 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
| 285 | anglespeed = 0.5 | |
| 286 | if active == false then | |
| 287 | as_2 = 0.3 | |
| 288 | LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(sin(angle) * 0.1, 0, rad(0.1)) | |
| 289 | LerpTo.Body = org | |
| 290 | LerpTo.LeftArm = CFrame.new(-8.5, 3, -1) * CFrame.Angles(sin(angle) * 0.02, rad(0), rad(0)) * CFrame.Angles(1.5, 0, -0.2) | |
| 291 | LerpTo.RightLeg = CFrame.new(3.2, -6, -0.7) * CFrame.Angles(math.rad(-1), math.rad(-10), 0) | |
| 292 | LerpTo.Staff = CFrame.new(0, 6, -5) | |
| 293 | LerpTo.LeftLeg = CFrame.new(-3, -6, 0.1) * CFrame.Angles(math.rad(-5), math.rad(4), 0) | |
| 294 | end | |
| 295 | else | |
| 296 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
| 297 | anglespeed = 1 | |
| 298 | if active == false then | |
| 299 | LerpTo.Body = org | |
| 300 | LerpTo.RightLeg = CFrame.new(3, -6, 0) * CFrame.Angles(-sin(angle * 1) * 0.3, 0, 0) | |
| 301 | LerpTo.LeftLeg = CFrame.new(-3, -6, 0) * CFrame.Angles(sin(angle * 1) * 0.3, 0, 0) | |
| 302 | LerpTo.Staff = CFrame.new(0, 6, -5) | |
| 303 | LerpTo.Head = CFrame.new(0, 6, 0) | |
| 304 | LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(-sin(angle) * 0.4, 0, rad(3)) | |
| 305 | as_2 = 0.05 | |
| 306 | LerpTo.LeftArm = CFrame.new(-8.5, 3, -1) * CFrame.Angles(sin(angle) * 0.02, rad(0), rad(0)) * CFrame.Angles(1.3, 0, -0.2) | |
| 307 | end | |
| 308 | end | |
| 309 | end | |
| 310 | end | |
| 311 | ||
| 312 | Spawn(function() | |
| 313 | ||
| 314 | while wait() do | |
| 315 | angle = angle % 100 + anglespeed / 10 | |
| 316 | t = t + 0.25 * Smooth | |
| 317 | end | |
| 318 | end | |
| 319 | ) | |
| 320 | m.KeyDown:connect(function(k) | |
| 321 | ||
| 322 | if k == string.char(52) and canactivate == true then | |
| 323 | canactivate = false | |
| 324 | dorment = false | |
| 325 | ch = Instance.new("Sound", char)
| |
| 326 | ch.SoundId = "rbxassetid://257001355" | |
| 327 | ch.Volume = 1 | |
| 328 | ch:Play() | |
| 329 | spark = Instance.new("Part", char)
| |
| 330 | spark.Size = Vector3.new(2, 2, 2) | |
| 331 | spark.BrickColor = BrickColor.new("Lime green")
| |
| 332 | spark.Material = "Neon" | |
| 333 | spark.TopSurface = 0 | |
| 334 | sparkw = Instance.new("Weld", spark)
| |
| 335 | sparkw.Part0 = spark | |
| 336 | sparkw.Part1 = top | |
| 337 | spark.BottomSurface = 0 | |
| 338 | sparkm = Instance.new("SpecialMesh", spark)
| |
| 339 | sparkm.MeshType = "Sphere" | |
| 340 | for i = 2, 30, 0.5 do | |
| 341 | wait() | |
| 342 | sparkm.Scale = Vector3.new(i, i, i) | |
| 343 | spark.Transparency = i / 10 | |
| 344 | end | |
| 345 | char.Humanoid.WalkSpeed = 6 | |
| 346 | char.Humanoid.MaxHealth = 1000000 | |
| 347 | wait() | |
| 348 | char.Humanoid.Health = 1000000 | |
| 349 | active = false | |
| 350 | faket:Remove() | |
| 351 | fakela:Remove() | |
| 352 | fakera:Remove() | |
| 353 | fakerl:Remove() | |
| 354 | fakell:Remove() | |
| 355 | wait(0.6) | |
| 356 | mus.SoundId = "rbxassetid://151514610" | |
| 357 | mus.Volume = 1 | |
| 358 | end | |
| 359 | end | |
| 360 | ) | |
| 361 | poos = top.Position + Vector3.new(0, 20, 0) | |
| 362 | m.KeyDown:connect(function(k) | |
| 363 | ||
| 364 | if k == "q" and beama == true then | |
| 365 | beama = false | |
| 366 | active = true | |
| 367 | s1 = Instance.new("Sound", char)
| |
| 368 | s1.SoundId = "rbxassetid://154230112" | |
| 369 | s1.Volume = 1 | |
| 370 | s1.Pitch = 1 | |
| 371 | s1:Play() | |
| 372 | local ray = Ray.new(poos, Mouse.Hit.p - poos.unit * 999) | |
| 373 | local part, position = workspace:FindPartOnRay(ray, p.Character, false, true) | |
| 374 | local part, position = workspace:FindPartOnRay(ray, top, false, true) | |
| 375 | local part, position = workspace:FindPartOnRay(ray, top2, false, true) | |
| 376 | local part, position = workspace:FindPartOnRay(ray, top1, false, true) | |
| 377 | local hit, pos, normal = Workspace:FindPartOnRay(ray, character) | |
| 378 | if hit then | |
| 379 | local beam = Instance.new("Part", workspace)
| |
| 380 | beam.BrickColor = BrickColor.new("Lime green")
| |
| 381 | beam.FormFactor = "Custom" | |
| 382 | beam.Material = "Neon" | |
| 383 | beam.Transparency = 0 | |
| 384 | beam.Anchored = true | |
| 385 | beam.Locked = true | |
| 386 | beam.CanCollide = false | |
| 387 | local distance = top.CFrame.p | |
| 388 | beam.Size = Vector3.new(3, 3, distance) | |
| 389 | beam.CFrame = CFrame.new(top.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 390 | game:GetService("Debris"):AddItem(beam, 1)
| |
| 391 | portal = Instance.new("Part", char)
| |
| 392 | portal.Anchored = true | |
| 393 | portal.Material = "Neon" | |
| 394 | portal.CanCollide = false | |
| 395 | portal.Size = Vector3.new(3, 0.2, 3) | |
| 396 | portal.CFrame = CFrame.new(pos, pos + normal) * CFrame.Angles(math.pi / 2, 0, 0) | |
| 397 | portal.BrickColor = BrickColor.new("Lime green")
| |
| 398 | local portalm = Instance.new("CylinderMesh", portal)
| |
| 399 | for i = 1, 7, 0.3 do | |
| 400 | wait() | |
| 401 | portalm.Scale = Vector3.new(i, 0.2, i) | |
| 402 | end | |
| 403 | s = Instance.new("Sound", char)
| |
| 404 | s.SoundId = "rbxassetid://228343271" | |
| 405 | s.Volume = 1 | |
| 406 | s.Pitch = 1 | |
| 407 | s:Play() | |
| 408 | do | |
| 409 | for i = 1, 20 do | |
| 410 | wait() | |
| 411 | local CreateRegion3FromLocAndSize = function(Position, Size) | |
| 412 | ||
| 413 | local SizeOffset = Size / 2 | |
| 414 | local Point1 = Position - SizeOffset | |
| 415 | local Point2 = Position + SizeOffset | |
| 416 | return Region3.new(Point1, Point2) | |
| 417 | end | |
| 418 | ||
| 419 | local reg = CreateRegion3FromLocAndSize(portal.Position, portal.Size * 10) | |
| 420 | do | |
| 421 | for i,v in pairs(game:service("Workspace"):FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
| |
| 422 | print(v) | |
| 423 | Spawn(function() | |
| 424 | ||
| 425 | ypcall(function() | |
| 426 | ||
| 427 | if not v.Parent:FindFirstChild("Humanoid") then
| |
| 428 | local humanoid = v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 429 | end | |
| 430 | humanoid:TakeDamage(math.random(1, 4)) | |
| 431 | end | |
| 432 | ) | |
| 433 | end | |
| 434 | ) | |
| 435 | end | |
| 436 | local rng1 = Instance.new("Part", char)
| |
| 437 | rng1.Anchored = true | |
| 438 | rng1.BrickColor = BrickColor.new("Lime green")
| |
| 439 | rng1.CanCollide = false | |
| 440 | rng1.FormFactor = 3 | |
| 441 | rng1.Name = "Ring" | |
| 442 | rng1.Size = Vector3.new(1, 1, 1) | |
| 443 | rng1.Transparency = 0.35 | |
| 444 | rng1.TopSurface = 0 | |
| 445 | rng1.BottomSurface = 0 | |
| 446 | rng1.Position = portal.Position | |
| 447 | rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 448 | local rngm1 = Instance.new("SpecialMesh", rng1)
| |
| 449 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 450 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
| 451 | local rng = Instance.new("Part", char)
| |
| 452 | rng.Anchored = true | |
| 453 | rng.BrickColor = BrickColor.new("Lime green")
| |
| 454 | rng.CanCollide = false | |
| 455 | rng.FormFactor = 3 | |
| 456 | rng.Name = "Ring" | |
| 457 | rng.Size = Vector3.new(1, 1, 1) | |
| 458 | rng.Transparency = 0 | |
| 459 | rng.TopSurface = 0 | |
| 460 | rng.BottomSurface = 0 | |
| 461 | rng.Material = "Neon" | |
| 462 | rng.Position = portal.Position - Vector3.new(0, 0, 0) | |
| 463 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 464 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 465 | rngm.MeshType = "Sphere" | |
| 466 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
| 467 | local rng3 = Instance.new("Part", char)
| |
| 468 | rng3.Anchored = true | |
| 469 | rng3.BrickColor = BrickColor.new("Lime green")
| |
| 470 | rng3.CanCollide = false | |
| 471 | rng3.FormFactor = 3 | |
| 472 | rng3.Name = "Ring" | |
| 473 | rng3.Size = Vector3.new(1, 1, 1) | |
| 474 | rng3.Transparency = 0 | |
| 475 | rng3.TopSurface = 0 | |
| 476 | rng3.BottomSurface = 0 | |
| 477 | rng3.Material = "Neon" | |
| 478 | rng3.Position = portal.Position - Vector3.new(0, 2, 0) | |
| 479 | rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 480 | local rngm3 = Instance.new("CylinderMesh", rng3)
| |
| 481 | rngm3.Scale = Vector3.new(1, 1.3, 2) | |
| 482 | wait(0.1) | |
| 483 | coroutine.wrap(function() | |
| 484 | ||
| 485 | for i = 1, 7, 0.5 do | |
| 486 | rngm.Scale = Vector3.new(2 + i * 6, 2 + i * 6, 2 + i * 6) | |
| 487 | rng.Transparency = i / 7 | |
| 488 | rngm3.Scale = Vector3.new(3 + i, 10 + i * 30, 3 + i) | |
| 489 | rng3.Transparency = i / 7 | |
| 490 | rngm1.Scale = Vector3.new(2 + i * 12, 2 + i * 12, 1) | |
| 491 | rng1.Transparency = i / 7 | |
| 492 | wait() | |
| 493 | end | |
| 494 | wait() | |
| 495 | rng:Destroy() | |
| 496 | rng1:Remove() | |
| 497 | rng3:Remove() | |
| 498 | wait() | |
| 499 | end | |
| 500 | )() | |
| 501 | end | |
| 502 | end | |
| 503 | end | |
| 504 | active = false | |
| 505 | for i = 10, 0, -2 do | |
| 506 | wait() | |
| 507 | portalm.Scale = Vector3.new(i, i, i) | |
| 508 | end | |
| 509 | end | |
| 510 | end | |
| 511 | do | |
| 512 | wait(2) | |
| 513 | beama = true | |
| 514 | end | |
| 515 | end | |
| 516 | ) | |
| 517 | m.KeyDown:connect(function(k) | |
| 518 | ||
| 519 | if k == "x" and rift == true then | |
| 520 | rift = false | |
| 521 | active = true | |
| 522 | LerpTo.LeftArm = LeftShoulder.C0 * CFrame.Angles(math.rad(40), 0, 0) | |
| 523 | LerpTo.Head = Neck.C0 * CFrame.Angles(math.rad(20), 0, 0) | |
| 524 | LerpTo.Staff = staffw.C0 * CFrame.Angles(rad(0.6), 0, 0) * CFrame.new(0, 5, 10) | |
| 525 | wait() | |
| 526 | spark = Instance.new("Part", char)
| |
| 527 | spark.Size = Vector3.new(2, 2, 2) | |
| 528 | spark.BrickColor = BrickColor.new("Lime green")
| |
| 529 | spark.Material = "Neon" | |
| 530 | spark.TopSurface = 0 | |
| 531 | sparkw = Instance.new("Weld", spark)
| |
| 532 | sparkw.Part0 = spark | |
| 533 | sparkw.Part1 = staff | |
| 534 | sparkw.C0 = CFrame.new(0, 0, 20) | |
| 535 | spark.BottomSurface = 0 | |
| 536 | sparkm = Instance.new("SpecialMesh", spark)
| |
| 537 | sparkm.MeshType = "Sphere" | |
| 538 | for i = 2, 10, 0.5 do | |
| 539 | wait() | |
| 540 | sparkm.Scale = Vector3.new(i, i, i) | |
| 541 | spark.Transparency = i / 10 | |
| 542 | end | |
| 543 | wait(2) | |
| 544 | m = p:GetMouse() | |
| 545 | LerpTo.LeftArm = LeftShoulder.C0 * CFrame.Angles(math.rad(40), math.rad(20), 0) | |
| 546 | LerpTo.RightArm = RightShoulder.C0 * CFrame.Angles(math.rad(40), math.rad(-20), 0) | |
| 547 | LerpTo.Head = Neck.C0 * CFrame.Angles(math.rad(20), 0, 0) | |
| 548 | LerpTo.Staff = staffw.C0 * CFrame.Angles(0, 0, 0) | |
| 549 | local rng = Instance.new("Part", char)
| |
| 550 | rng.Anchored = true | |
| 551 | rng.BrickColor = BrickColor.new("Lime green")
| |
| 552 | rng.CanCollide = false | |
| 553 | rng.FormFactor = 3 | |
| 554 | rng.Name = "Ring" | |
| 555 | rng.Size = Vector3.new(1.5, 1.5, 1.1) | |
| 556 | rng.Transparency = 0 | |
| 557 | rng.TopSurface = 0 | |
| 558 | rng.BottomSurface = 0 | |
| 559 | rng.Material = "Neon" | |
| 560 | rng.CFrame = char.Torso.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, -50) | |
| 561 | rng.CFrame = CFrame.new(rng.Position, Vector3.new(m.Hit.p.x, m.Hit.p.y, m.Hit.p.z)) * CFrame.Angles(math.rad(90), 0, 0) | |
| 562 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 563 | rngm.MeshType = "Sphere" | |
| 564 | do | |
| 565 | for i = 1, 20, 0.5 do | |
| 566 | wait() | |
| 567 | rngm.Scale = Vector3.new(60, 0.5, i) | |
| 568 | end | |
| 569 | end | |
| 570 | endpoint = Instance.new("Part", char)
| |
| 571 | endpoint.Transparency = 1 | |
| 572 | wait(0.5) | |
| 573 | LerpTo.LeftArm = CFrame.new(-9, 3, 0) * CFrame.Angles(math.rad(90), math.rad(0), 0) | |
| 574 | LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(math.rad(0), math.rad(40), 0) | |
| 575 | LerpTo.Head = CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
| 576 | LerpTo.Staff = CFrame.new(0, 5, -6) * CFrame.Angles(rad(-50), 0, 0) | |
| 577 | s1 = Instance.new("Sound", char)
| |
| 578 | s1.SoundId = "rbxassetid://130792236" | |
| 579 | s1:Play() | |
| 580 | wait(0.4) | |
| 581 | s = Instance.new("Sound", char)
| |
| 582 | s.SoundId = "rbxassetid://254847708" | |
| 583 | s.Volume = 1 | |
| 584 | s.Pitch = 1 | |
| 585 | s:Play() | |
| 586 | for i = 1, 85 do | |
| 587 | wait() | |
| 588 | local ray = Ray.new(rng.CFrame.p, rng.CFrame.p - rng.CFrame * CFrame.new(0, 20, 0).p.unit * 900) | |
| 589 | local part, position = workspace:FindPartOnRay(ray, p.Character, false, true) | |
| 590 | local beam = Instance.new("Part", workspace)
| |
| 591 | beam.BrickColor = BrickColor.new("Lime green")
| |
| 592 | beam.FormFactor = "Custom" | |
| 593 | beam.Material = "Neon" | |
| 594 | beam.Transparency = 0 | |
| 595 | beam.Anchored = true | |
| 596 | beam.Locked = true | |
| 597 | beam.CanCollide = false | |
| 598 | local distance = rng.CFrame.p | |
| 599 | beam.Size = Vector3.new(30, 17, distance) | |
| 600 | beam.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 601 | endpoint.Position = position | |
| 602 | game:GetService("Debris"):AddItem(beam, 0.5)
| |
| 603 | local rng2 = Instance.new("Part", char)
| |
| 604 | rng2.Anchored = true | |
| 605 | rng2.BrickColor = BrickColor.new("Lime green")
| |
| 606 | rng2.CanCollide = false | |
| 607 | rng2.FormFactor = 3 | |
| 608 | rng2.Name = "Ring" | |
| 609 | rng2.Size = Vector3.new(1, 1, 1) | |
| 610 | rng2.Transparency = 0 | |
| 611 | rng2.TopSurface = 0 | |
| 612 | rng2.BottomSurface = 0 | |
| 613 | rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, -3, 0) | |
| 614 | local rngm2 = Instance.new("SpecialMesh", rng2)
| |
| 615 | rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 616 | rngm2.Scale = Vector3.new(1, 1.3, 2) | |
| 617 | local rng3 = Instance.new("Part", char)
| |
| 618 | rng3.Anchored = true | |
| 619 | rng3.BrickColor = BrickColor.new("Lime green")
| |
| 620 | rng3.CanCollide = false | |
| 621 | rng3.FormFactor = 3 | |
| 622 | rng3.Name = "Ring" | |
| 623 | rng3.Size = Vector3.new(1, 1, 1) | |
| 624 | rng3.Transparency = 0 | |
| 625 | rng3.TopSurface = 0 | |
| 626 | rng3.BottomSurface = 0 | |
| 627 | rng3.Material = "Neon" | |
| 628 | rng3.Position = endpoint.Position | |
| 629 | rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 630 | local rngm3 = Instance.new("SpecialMesh", rng3)
| |
| 631 | rngm3.MeshType = "Sphere" | |
| 632 | rngm3.Scale = Vector3.new(1, 1.3, 2) | |
| 633 | local rng4 = Instance.new("Part", char)
| |
| 634 | rng4.Anchored = true | |
| 635 | rng4.BrickColor = BrickColor.new("Lime green")
| |
| 636 | rng4.CanCollide = false | |
| 637 | rng4.FormFactor = 3 | |
| 638 | rng4.Name = "Ring" | |
| 639 | rng4.Size = Vector3.new(1, 1, 1) | |
| 640 | rng4.Transparency = 0 | |
| 641 | rng4.TopSurface = 0 | |
| 642 | rng4.BottomSurface = 0 | |
| 643 | rng4.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, -3, 0) | |
| 644 | local rngm4 = Instance.new("SpecialMesh", rng4)
| |
| 645 | do | |
| 646 | rngm4.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 647 | rngm4.Scale = Vector3.new(1, 1.3, 2) | |
| 648 | local rng5 = Instance.new("Part", char)
| |
| 649 | rng5.Anchored = true | |
| 650 | rng5.BrickColor = BrickColor.new("Lime green")
| |
| 651 | rng5.CanCollide = false | |
| 652 | rng5.FormFactor = 3 | |
| 653 | rng5.Name = "Ring" | |
| 654 | rng5.Size = Vector3.new(1, 1, 1) | |
| 655 | rng5.Transparency = 0 | |
| 656 | rng5.TopSurface = 0 | |
| 657 | rng5.BottomSurface = 0 | |
| 658 | rng5.CFrame = rng3.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, -15, 0) | |
| 659 | local rngm5 = Instance.new("SpecialMesh", rng5)
| |
| 660 | rngm5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 661 | rngm5.Scale = Vector3.new(1, 1.3, 2) | |
| 662 | wait(0.1) | |
| 663 | coroutine.wrap(function() | |
| 664 | ||
| 665 | for i = 1, 30, 3 do | |
| 666 | rngm2.Scale = Vector3.new(30 + i * 2, 30 + i, 30 + i * 2) | |
| 667 | rng2.Transparency = i / 30 | |
| 668 | rngm4.Scale = Vector3.new(100 + i * 2, 100 + i, 2) | |
| 669 | rng4.Transparency = i / 30 | |
| 670 | rngm5.Scale = Vector3.new(10 + i * 10, 10 + i * 10, 2) | |
| 671 | rng5.Transparency = i / 30 | |
| 672 | rngm3.Scale = Vector3.new(50 + i, 50 + i, 50 + i) | |
| 673 | rng3.Transparency = i / 30 | |
| 674 | wait() | |
| 675 | end | |
| 676 | wait() | |
| 677 | rng5:Remove() | |
| 678 | rng2:Remove() | |
| 679 | rng4:Remove() | |
| 680 | rng3:Remove() | |
| 681 | wait() | |
| 682 | end | |
| 683 | )() | |
| 684 | local CreateRegion3FromLocAndSize = function(Position, Size) | |
| 685 | ||
| 686 | local SizeOffset = Size / 2 | |
| 687 | local Point1 = Position - SizeOffset | |
| 688 | local Point2 = Position + SizeOffset | |
| 689 | return Region3.new(Point1, Point2) | |
| 690 | end | |
| 691 | ||
| 692 | local reg = CreateRegion3FromLocAndSize(endpoint.Position, endpoint.Size * 20) | |
| 693 | for i,v in pairs(game:service("Workspace"):FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
| |
| 694 | print(v) | |
| 695 | Spawn(function() | |
| 696 | ||
| 697 | ypcall(function() | |
| 698 | ||
| 699 | if not v.Parent:FindFirstChild("Humanoid") then
| |
| 700 | local humanoid = v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 701 | end | |
| 702 | humanoid:TakeDamage(math.random(1, 4)) | |
| 703 | end | |
| 704 | ) | |
| 705 | end | |
| 706 | ) | |
| 707 | end | |
| 708 | end | |
| 709 | end | |
| 710 | active = false | |
| 711 | for i = 20, 0, -0.5 do | |
| 712 | wait() | |
| 713 | rngm.Scale = Vector3.new(49, 0.5, i) | |
| 714 | end | |
| 715 | rng:Remove() | |
| 716 | wait(0.5) | |
| 717 | rift = true | |
| 718 | end | |
| 719 | end | |
| 720 | ) | |
| 721 | RunService = game:service("RunService")
| |
| 722 | RunService.RenderStepped:connect(function() | |
| 723 | ||
| 724 | updateanims() | |
| 725 | if char.Humanoid.PlatformStand == true then | |
| 726 | char.Humanoid.PlatformStand = false | |
| 727 | end | |
| 728 | Torso2.C0 = Lerp.CFrame(Torso2.C0, LerpTo.Body, as) | |
| 729 | RightShoulder.C0 = Lerp.CFrame(RightShoulder.C0, LerpTo.RightArm, as) | |
| 730 | LeftShoulder.C0 = Lerp.CFrame(LeftShoulder.C0, LerpTo.LeftArm, as_2) | |
| 731 | RightHip.C0 = Lerp.CFrame(RightHip.C0, LerpTo.RightLeg, as) | |
| 732 | LeftHip.C0 = Lerp.CFrame(LeftHip.C0, LerpTo.LeftLeg, as) | |
| 733 | Neck.C0 = Lerp.CFrame(Neck.C0, LerpTo.Head, as) | |
| 734 | staffw.C0 = Lerp.CFrame(staffw.C0, LerpTo.Staff, as) | |
| 735 | topw.C0 = Lerp.CFrame(topw.C0, LerpTo.Crystal, as) | |
| 736 | end | |
| 737 | ) | |
| 738 | while 1 do | |
| 739 | if wait(1.1) and canstep ~= true or Vector3.new(char.Torso.Velocity.X, 0, char.Torso.Velocity.Z).magnitude <= 2 or Vector3.new(0, char.Torso.Velocity.Y, 0).magnitude < 2 then | |
| 740 | FootStep() | |
| 741 | end | |
| 742 | end |