SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
| |
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 5 | local function NewFakeEvent() | |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | local Fake;Fake = {Connections = {},
| |
| 8 | fakeEvent=true; | |
| 9 | Connect=function(self,Func) | |
| 10 | Bind.Event:connect(Func) | |
| 11 | self.Connections[Bind] = true | |
| 12 | return setmetatable({Connected = true},{
| |
| 13 | __index = function (self,Index) | |
| 14 | if Index:lower() == "disconnect" then | |
| 15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 16 | end | |
| 17 | return Fake[Index] | |
| 18 | end; | |
| 19 | __tostring = function() return "Connection" end; | |
| 20 | }) | |
| 21 | end} | |
| 22 | Fake.connect = Fake.Connect;return Fake; | |
| 23 | end | |
| 24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | local Trigger = Mouse[Event] | |
| 31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 33 | end | |
| 34 | end | |
| 35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 37 | if FiredBy.Name ~= owner.Name then return end | |
| 38 | if Input.MouseEvent then | |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | else | |
| 41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 43 | for _,Action in pairs(ContextActionService.Actions) do | |
| 44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 45 | end | |
| 46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 48 | end | |
| 49 | end) | |
| 50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 51 | Event.Parent = NLS([[ | |
| 52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 53 | local Input = function(Input,gameProcessedEvent) | |
| 54 | if gameProcessedEvent then return end | |
| 55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 56 | end | |
| 57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 58 | local Hit,Target | |
| 59 | while wait(1/30) do | |
| 60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 62 | end | |
| 63 | end | |
| 64 | ]],owner.Character) | |
| 65 | end | |
| 66 | RealGame = game;game = setmetatable({},{
| |
| 67 | __index = function (self,Index) | |
| 68 | local Sandbox = function (Thing) | |
| 69 | if Thing:IsA("Player") then
| |
| 70 | local RealPlayer = Thing | |
| 71 | return setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | if Type == "function" then | |
| 75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 76 | return function (self)return InternalData["Mouse"] end | |
| 77 | end | |
| 78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 79 | end | |
| 80 | return RealPlayer[Index] | |
| 81 | end; | |
| 82 | __tostring = function(self) return RealPlayer.Name end | |
| 83 | }) | |
| 84 | end | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | local Type = type(RealGame[Index]) | |
| 88 | if Type == "function" then | |
| 89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
| |
| 141 | ||
| 142 | --[[SCP-178 by SezHu. | |
| 143 | ||
| 144 | If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie | |
| 145 | #1875) Prices start at 350 robux.]]-- | |
| 146 | ||
| 147 | wait(1 / 60) | |
| 148 | local sfx = {
| |
| 149 | 619083295, | |
| 150 | } | |
| 151 | ||
| 152 | ||
| 153 | Effects = { }
| |
| 154 | local Player = game.Players.localPlayer | |
| 155 | local Mouse = Player:GetMouse() | |
| 156 | local Character = Player.Character | |
| 157 | local Humanoid = Character.Humanoid | |
| 158 | local Head = Character.Head | |
| 159 | local RootPart = Character.HumanoidRootPart | |
| 160 | local Torso = Character.Torso | |
| 161 | local LeftArm = Character["Left Arm"] | |
| 162 | local RightArm = Character["Right Arm"] | |
| 163 | local LeftLeg = Character["Left Leg"] | |
| 164 | local RightLeg = Character["Right Leg"] | |
| 165 | local Camera = game.Workspace.CurrentCamera | |
| 166 | local RootJoint = RootPart.RootJoint | |
| 167 | local Equipped = false | |
| 168 | local Attack = false | |
| 169 | local Anim = 'Idle' | |
| 170 | local Idle = 0 | |
| 171 | local Combo = 1 | |
| 172 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 173 | local Velocity = RootPart.Velocity.y | |
| 174 | local Sine = 0 | |
| 175 | local Change = 1 | |
| 176 | ||
| 177 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 178 | local Create = RbxUtility.Create | |
| 179 | ||
| 180 | Humanoid.WalkSpeed = 10 | |
| 181 | Humanoid.JumpPower = 50 | |
| 182 | Humanoid.Animator.Parent = nil | |
| 183 | Character.Animate.Parent = nil | |
| 184 | ||
| 185 | local newMotor = function(part0, part1, c0, c1) | |
| 186 | local w = Create('Motor'){
| |
| 187 | Parent = part0, | |
| 188 | Part0 = part0, | |
| 189 | Part1 = part1, | |
| 190 | C0 = c0, | |
| 191 | C1 = c1, | |
| 192 | } | |
| 193 | return w | |
| 194 | end | |
| 195 | ||
| 196 | ||
| 197 | ||
| 198 | function clerp(a, b, t) | |
| 199 | return a:lerp(b, t) | |
| 200 | end | |
| 201 | ||
| 202 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 203 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 204 | ||
| 205 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 206 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 207 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 208 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 209 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 210 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 211 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 212 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 213 | ||
| 214 | local rarmc1 = RW.C1 | |
| 215 | local larmc1 = LW.C1 | |
| 216 | local rlegc1 = RH.C1 | |
| 217 | local llegc1 = LH.C1 | |
| 218 | ||
| 219 | local resetc1 = false | |
| 220 | ||
| 221 | function PlayAnimationFromTable(table, speed, bool) | |
| 222 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 223 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 224 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 225 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 226 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 227 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 228 | if bool == true then | |
| 229 | if resetc1 == false then | |
| 230 | resetc1 = true | |
| 231 | RootJoint.C1 = RootJoint.C1 | |
| 232 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 233 | RW.C1 = rarmc1 | |
| 234 | LW.C1 = larmc1 | |
| 235 | RH.C1 = rlegc1 | |
| 236 | LH.C1 = llegc1 | |
| 237 | end | |
| 238 | end | |
| 239 | end | |
| 240 | ||
| 241 | ArtificialHB = Create("BindableEvent"){
| |
| 242 | Parent = script, | |
| 243 | Name = "Heartbeat", | |
| 244 | } | |
| 245 | ||
| 246 | script:WaitForChild("Heartbeat")
| |
| 247 | ||
| 248 | frame = 1 / 30 | |
| 249 | tf = 0 | |
| 250 | allowframeloss = false | |
| 251 | tossremainder = false | |
| 252 | lastframe = tick() | |
| 253 | script.Heartbeat:Fire() | |
| 254 | ||
| 255 | ||
| 256 | spawn(function() | |
| 257 | while true do | |
| 258 | if Anim == "Walk" then | |
| 259 | CFuncs.Sound.Create(sfx[math.random(#sfx)], Head, .5, 1) | |
| 260 | end | |
| 261 | wait(.6) | |
| 262 | end | |
| 263 | end) | |
| 264 | ||
| 265 | ||
| 266 | ||
| 267 | local function soundbork(obj) | |
| 268 | if obj:IsA("Sound") and obj.Name ~= "important" then
| |
| 269 | obj.Volume = 0 | |
| 270 | return | |
| 271 | end | |
| 272 | ||
| 273 | ||
| 274 | local children = obj:GetChildren() | |
| 275 | for i = 1, #children do | |
| 276 | soundbork(children[i]) | |
| 277 | end | |
| 278 | ||
| 279 | return | |
| 280 | end | |
| 281 | ||
| 282 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 283 | tf = tf + s | |
| 284 | if tf >= frame then | |
| 285 | if allowframeloss then | |
| 286 | script.Heartbeat:Fire() | |
| 287 | lastframe = tick() | |
| 288 | else | |
| 289 | for i = 1, math.floor(tf / frame) do | |
| 290 | script.Heartbeat:Fire() | |
| 291 | end | |
| 292 | lastframe = tick() | |
| 293 | end | |
| 294 | if tossremainder then | |
| 295 | tf = 0 | |
| 296 | else | |
| 297 | tf = tf - frame * math.floor(tf / frame) | |
| 298 | end | |
| 299 | end | |
| 300 | end) | |
| 301 | ||
| 302 | function swait(num) | |
| 303 | if num == 0 or num == nil then | |
| 304 | ArtificialHB.Event:wait() | |
| 305 | else | |
| 306 | for i = 0, num do | |
| 307 | ArtificialHB.Event:wait() | |
| 308 | end | |
| 309 | end | |
| 310 | end | |
| 311 | ||
| 312 | local m = Create("Model"){
| |
| 313 | Parent = Character, | |
| 314 | Name = "WeaponModel" | |
| 315 | } | |
| 316 | ||
| 317 | function RemoveOutlines(part) | |
| 318 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 319 | end | |
| 320 | ||
| 321 | CFuncs = {
| |
| 322 | Part = {
| |
| 323 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 324 | local Part = Create("Part"){
| |
| 325 | Parent = Parent, | |
| 326 | Reflectance = Reflectance, | |
| 327 | Transparency = Transparency, | |
| 328 | CanCollide = false, | |
| 329 | Locked = true, | |
| 330 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 331 | Name = Name, | |
| 332 | Size = Size, | |
| 333 | Material = Material, | |
| 334 | } | |
| 335 | RemoveOutlines(Part) | |
| 336 | if Size == Vector3.new() then | |
| 337 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 338 | else | |
| 339 | Part.Size = Size | |
| 340 | end | |
| 341 | return Part | |
| 342 | end; | |
| 343 | }; | |
| 344 | ||
| 345 | Mesh = {
| |
| 346 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 347 | local Msh = Create(Mesh){
| |
| 348 | Parent = Part, | |
| 349 | Offset = OffSet, | |
| 350 | Scale = Scale, | |
| 351 | } | |
| 352 | if Mesh == "SpecialMesh" then | |
| 353 | Msh.MeshType = MeshType | |
| 354 | Msh.MeshId = MeshId | |
| 355 | end | |
| 356 | return Msh | |
| 357 | end; | |
| 358 | }; | |
| 359 | ||
| 360 | Weld = {
| |
| 361 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 362 | local Weld = Create("Weld"){
| |
| 363 | Parent = Parent, | |
| 364 | Part0 = Part0, | |
| 365 | Part1 = Part1, | |
| 366 | C0 = C0, | |
| 367 | C1 = C1, | |
| 368 | } | |
| 369 | return Weld | |
| 370 | end; | |
| 371 | }; | |
| 372 | ||
| 373 | Sound = {
| |
| 374 | Create = function(id, par, vol, pit) | |
| 375 | coroutine.resume(coroutine.create(function() | |
| 376 | local S = Create("Sound"){
| |
| 377 | Volume = vol, | |
| 378 | Pitch = pit or 1, | |
| 379 | SoundId = "rbxassetid://" .. id, | |
| 380 | Parent = par or workspace, | |
| 381 | Name = "important" | |
| 382 | } | |
| 383 | wait() | |
| 384 | S:play() | |
| 385 | game:GetService("Debris"):AddItem(S, 10)
| |
| 386 | end)) | |
| 387 | end; | |
| 388 | }; | |
| 389 | ||
| 390 | Sound2 = {
| |
| 391 | Create = function(id, par, vol, pit) | |
| 392 | coroutine.resume(coroutine.create(function() | |
| 393 | local S = Create("Sound"){
| |
| 394 | Volume = vol, | |
| 395 | Pitch = pit or 1, | |
| 396 | SoundId = "rbxassetid://" .. id, | |
| 397 | Parent = par or workspace, | |
| 398 | Name = "important", | |
| 399 | Looped = true | |
| 400 | } | |
| 401 | wait() | |
| 402 | S:play() | |
| 403 | game:GetService("Debris"):AddItem(S, 10)
| |
| 404 | end)) | |
| 405 | end; | |
| 406 | }; | |
| 407 | ||
| 408 | ParticleEmitter = {
| |
| 409 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 410 | local Particle = Create("ParticleEmitter"){
| |
| 411 | Parent = Parent, | |
| 412 | Color = ColorSequence.new(Color1, Color2), | |
| 413 | LightEmission = LightEmission, | |
| 414 | Size = Size, | |
| 415 | Texture = Texture, | |
| 416 | Transparency = Transparency, | |
| 417 | ZOffset = ZOffset, | |
| 418 | Acceleration = Accel, | |
| 419 | Drag = Drag, | |
| 420 | LockedToPart = LockedToPart, | |
| 421 | VelocityInheritance = VelocityInheritance, | |
| 422 | EmissionDirection = EmissionDirection, | |
| 423 | Enabled = Enabled, | |
| 424 | Lifetime = LifeTime, | |
| 425 | Rate = Rate, | |
| 426 | Rotation = Rotation, | |
| 427 | RotSpeed = RotSpeed, | |
| 428 | Speed = Speed, | |
| 429 | VelocitySpread = VelocitySpread, | |
| 430 | } | |
| 431 | return Particle | |
| 432 | end; | |
| 433 | }; | |
| 434 | ||
| 435 | CreateTemplate = {
| |
| 436 | ||
| 437 | }; | |
| 438 | } | |
| 439 | ||
| 440 | ||
| 441 | ||
| 442 | function RayCast(Position, Direction, Range, Ignore) | |
| 443 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 444 | end | |
| 445 | ||
| 446 | Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Handle",Vector3.new(0.779999912, 0.780000091, 0.750000238)) | |
| 447 | HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.33985698, 0.205783844, -0.0249519944, 0, -1, 0, -1, 0, 0, 0, 0, -1)) | |
| 448 | ||
| 449 | FHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Handle",Vector3.new(0.779999912, 0.780000091, 0.750000238)) | |
| 450 | FHandleWeld=CFuncs.Weld.Create(m,FHandle,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.33985698, 0.205783844, -0.0249519944, 0, -1, 0, -1, 0, 0, 0, 0, -1)) | |
| 451 | ||
| 452 | Glasses=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Institutional white","Glasses",Vector3.new(1.04999995, 1, 1)) | |
| 453 | GlassesWeld=CFuncs.Weld.Create(m,FHandle,Glasses,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.019271493, -0.20810318, 0.170232952, -1, -6.50000002e-05, 0, -6.50000002e-05, 1, 0, 0, 0, -1)) | |
| 454 | gl00ses=CFuncs.Mesh.Create("SpecialMesh",Glasses,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=22053998",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999))
| |
| 455 | gl00ses.TextureId = "http://www.roblox.com/asset/?id=38205002" | |
| 456 | ||
| 457 | ||
| 458 | FauxHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","FauxHandle",Vector3.new(0.779999912, 0.780000091, 0.750000238)) | |
| 459 | FauxHandleWeld=CFuncs.Weld.Create(workspace.CurrentCamera,Character["Head"],FauxHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00429534912, -0.0208046436, -0.0191295743, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
| 460 | FauxGlasses=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Institutional white","FauxGlasses",Vector3.new(1.04999995, 1, 1)) | |
| 461 | FauxGlassesWeld=CFuncs.Weld.Create(m,FauxHandle,FauxGlasses,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00775146484, -0.208105445, 0.170232952, -1, -6.50000002e-05, 0, -6.50000002e-05, 1, 0, 0, 0, -1)) | |
| 462 | gl00ses2=CFuncs.Mesh.Create("SpecialMesh",FauxGlasses,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=22053998",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999))
| |
| 463 | gl00ses2.TextureId = "http://www.roblox.com/asset/?id=38205002" | |
| 464 | ||
| 465 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 466 | function sandbox(var,func) | |
| 467 | local env = getfenv(func) | |
| 468 | local newenv = setmetatable({},{
| |
| 469 | __index = function(self,k) | |
| 470 | if k=="script" then | |
| 471 | return var | |
| 472 | else | |
| 473 | return env[k] | |
| 474 | end | |
| 475 | end, | |
| 476 | }) | |
| 477 | setfenv(func,newenv) | |
| 478 | return func | |
| 479 | end | |
| 480 | cors = {}
| |
| 481 | mas = Instance.new("Model",Camera)
| |
| 482 | Model0 = Instance.new("Model")
| |
| 483 | Part1 = Instance.new("Part")
| |
| 484 | Part2 = Instance.new("Part")
| |
| 485 | Part3 = Instance.new("Part")
| |
| 486 | Part4 = Instance.new("Part")
| |
| 487 | Part5 = Instance.new("Part")
| |
| 488 | Part6 = Instance.new("Part")
| |
| 489 | Part7 = Instance.new("Part")
| |
| 490 | Model0.Name = "Netherworld" | |
| 491 | Model0.Parent = mas | |
| 492 | Part1.Name = "Spart" | |
| 493 | Part1.Parent = Camera | |
| 494 | Part1.Material = Enum.Material.Neon | |
| 495 | Part1.Transparency = 1 | |
| 496 | Part1.Anchored = true | |
| 497 | Part1.CanCollide = false | |
| 498 | Part1.Size = Vector3.new(4, 1, 2) | |
| 499 | Part1.CFrame = CFrame.new(144.5, 1290.63574, 2.74698257, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 500 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 501 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 502 | Part1.Position = Vector3.new(144.5, 1290.63574, 2.74698257) | |
| 503 | Part2.Parent = Camera | |
| 504 | Part2.Material = Enum.Material.Neon | |
| 505 | Part2.BrickColor = BrickColor.new("Really black")
| |
| 506 | Part2.Transparency = 0.0099999997764826 | |
| 507 | Part2.Anchored = true | |
| 508 | Part2.Size = Vector3.new(233.790359, 1.15406489, 245.924103) | |
| 509 | Part2.CFrame = CFrame.new(130.757782, 1311.9447, 21.3496704, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 510 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 511 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 512 | Part2.Position = Vector3.new(130.757782, 1311.9447, 21.3496704) | |
| 513 | Part3.Parent = Camera | |
| 514 | Part3.Material = Enum.Material.Neon | |
| 515 | Part3.BrickColor = BrickColor.new("Really black")
| |
| 516 | Part3.Transparency = 0.0099999997764826 | |
| 517 | Part3.Rotation = Vector3.new(90, 90, 0) | |
| 518 | Part3.Anchored = true | |
| 519 | Part3.Size = Vector3.new(233.790359, 1.15406489, 233.317429) | |
| 520 | Part3.CFrame = CFrame.new(131.542297, 1193.58923, -99.4936905, 0, 0, 1, 1, 0, 0, 0, 1, 0) | |
| 521 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 522 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 523 | Part3.Position = Vector3.new(131.542297, 1193.58923, -99.4936905) | |
| 524 | Part3.Orientation = Vector3.new(0, 90, 90) | |
| 525 | Part4.Parent = Camera | |
| 526 | Part4.Material = Enum.Material.Neon | |
| 527 | Part4.BrickColor = BrickColor.new("Really black")
| |
| 528 | Part4.Transparency = 0.0099999997764826 | |
| 529 | Part4.Rotation = Vector3.new(0, 0, 90) | |
| 530 | Part4.Anchored = true | |
| 531 | Part4.Size = Vector3.new(232.420349, 1.15406489, 242.134125) | |
| 532 | Part4.CFrame = CFrame.new(246.358215, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1) | |
| 533 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 534 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 535 | Part4.Position = Vector3.new(246.358215, 1194.35278, 22.2144928) | |
| 536 | Part4.Orientation = Vector3.new(0, 0, 90) | |
| 537 | Part5.Parent = Camera | |
| 538 | Part5.Material = Enum.Material.Neon | |
| 539 | Part5.BrickColor = BrickColor.new("Really black")
| |
| 540 | Part5.Transparency = 0.0099999997764826 | |
| 541 | Part5.Rotation = Vector3.new(90, 90, 0) | |
| 542 | Part5.Anchored = true | |
| 543 | Part5.Size = Vector3.new(233.790359, 1.15406489, 233.317429) | |
| 544 | Part5.CFrame = CFrame.new(131.542297, 1193.58923, 143.942886, 0, 0, 1, 1, 0, 0, 0, 1, 0) | |
| 545 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 546 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 547 | Part5.Position = Vector3.new(131.542297, 1193.58923, 143.942886) | |
| 548 | Part5.Orientation = Vector3.new(0, 90, 90) | |
| 549 | Part6.Parent = Camera | |
| 550 | Part6.Material = Enum.Material.Neon | |
| 551 | Part6.BrickColor = BrickColor.new("Really black")
| |
| 552 | Part6.Transparency = 0.0099999997764826 | |
| 553 | Part6.Rotation = Vector3.new(0, 0, 90) | |
| 554 | Part6.Anchored = true | |
| 555 | Part6.Size = Vector3.new(232.420349, 1.15406489, 242.134125) | |
| 556 | Part6.CFrame = CFrame.new(18, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1) | |
| 557 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 558 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 559 | Part6.Orientation = Vector3.new(0, 0, 90) | |
| 560 | Part7.Parent = Camera | |
| 561 | Part7.Material = Enum.Material.Neon | |
| 562 | Part7.BrickColor = BrickColor.new("Really black")
| |
| 563 | Part7.Transparency = 0.0099999997764826 | |
| 564 | Part7.Anchored = true | |
| 565 | Part7.Size = Vector3.new(233.790359, 1.15406489, 244.754089) | |
| 566 | Part7.CFrame = CFrame.new(130.757782, 1077.43396, 20.7646637, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 567 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 568 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 569 | Part7.Position = Vector3.new(130.757782, 1077.43396, 20.7646637) | |
| 570 | for i,v in pairs(mas:GetChildren()) do | |
| 571 | v.Parent = workspace | |
| 572 | pcall(function() v:MakeJoints() end) | |
| 573 | end | |
| 574 | mas:Destroy() | |
| 575 | for i,v in pairs(cors) do | |
| 576 | spawn(function() | |
| 577 | pcall(v) | |
| 578 | end) | |
| 579 | end | |
| 580 | ||
| 581 | local houseBackup = mas:Clone() | |
| 582 | ||
| 583 | ||
| 584 | ||
| 585 | ||
| 586 | ||
| 587 | FindNearestTorso = function(pos) | |
| 588 | local list = (game.Workspace:children()) | |
| 589 | local torso = nil | |
| 590 | local dist = 1000 | |
| 591 | local temp, human, temp2 = nil, nil, nil | |
| 592 | for x = 1, #list do | |
| 593 | temp2 = list[x] | |
| 594 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 595 | temp = temp2:findFirstChild("Torso")
| |
| 596 | human = temp2:findFirstChild("Humanoid")
| |
| 597 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 598 | local dohit = true | |
| 599 | if dohit == true then | |
| 600 | torso = temp | |
| 601 | dist = (temp.Position - pos).magnitude | |
| 602 | end | |
| 603 | end | |
| 604 | end | |
| 605 | end | |
| 606 | return torso, dist | |
| 607 | end | |
| 608 | ||
| 609 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 610 | if hit.Parent == nil then | |
| 611 | return | |
| 612 | end | |
| 613 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 614 | for _, v in pairs(hit.Parent:children()) do | |
| 615 | if v:IsA("Humanoid") then
| |
| 616 | h = v | |
| 617 | end | |
| 618 | end | |
| 619 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 620 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 621 | if hit.Parent.DebounceHit.Value == true then | |
| 622 | return | |
| 623 | end | |
| 624 | end | |
| 625 | local c = Create("ObjectValue"){
| |
| 626 | Name = "creator", | |
| 627 | Value = game:service("Players").LocalPlayer,
| |
| 628 | Parent = h, | |
| 629 | } | |
| 630 | game:GetService("Debris"):AddItem(c, .5)
| |
| 631 | if HitSound ~= nil and HitPitch ~= nil then | |
| 632 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 633 | end | |
| 634 | local Damage = math.random(minim, maxim) | |
| 635 | local blocked = false | |
| 636 | local block = hit.Parent:findFirstChild("Block")
| |
| 637 | if block ~= nil then | |
| 638 | if block.className == "IntValue" then | |
| 639 | if block.Value > 0 then | |
| 640 | blocked = true | |
| 641 | block.Value = block.Value - 1 | |
| 642 | print(block.Value) | |
| 643 | end | |
| 644 | end | |
| 645 | end | |
| 646 | if blocked == false then | |
| 647 | h.Health = h.Health - Damage | |
| 648 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 649 | else | |
| 650 | h.Health = h.Health - (Damage / 2) | |
| 651 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 652 | end | |
| 653 | if Type == "Knockdown" then | |
| 654 | local hum = hit.Parent.Humanoid | |
| 655 | hum.PlatformStand = true | |
| 656 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 657 | swait(1) | |
| 658 | HHumanoid.PlatformStand = false | |
| 659 | end), hum) | |
| 660 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 661 | local bodvol = Create("BodyVelocity"){
| |
| 662 | velocity = angle * knockback, | |
| 663 | P = 5000, | |
| 664 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 665 | Parent = hit, | |
| 666 | } | |
| 667 | local rl = Create("BodyAngularVelocity"){
| |
| 668 | P = 3000, | |
| 669 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 670 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 671 | Parent = hit, | |
| 672 | } | |
| 673 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 674 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 675 | elseif Type == "Normal" then | |
| 676 | local vp = Create("BodyVelocity"){
| |
| 677 | P = 500, | |
| 678 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 679 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 680 | } | |
| 681 | if knockback > 0 then | |
| 682 | vp.Parent = hit.Parent.Torso | |
| 683 | end | |
| 684 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 685 | elseif Type == "Up" then | |
| 686 | local bodyVelocity = Create("BodyVelocity"){
| |
| 687 | velocity = Vector3.new(0, 20, 0), | |
| 688 | P = 5000, | |
| 689 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 690 | Parent = hit, | |
| 691 | } | |
| 692 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 693 | elseif Type == "DarkUp" then | |
| 694 | coroutine.resume(coroutine.create(function() | |
| 695 | for i = 0, 1, 0.1 do | |
| 696 | swait() | |
| 697 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 698 | end | |
| 699 | end)) | |
| 700 | local bodyVelocity = Create("BodyVelocity"){
| |
| 701 | velocity = Vector3.new(0, 20, 0), | |
| 702 | P = 5000, | |
| 703 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 704 | Parent = hit, | |
| 705 | } | |
| 706 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 707 | elseif Type == "Snare" then | |
| 708 | local bp = Create("BodyPosition"){
| |
| 709 | P = 2000, | |
| 710 | D = 100, | |
| 711 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 712 | position = hit.Parent.Torso.Position, | |
| 713 | Parent = hit.Parent.Torso, | |
| 714 | } | |
| 715 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 716 | elseif Type == "Freeze" then | |
| 717 | local BodPos = Create("BodyPosition"){
| |
| 718 | P = 50000, | |
| 719 | D = 1000, | |
| 720 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 721 | position = hit.Parent.Torso.Position, | |
| 722 | Parent = hit.Parent.Torso, | |
| 723 | } | |
| 724 | local BodGy = Create("BodyGyro") {
| |
| 725 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 726 | P = 20e+003, | |
| 727 | Parent = hit.Parent.Torso, | |
| 728 | cf = hit.Parent.Torso.CFrame, | |
| 729 | } | |
| 730 | hit.Parent.Torso.Anchored = true | |
| 731 | coroutine.resume(coroutine.create(function(Part) | |
| 732 | swait(1.5) | |
| 733 | Part.Anchored = false | |
| 734 | end), hit.Parent.Torso) | |
| 735 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 736 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 737 | end | |
| 738 | local debounce = Create("BoolValue"){
| |
| 739 | Name = "DebounceHit", | |
| 740 | Parent = hit.Parent, | |
| 741 | Value = true, | |
| 742 | } | |
| 743 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 744 | c = Create("ObjectValue"){
| |
| 745 | Name = "creator", | |
| 746 | Value = Player, | |
| 747 | Parent = h, | |
| 748 | } | |
| 749 | game:GetService("Debris"):AddItem(c, .5)
| |
| 750 | end | |
| 751 | end | |
| 752 | ||
| 753 | function ShowDamage(Pos, Text, Time, Color) | |
| 754 | local Rate = (1 / 30) | |
| 755 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 756 | local Text = (Text or "") | |
| 757 | local Time = (Time or 2) | |
| 758 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 759 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 760 | EffectPart.Anchored = true | |
| 761 | local BillboardGui = Create("BillboardGui"){
| |
| 762 | Size = UDim2.new(3, 0, 3, 0), | |
| 763 | Adornee = EffectPart, | |
| 764 | Parent = EffectPart, | |
| 765 | } | |
| 766 | local TextLabel = Create("TextLabel"){
| |
| 767 | BackgroundTransparency = 1, | |
| 768 | Size = UDim2.new(1, 0, 1, 0), | |
| 769 | Text = Text, | |
| 770 | Font = "SciFi", | |
| 771 | TextColor3 = Color, | |
| 772 | TextScaled = true, | |
| 773 | Parent = BillboardGui, | |
| 774 | } | |
| 775 | game.Debris:AddItem(EffectPart, (Time)) | |
| 776 | EffectPart.Parent = game:GetService("Workspace")
| |
| 777 | delay(0, function() | |
| 778 | local Frames = (Time / Rate) | |
| 779 | for Frame = 1, Frames do | |
| 780 | wait(Rate) | |
| 781 | local Percent = (Frame / Frames) | |
| 782 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 783 | TextLabel.TextTransparency = Percent | |
| 784 | end | |
| 785 | if EffectPart and EffectPart.Parent then | |
| 786 | EffectPart:Destroy() | |
| 787 | end | |
| 788 | end) | |
| 789 | end | |
| 790 | ||
| 791 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 792 | for _, c in pairs(workspace:children()) do | |
| 793 | local hum = c:findFirstChild("Humanoid")
| |
| 794 | if hum ~= nil then | |
| 795 | local head = c:findFirstChild("Torso")
| |
| 796 | if head ~= nil then | |
| 797 | local targ = head.Position - Part.Position | |
| 798 | local mag = targ.magnitude | |
| 799 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 800 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 801 | end | |
| 802 | end | |
| 803 | end | |
| 804 | end | |
| 805 | end | |
| 806 | ||
| 807 | EffectModel = Create("Model"){
| |
| 808 | Parent = Character, | |
| 809 | Name = "EffectModel", | |
| 810 | } | |
| 811 | ||
| 812 | Effects = {
| |
| 813 | Block = {
| |
| 814 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part) | |
| 815 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 816 | prt.Anchored = true | |
| 817 | prt.CFrame = cframe | |
| 818 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 819 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 820 | if Type == 1 or Type == nil then | |
| 821 | table.insert(Effects, {
| |
| 822 | prt, | |
| 823 | "Block1", | |
| 824 | delay, | |
| 825 | x3, | |
| 826 | y3, | |
| 827 | z3, | |
| 828 | msh | |
| 829 | }) | |
| 830 | elseif Type == 2 then | |
| 831 | table.insert(Effects, {
| |
| 832 | prt, | |
| 833 | "Block2", | |
| 834 | delay, | |
| 835 | x3, | |
| 836 | y3, | |
| 837 | z3, | |
| 838 | msh | |
| 839 | }) | |
| 840 | elseif Type == 3 then | |
| 841 | table.insert(Effects, {
| |
| 842 | prt, | |
| 843 | "Block3", | |
| 844 | delay, | |
| 845 | x3, | |
| 846 | y3, | |
| 847 | z3, | |
| 848 | msh, | |
| 849 | Part | |
| 850 | }) | |
| 851 | elseif Type == 4 then | |
| 852 | table.insert(Effects, {
| |
| 853 | prt, | |
| 854 | "Block2Fire", | |
| 855 | delay, | |
| 856 | x3, | |
| 857 | y3, | |
| 858 | z3, | |
| 859 | msh | |
| 860 | }) | |
| 861 | end | |
| 862 | end | |
| 863 | }; | |
| 864 | ||
| 865 | Sphere = {
| |
| 866 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent) | |
| 867 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 868 | prt.Anchored = true | |
| 869 | prt.CFrame = cframe | |
| 870 | if parent == nil then | |
| 871 | prt.Parent = workspace | |
| 872 | else | |
| 873 | prt.Parent = parent | |
| 874 | end | |
| 875 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 876 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 877 | table.insert(Effects, {
| |
| 878 | prt, | |
| 879 | "Cylinder", | |
| 880 | delay, | |
| 881 | x3, | |
| 882 | y3, | |
| 883 | z3, | |
| 884 | msh | |
| 885 | }) | |
| 886 | end | |
| 887 | }; | |
| 888 | ||
| 889 | Blood = {
| |
| 890 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 891 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 892 | prt.Anchored = true | |
| 893 | prt.CFrame = cframe | |
| 894 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 895 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 896 | table.insert(Effects, {
| |
| 897 | prt, | |
| 898 | "Blood", | |
| 899 | delay, | |
| 900 | x3, | |
| 901 | y3, | |
| 902 | z3, | |
| 903 | msh | |
| 904 | }) | |
| 905 | end | |
| 906 | }; | |
| 907 | ||
| 908 | Blast = {
| |
| 909 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part) | |
| 910 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 911 | prt.Anchored = true | |
| 912 | prt.CFrame = cframe | |
| 913 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 914 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 915 | table.insert(Effects, {
| |
| 916 | prt, | |
| 917 | "Block4", | |
| 918 | delay, | |
| 919 | x3, | |
| 920 | y3, | |
| 921 | z3, | |
| 922 | msh, | |
| 923 | Part | |
| 924 | }) | |
| 925 | end | |
| 926 | }; | |
| 927 | ||
| 928 | Ring = {
| |
| 929 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 930 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 931 | prt.Anchored = true | |
| 932 | prt.CFrame = cframe | |
| 933 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 934 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 935 | table.insert(Effects, {
| |
| 936 | prt, | |
| 937 | "Cylinder", | |
| 938 | delay, | |
| 939 | x3, | |
| 940 | y3, | |
| 941 | z3, | |
| 942 | msh | |
| 943 | }) | |
| 944 | end | |
| 945 | }; | |
| 946 | ||
| 947 | Cylinder = {
| |
| 948 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 949 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 950 | prt.Anchored = true | |
| 951 | prt.CFrame = cframe | |
| 952 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 953 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 954 | table.insert(Effects, {
| |
| 955 | prt, | |
| 956 | "Cylinder", | |
| 957 | delay, | |
| 958 | x3, | |
| 959 | y3, | |
| 960 | z3, | |
| 961 | msh | |
| 962 | }) | |
| 963 | end | |
| 964 | }; | |
| 965 | ||
| 966 | Head = {
| |
| 967 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 968 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 969 | prt.Anchored = true | |
| 970 | prt.CFrame = cframe | |
| 971 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 972 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 973 | table.insert(Effects, {
| |
| 974 | prt, | |
| 975 | "Cylinder", | |
| 976 | delay, | |
| 977 | x3, | |
| 978 | y3, | |
| 979 | z3, | |
| 980 | msh | |
| 981 | }) | |
| 982 | end | |
| 983 | }; | |
| 984 | ||
| 985 | Wave = {
| |
| 986 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 987 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 988 | prt.Anchored = true | |
| 989 | prt.CFrame = cframe | |
| 990 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 991 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 992 | table.insert(Effects, {
| |
| 993 | prt, | |
| 994 | "Cylinder", | |
| 995 | delay, | |
| 996 | x3, | |
| 997 | y3, | |
| 998 | z3, | |
| 999 | msh | |
| 1000 | }) | |
| 1001 | end | |
| 1002 | }; | |
| 1003 | ||
| 1004 | Break = {
| |
| 1005 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1006 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1007 | prt.Anchored = true | |
| 1008 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1009 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1010 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1011 | local num = math.random(10, 50) / 1000 | |
| 1012 | table.insert(Effects, {
| |
| 1013 | prt, | |
| 1014 | "Shatter", | |
| 1015 | num, | |
| 1016 | prt.CFrame, | |
| 1017 | math.random() - math.random(), | |
| 1018 | 0, | |
| 1019 | math.random(50, 100) / 100 | |
| 1020 | }) | |
| 1021 | end | |
| 1022 | }; | |
| 1023 | ||
| 1024 | Elec = {
| |
| 1025 | Create = function(brickcolor, cff, x, y, z) | |
| 1026 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
| 1027 | prt.Anchored = true | |
| 1028 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
| 1029 | prt.CFrame = CFrame.new(prt.Position) | |
| 1030 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1031 | xval = math.random() / 9 | |
| 1032 | yval = math.random() / 9 | |
| 1033 | zval = math.random() / 9 | |
| 1034 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 1035 | eul1 = math.random(-50, 50) | |
| 1036 | eul2 = math.random(-50, 50) | |
| 1037 | eul3 = math.random(-50, 50) | |
| 1038 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
| 1039 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
| 1040 | table.insert(Effects, {
| |
| 1041 | prt, | |
| 1042 | "Elec", | |
| 1043 | .05, | |
| 1044 | x, | |
| 1045 | y, | |
| 1046 | z, | |
| 1047 | xval, | |
| 1048 | yval, | |
| 1049 | zval, | |
| 1050 | msh, | |
| 1051 | euld, | |
| 1052 | euld2 | |
| 1053 | }) | |
| 1054 | end | |
| 1055 | }; | |
| 1056 | ||
| 1057 | Elec2 = {
| |
| 1058 | Create = function(brickcolor, cff, x, y, z) | |
| 1059 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
| 1060 | prt.Anchored = true | |
| 1061 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
| 1062 | prt.CFrame = CFrame.new(prt.Position) | |
| 1063 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1064 | xval = math.random() / 7 | |
| 1065 | yval = math.random() / 7 | |
| 1066 | zval = math.random() / 7 | |
| 1067 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 1068 | eul1 = math.random(-50, 50) | |
| 1069 | eul2 = math.random(-50, 50) | |
| 1070 | eul3 = math.random(-50, 50) | |
| 1071 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
| 1072 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
| 1073 | table.insert(Effects, {
| |
| 1074 | prt, | |
| 1075 | "Elec", | |
| 1076 | .1, | |
| 1077 | x, | |
| 1078 | y, | |
| 1079 | z, | |
| 1080 | xval, | |
| 1081 | yval, | |
| 1082 | zval, | |
| 1083 | msh, | |
| 1084 | euld, | |
| 1085 | euld2 | |
| 1086 | }) | |
| 1087 | end | |
| 1088 | }; | |
| 1089 | ||
| 1090 | Clone = {
| |
| 1091 | Create = function() | |
| 1092 | for _, v in pairs(Torso.Parent:children()) do | |
| 1093 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 1094 | local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
| |
| 1095 | c.Anchored = true | |
| 1096 | c.CFrame = v.CFrame | |
| 1097 | game:GetService("Debris"):AddItem(c, 5)
| |
| 1098 | local cmsh = nil | |
| 1099 | if v.Name == "Head" then | |
| 1100 | cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
| |
| 1101 | else | |
| 1102 | cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1103 | end | |
| 1104 | table.insert(Effects, {
| |
| 1105 | c, | |
| 1106 | "Cylinder", | |
| 1107 | 0.05, | |
| 1108 | 0.1, | |
| 1109 | 0.1, | |
| 1110 | 0.1, | |
| 1111 | cmsh | |
| 1112 | }) | |
| 1113 | end | |
| 1114 | end | |
| 1115 | end | |
| 1116 | }; | |
| 1117 | ||
| 1118 | EffectTemplate = {
| |
| 1119 | ||
| 1120 | }; | |
| 1121 | } | |
| 1122 | ||
| 1123 | --gross code | |
| 1124 | ||
| 1125 | demon1=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1126 | demon1.Anchored = false | |
| 1127 | local mbewm2 = Instance.new("SpecialMesh", demon1)
| |
| 1128 | mbewm2.MeshType = "Sphere" | |
| 1129 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1130 | demon1.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1131 | ||
| 1132 | demon2=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1133 | demon2.Anchored = false | |
| 1134 | local mbewm2 = Instance.new("SpecialMesh", demon2)
| |
| 1135 | mbewm2.MeshType = "Sphere" | |
| 1136 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1137 | demon2.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1138 | ||
| 1139 | demon2=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1140 | demon2.Anchored = false | |
| 1141 | local mbewm2 = Instance.new("SpecialMesh", demon2)
| |
| 1142 | mbewm2.MeshType = "Sphere" | |
| 1143 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1144 | demon2.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1145 | ||
| 1146 | demon3=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1147 | demon3.Anchored = false | |
| 1148 | local mbewm2 = Instance.new("SpecialMesh", demon3)
| |
| 1149 | mbewm2.MeshType = "Sphere" | |
| 1150 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1151 | demon3.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1152 | ||
| 1153 | demon4=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1154 | demon4.Anchored = false | |
| 1155 | local mbewm2 = Instance.new("SpecialMesh", demon4)
| |
| 1156 | mbewm2.MeshType = "Sphere" | |
| 1157 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1158 | demon4.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1159 | ||
| 1160 | demon5=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
| |
| 1161 | demon5.Anchored = false | |
| 1162 | local mbewm2 = Instance.new("SpecialMesh", demon5)
| |
| 1163 | mbewm2.MeshType = "Sphere" | |
| 1164 | mbewm2.Scale = Vector3.new(1,1,1) | |
| 1165 | demon5.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80)) | |
| 1166 | ||
| 1167 | whisper1 = Instance.new("Sound",demon1)
| |
| 1168 | whisper1.SoundId = "http://www.roblox.com/asset/?id=228797800" | |
| 1169 | whisper1.Looped = true | |
| 1170 | whisper1.Volume = .6 | |
| 1171 | whisper1.Name = "important" | |
| 1172 | whisper1:Play() | |
| 1173 | ||
| 1174 | ||
| 1175 | whisper2 = Instance.new("Sound",demon2)
| |
| 1176 | whisper2.SoundId = "http://www.roblox.com/asset/?id=228797800" | |
| 1177 | whisper2.Looped = true | |
| 1178 | whisper2.Volume = .6 | |
| 1179 | whisper2.Name = "important" | |
| 1180 | whisper2:Play() | |
| 1181 | ||
| 1182 | whisper3 = Instance.new("Sound",demon3)
| |
| 1183 | whisper3.SoundId = "http://www.roblox.com/asset/?id=228797800" | |
| 1184 | whisper3.Looped = true | |
| 1185 | whisper3.Volume = .6 | |
| 1186 | whisper3.Name = "important" | |
| 1187 | whisper3:Play() | |
| 1188 | ||
| 1189 | whisper4 = Instance.new("Sound",demon4)
| |
| 1190 | whisper4.SoundId = "http://www.roblox.com/asset/?id=228797800" | |
| 1191 | whisper4.Looped = true | |
| 1192 | whisper4.Volume = .6 | |
| 1193 | whisper4.Name = "important" | |
| 1194 | whisper4:Play() | |
| 1195 | ||
| 1196 | whisper5 = Instance.new("Sound",demon5)
| |
| 1197 | whisper5.SoundId = "http://www.roblox.com/asset/?id=228797800" | |
| 1198 | whisper5.Looped = true | |
| 1199 | whisper5.Volume = .6 | |
| 1200 | whisper5.Name = "important" | |
| 1201 | whisper5:Play() | |
| 1202 | ||
| 1203 | ||
| 1204 | bp1 = Instance.new("BodyPosition",demon1)
| |
| 1205 | bp1.P = 1500 | |
| 1206 | bp1.Position = demon1.Position | |
| 1207 | local roketsped = 0 | |
| 1208 | local spawnPosition = (demon1.CFrame).p | |
| 1209 | demon1.CFrame = CFrame.new(spawnPosition, Torso.Position) | |
| 1210 | demon1.Velocity = demon1.CFrame.lookVector * roketsped | |
| 1211 | local GRAVITY_ACCELERATION = 196.2 | |
| 1212 | bodyForce = Instance.new('BodyForce', demon1)
| |
| 1213 | bodyForce.Name = 'Antigravity' | |
| 1214 | bodyForce.force = Vector3.new(0, demon1:GetMass() * GRAVITY_ACCELERATION, 0) | |
| 1215 | ||
| 1216 | bp2 = Instance.new("BodyPosition",demon2)
| |
| 1217 | bp2.P = 1500 | |
| 1218 | bp2.Position = demon2.Position | |
| 1219 | local roketsped = 0 | |
| 1220 | local spawnPosition = (demon2.CFrame).p | |
| 1221 | demon2.CFrame = CFrame.new(spawnPosition, Torso.Position) | |
| 1222 | demon2.Velocity = demon1.CFrame.lookVector * roketsped | |
| 1223 | local GRAVITY_ACCELERATION = 196.2 | |
| 1224 | bodyForce = Instance.new('BodyForce', demon2)
| |
| 1225 | bodyForce.Name = 'Antigravity' | |
| 1226 | bodyForce.force = Vector3.new(0, demon2:GetMass() * GRAVITY_ACCELERATION, 0) | |
| 1227 | ||
| 1228 | bp3 = Instance.new("BodyPosition",demon3)
| |
| 1229 | bp3.P = 1500 | |
| 1230 | bp3.Position = demon3.Position | |
| 1231 | local roketsped = 0 | |
| 1232 | local spawnPosition = (demon3.CFrame).p | |
| 1233 | demon3.CFrame = CFrame.new(spawnPosition, Torso.Position) | |
| 1234 | demon3.Velocity = demon3.CFrame.lookVector * roketsped | |
| 1235 | local GRAVITY_ACCELERATION = 196.2 | |
| 1236 | bodyForce = Instance.new('BodyForce', demon3)
| |
| 1237 | bodyForce.Name = 'Antigravity' | |
| 1238 | bodyForce.force = Vector3.new(0, demon3:GetMass() * GRAVITY_ACCELERATION, 0) | |
| 1239 | ||
| 1240 | bp4 = Instance.new("BodyPosition",demon4)
| |
| 1241 | bp4.P = 1500 | |
| 1242 | bp4.Position = demon4.Position | |
| 1243 | local roketsped = 0 | |
| 1244 | local spawnPosition = (demon4.CFrame).p | |
| 1245 | demon4.CFrame = CFrame.new(spawnPosition, Torso.Position) | |
| 1246 | demon4.Velocity = demon4.CFrame.lookVector * roketsped | |
| 1247 | local GRAVITY_ACCELERATION = 196.2 | |
| 1248 | bodyForce = Instance.new('BodyForce', demon4)
| |
| 1249 | bodyForce.Name = 'Antigravity' | |
| 1250 | bodyForce.force = Vector3.new(0, demon4:GetMass() * GRAVITY_ACCELERATION, 0) | |
| 1251 | ||
| 1252 | bp5 = Instance.new("BodyPosition",demon5)
| |
| 1253 | bp5.P = 1500 | |
| 1254 | bp5.Position = demon5.Position | |
| 1255 | local roketsped = 0 | |
| 1256 | local spawnPosition = (demon5.CFrame).p | |
| 1257 | demon5.CFrame = CFrame.new(spawnPosition, Torso.Position) | |
| 1258 | demon5.Velocity = demon5.CFrame.lookVector * roketsped | |
| 1259 | local GRAVITY_ACCELERATION = 196.2 | |
| 1260 | bodyForce = Instance.new('BodyForce', demon5)
| |
| 1261 | bodyForce.Name = 'Antigravity' | |
| 1262 | bodyForce.force = Vector3.new(0, demon5:GetMass() * GRAVITY_ACCELERATION, 0) | |
| 1263 | ||
| 1264 | demon1.Name = "bad" | |
| 1265 | demon2.Name = "bad" | |
| 1266 | demon3.Name = "bad" | |
| 1267 | demon4.Name = "bad" | |
| 1268 | demon5.Name = "bad" | |
| 1269 | ||
| 1270 | local con1 = demon1.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
| |
| 1271 | RightArm.CanCollide = true end end) | |
| 1272 | ||
| 1273 | local con2 = demon2.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
| |
| 1274 | RightArm.CanCollide = true end end) | |
| 1275 | ||
| 1276 | local con3 = demon3.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
| |
| 1277 | RightArm.CanCollide = true end end) | |
| 1278 | ||
| 1279 | local con4 = demon4.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
| |
| 1280 | RightArm.CanCollide = true end end) | |
| 1281 | ||
| 1282 | local con4 = demon5.Touched:connect(function(hit)if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
| |
| 1283 | RightArm.CanCollide = true end end) | |
| 1284 | ||
| 1285 | ||
| 1286 | ||
| 1287 | local tp=CFuncs.Part.Create(Camera, "Glass", 0, .99, BrickColor.new("White"), "ref", Vector3.new(10000,1,10000))
| |
| 1288 | tp.CFrame = Torso.CFrame * CFrame.new(0,100,0) | |
| 1289 | tp.Anchored = true | |
| 1290 | ||
| 1291 | ||
| 1292 | ||
| 1293 | function glasseson() | |
| 1294 | Attack = true | |
| 1295 | Humanoid.WalkSpeed = 0 | |
| 1296 | Humanoid.JumpPower = 0 | |
| 1297 | tp=CFuncs.Part.Create(Torso, "Neon", 0, 1, BrickColor.new("Really black"), "ref", Vector3.new(1,1,1))
| |
| 1298 | tp.CFrame = Torso.CFrame | |
| 1299 | tp.Anchored = true | |
| 1300 | for i = 0, 1, 0.1 do | |
| 1301 | swait() | |
| 1302 | PlayAnimationFromTable({
| |
| 1303 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1304 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1305 | CFrame.new(1.21651638, 0.0496894419, -0.74465692, 0.939692616, 0.342020124, 1.00488698e-07, -0.219845921, 0.604022026, -0.766045153, -0.262002915, 0.719846964, 0.642786741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1306 | CFrame.new(-1.07138252, 0.0392258763, -0.822793722, 0.939692974, -0.342019349, 4.83909517e-08, 0.196173996, 0.538984954, -0.819152594, 0.280166, 0.769751906, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1307 | CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1308 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1309 | }, .3, false) | |
| 1310 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(350)), 1) | |
| 1311 | end | |
| 1312 | for i = 0, .5, 0.1 do | |
| 1313 | swait() | |
| 1314 | PlayAnimationFromTable({
| |
| 1315 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1316 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1317 | CFrame.new(1.33964431, 0.724650919, -0.651913106, 0.983905137, 0.0593908615, -0.16853331, -0.0901150107, -0.649520218, -0.754985332, -0.154305011, 0.758021295, -0.633714259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1318 | CFrame.new(-1.11699426, 0.573325932, -1.04379082, 0.925419092, -0.163175523, 0.342013717, 0.0509470068, -0.840772271, -0.538986504, 0.37550506, 0.516213, -0.769753337) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1319 | CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1320 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1321 | }, .3, false) | |
| 1322 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(360), math.rad(0)), 1) | |
| 1323 | end | |
| 1324 | local mosic2 = Instance.new("Sound",Torso)
| |
| 1325 | mosic2.SoundId = "http://www.roblox.com/asset/?id=406943544" | |
| 1326 | mosic2.Looped = true | |
| 1327 | mosic2.Volume = 1 | |
| 1328 | mosic2.Name = "important" | |
| 1329 | mosic2:Play() | |
| 1330 | local smonk = Instance.new("ParticleEmitter",Torso)
| |
| 1331 | smonk.LightEmission = .1 | |
| 1332 | smonk.Size = NumberSequence.new(0.2) | |
| 1333 | smonk.Texture = "http://www.roblox.com/asset/?ID=137243001" | |
| 1334 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
| |
| 1335 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1336 | smonk.Transparency = bbb | |
| 1337 | smonk.Size = aaa | |
| 1338 | smonk.ZOffset = 0 | |
| 1339 | smonk.Acceleration = Vector3.new(0, -5, 0) | |
| 1340 | smonk.LockedToPart = false | |
| 1341 | smonk.EmissionDirection = "Back" | |
| 1342 | smonk.Lifetime = NumberRange.new(.1, .5) | |
| 1343 | smonk.Rate = 1000 | |
| 1344 | smonk.Rotation = NumberRange.new(-100, 100) | |
| 1345 | smonk.RotSpeed = NumberRange.new(-100, 100) | |
| 1346 | smonk.Speed = NumberRange.new(4) | |
| 1347 | smonk.VelocitySpread = 100 | |
| 1348 | smonk.Enabled=true | |
| 1349 | CFuncs.Sound.Create(177359995, Head, 1, 1) | |
| 1350 | Player.CameraMode = Enum.CameraMode.LockFirstPerson | |
| 1351 | for i = 0, 5, 0.1 do | |
| 1352 | swait() | |
| 1353 | PlayAnimationFromTable({
| |
| 1354 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1355 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1356 | CFrame.new(1.35316098, 0.789045751, -0.264938205, 0.998222768, 0.053874854, -0.025473481, 0.0423549898, -0.94208312, -0.332694232, -0.0419219881, 0.331024021, -0.942690611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1357 | CFrame.new(-1.25144863, 0.784832895, -0.439222217, 0.974767983, -0.0652274415, 0.213477939, -0.0166469999, -0.974933088, -0.221875042, 0.222599, 0.212722927, -0.951419353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1358 | CFrame.new(0.692465484, -1.98315263, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1359 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1360 | }, .3, false) | |
| 1361 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1.3, -.8, .35) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)), 1) | |
| 1362 | end | |
| 1363 | glasses = true | |
| 1364 | LeftArm.Parent = workspace | |
| 1365 | RightArm.Parent = workspace | |
| 1366 | LeftArm.CanCollide = false | |
| 1367 | RightArm.CanCollide = false | |
| 1368 | CFuncs.Sound.Create(263609923, Head, 1, 1) | |
| 1369 | smonk:Destroy() | |
| 1370 | Humanoid.WalkSpeed = 10 | |
| 1371 | Humanoid.JumpPower = 50 | |
| 1372 | mosic2:Destroy() | |
| 1373 | FauxGlasses.Transparency = 0 | |
| 1374 | Glasses.Transparency = 1 | |
| 1375 | Attack = false | |
| 1376 | end | |
| 1377 | ||
| 1378 | ||
| 1379 | function glassesoff() | |
| 1380 | Attack = true | |
| 1381 | Humanoid.WalkSpeed = 0 | |
| 1382 | Humanoid.JumpPower = 0 | |
| 1383 | Glasses.Parent = workspace | |
| 1384 | for i = 0, 1, 0.1 do | |
| 1385 | swait() | |
| 1386 | PlayAnimationFromTable({
| |
| 1387 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1388 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1389 | CFrame.new(1.35316098, 0.789045751, -0.264938205, 0.998222768, 0.053874854, -0.025473481, 0.0423549898, -0.94208312, -0.332694232, -0.0419219881, 0.331024021, -0.942690611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1390 | CFrame.new(-1.25144863, 0.784832895, -0.439222217, 0.974767983, -0.0652274415, 0.213477939, -0.0166469999, -0.974933088, -0.221875042, 0.222599, 0.212722927, -0.951419353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1391 | CFrame.new(0.692465484, -1.98315263, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1392 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1393 | }, .3, false) | |
| 1394 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1.3, -.8, .35) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)), 1) | |
| 1395 | end | |
| 1396 | FauxGlasses.Transparency = 1 | |
| 1397 | Glasses.Transparency = 0 | |
| 1398 | for i = 0, .5, 0.1 do | |
| 1399 | swait() | |
| 1400 | PlayAnimationFromTable({
| |
| 1401 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1402 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1403 | CFrame.new(1.33964431, 0.724650919, -0.651913106, 0.983905137, 0.0593908615, -0.16853331, -0.0901150107, -0.649520218, -0.754985332, -0.154305011, 0.758021295, -0.633714259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1404 | CFrame.new(-1.11699426, 0.573325932, -1.04379082, 0.925419092, -0.163175523, 0.342013717, 0.0509470068, -0.840772271, -0.538986504, 0.37550506, 0.516213, -0.769753337) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1405 | CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1406 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1407 | }, .3, false) | |
| 1408 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(360), math.rad(0)), 1) | |
| 1409 | end | |
| 1410 | ||
| 1411 | for i = 0, .5, 0.1 do | |
| 1412 | swait() | |
| 1413 | PlayAnimationFromTable({
| |
| 1414 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1415 | CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1416 | CFrame.new(1.21651638, 0.0496894419, -0.74465692, 0.939692616, 0.342020124, 1.00488698e-07, -0.219845921, 0.604022026, -0.766045153, -0.262002915, 0.719846964, 0.642786741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1417 | CFrame.new(-1.07138252, 0.0392258763, -0.822793722, 0.939692974, -0.342019349, 4.83909517e-08, 0.196173996, 0.538984954, -0.819152594, 0.280166, 0.769751906, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1418 | CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1419 | CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1420 | }, .3, false) | |
| 1421 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(350)), 1) | |
| 1422 | end | |
| 1423 | glasses = false | |
| 1424 | Player.CameraMode = Enum.CameraMode.Classic | |
| 1425 | Glasses.Parent = m | |
| 1426 | Humanoid.WalkSpeed = 10 | |
| 1427 | Humanoid.JumpPower = 50 | |
| 1428 | Attack = false | |
| 1429 | end | |
| 1430 | ||
| 1431 | ||
| 1432 | ||
| 1433 | ||
| 1434 | glasses = false | |
| 1435 | ||
| 1436 | Mouse.KeyDown:connect(function(Key) | |
| 1437 | Key = Key:lower() | |
| 1438 | if Attack == false and Key == 'f' and glasses == false then | |
| 1439 | glasseson() | |
| 1440 | RootPart.CFrame = Part1.CFrame | |
| 1441 | mosic = Instance.new("Sound",Player.PlayerGui)
| |
| 1442 | mosic.SoundId = "http://www.roblox.com/asset/?id=406943544" | |
| 1443 | mosic.Looped = true | |
| 1444 | mosic.Volume = 1 | |
| 1445 | mosic.Name = "important" | |
| 1446 | mosic:Play() | |
| 1447 | elseif Attack == false and Key == 'f' and glasses == true then | |
| 1448 | glassesoff() | |
| 1449 | Character.Parent = workspace | |
| 1450 | LeftArm.Parent = Character | |
| 1451 | RightArm.Parent = Character | |
| 1452 | RootPart.CFrame = tp.CFrame | |
| 1453 | CFuncs.Sound.Create("263609898", Head, 1, 1)
| |
| 1454 | mosic:Destroy() | |
| 1455 | tp:Destroy() | |
| 1456 | end | |
| 1457 | end) | |
| 1458 | ||
| 1459 | ||
| 1460 | ||
| 1461 | ||
| 1462 | ||
| 1463 | ||
| 1464 | ||
| 1465 | ||
| 1466 | ||
| 1467 | ||
| 1468 | ||
| 1469 | ||
| 1470 | ||
| 1471 | while true do | |
| 1472 | swait() | |
| 1473 | for i, v in pairs(Character:GetChildren()) do | |
| 1474 | if v:IsA("Part") then
| |
| 1475 | v.Material = "SmoothPlastic" | |
| 1476 | elseif v:IsA("Accessory") then
| |
| 1477 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1478 | end | |
| 1479 | end | |
| 1480 | for i, v in pairs(Character:GetChildren()) do | |
| 1481 | if v:IsA'Model' then | |
| 1482 | for _, c in pairs(v:GetChildren()) do | |
| 1483 | if c:IsA'Part' then | |
| 1484 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 1485 | end | |
| 1486 | end | |
| 1487 | end | |
| 1488 | end | |
| 1489 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1490 | Velocity = RootPart.Velocity.y | |
| 1491 | Sine = Sine + Change | |
| 1492 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1493 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1494 | Anim = "Jump" | |
| 1495 | if Attack == false then | |
| 1496 | Change = 1 | |
| 1497 | PlayAnimationFromTable({
| |
| 1498 | CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1499 | CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1500 | CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1501 | CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1502 | CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1503 | CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1504 | }, .3, false) | |
| 1505 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3) | |
| 1506 | end | |
| 1507 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1508 | Anim = "Fall" | |
| 1509 | if Attack == false then | |
| 1510 | Change = 1 | |
| 1511 | PlayAnimationFromTable({
| |
| 1512 | CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1513 | CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1514 | CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1515 | CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1516 | CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1517 | CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1518 | }, .3, false) | |
| 1519 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3) | |
| 1520 | end | |
| 1521 | elseif TorsoVelocity < 1 and hit ~= nil then | |
| 1522 | Anim = "Idle" | |
| 1523 | if Attack == false then | |
| 1524 | Change = 1 | |
| 1525 | PlayAnimationFromTable({
| |
| 1526 | CFrame.new(-0, -0, 0, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1527 | CFrame.new(1.34110451e-07, 1.49998593, -1.49011612e-07, 0.76604414, 0.0560228154, -0.640341997, 0, 0.996194661, 0.087155968, 0.642788053, -0.0667653158, 0.763129056) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .02 * math.cos(Sine/15), 0, 0), | |
| 1528 | CFrame.new(1.62554669, 0.0800072104, -0.00825580303, 0.98480773, -0.173648, 4.47034836e-07, 0.173647985, 0.984807849, -5.96214491e-08, -4.76837158e-07, 1.34110451e-07, 1.00000012) * CFrame.new(0, 0 + .02 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0 - .03 * math.cos(Sine/15)), | |
| 1529 | CFrame.new(-1.61308134, 0.0621920712, 0.0519417189, 0.98480773, 0.173648, 4.47034836e-07, -0.173647985, 0.984807849, 5.96214491e-08, -4.76837158e-07, -1.34110451e-07, 1.00000012) * CFrame.new(0, 0 + .02 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0 + .03 * math.cos(Sine/15)), | |
| 1530 | CFrame.new(0.651529193, -1.96177566, 0.0285208113, 0.996194839, -0.0871560052, -1.49011612e-07, 0.0871560052, 0.996194661, 1.05878144e-06, 0, -1.06170774e-06, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1531 | CFrame.new(-0.481398791, -1.99999607, -0.035370484, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), | |
| 1532 | }, .3, false) | |
| 1533 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3) | |
| 1534 | end | |
| 1535 | elseif TorsoVelocity > 2 and hit ~= nil then | |
| 1536 | Anim = "Walk" | |
| 1537 | if Attack == false then | |
| 1538 | PlayAnimationFromTable({
| |
| 1539 | CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0), | |
| 1540 | CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1541 | CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0), | |
| 1542 | CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0), | |
| 1543 | CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)), | |
| 1544 | CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false) | |
| 1545 | FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3) | |
| 1546 | end | |
| 1547 | end | |
| 1548 | if #Effects > 0 then | |
| 1549 | for e = 1, #Effects do | |
| 1550 | if Effects[e] ~= nil then | |
| 1551 | local Thing = Effects[e] | |
| 1552 | if Thing ~= nil then | |
| 1553 | local Part = Thing[1] | |
| 1554 | local Mode = Thing[2] | |
| 1555 | local Delay = Thing[3] | |
| 1556 | local IncX = Thing[4] | |
| 1557 | local IncY = Thing[5] | |
| 1558 | if Thing[1].Transparency <= 1 then | |
| 1559 | if Thing[2] == "Block1" then | |
| 1560 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1561 | Mesh = Thing[7] | |
| 1562 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1563 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1564 | elseif Thing[2] == "Ice" then | |
| 1565 | if Thing[6] <= Thing[5] then | |
| 1566 | Thing[6] = Thing[6] + .05 | |
| 1567 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
| 1568 | else | |
| 1569 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1570 | end | |
| 1571 | elseif Thing[2] == "Shatter" then | |
| 1572 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1573 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1574 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1575 | Thing[6] = Thing[6] + Thing[5] | |
| 1576 | elseif Thing[2] == "Block2" then | |
| 1577 | Thing[1].CFrame = Thing[1].CFrame | |
| 1578 | Mesh = Thing[7] | |
| 1579 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1580 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1581 | elseif Thing[2] == "Block3" then | |
| 1582 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1583 | Mesh = Thing[7] | |
| 1584 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1585 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1586 | elseif Thing[2] == "Block4" then | |
| 1587 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
| 1588 | Mesh = Thing[7] | |
| 1589 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1590 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1591 | elseif Thing[2] == "Block2Fire" then | |
| 1592 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1593 | Mesh = Thing[7] | |
| 1594 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1595 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1596 | if Thing[1].Transparency >= .3 then | |
| 1597 | Thing[1].BrickColor = BrickColor.new("Bright red")
| |
| 1598 | else | |
| 1599 | Thing[1].BrickColor = BrickColor.new("Bright yellow")
| |
| 1600 | end | |
| 1601 | elseif Thing[2] == "Cylinder" then | |
| 1602 | Mesh = Thing[7] | |
| 1603 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1604 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1605 | elseif Thing[2] == "Blood" then | |
| 1606 | Mesh = Thing[7] | |
| 1607 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
| 1608 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1609 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1610 | elseif Thing[2] == "Elec" then | |
| 1611 | Mesh = Thing[10] | |
| 1612 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1613 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1614 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
| 1615 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
| 1616 | elseif Thing[2] == "Disappear" then | |
| 1617 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1618 | end | |
| 1619 | else | |
| 1620 | Part.Parent = nil | |
| 1621 | table.remove(Effects, e) | |
| 1622 | end | |
| 1623 | end | |
| 1624 | end | |
| 1625 | end | |
| 1626 | end | |
| 1627 | soundbork(Character) | |
| 1628 | Humanoid.Health = math.huge | |
| 1629 | if glasses == true then | |
| 1630 | bp1.Position = Torso.Position | |
| 1631 | bp2.Position = Torso.Position | |
| 1632 | bp3.Position = Torso.Position | |
| 1633 | bp4.Position = Torso.Position | |
| 1634 | bp5.Position = Torso.Position | |
| 1635 | end | |
| 1636 | ||
| 1637 | if glasses == false then | |
| 1638 | bp1.Position = demon1.Position | |
| 1639 | bp2.Position = demon2.Position | |
| 1640 | bp3.Position = demon3.Position | |
| 1641 | bp4.Position = demon4.Position | |
| 1642 | bp5.Position = demon5.Position | |
| 1643 | end | |
| 1644 | ||
| 1645 | if not Part1 then | |
| 1646 | function sandbox(var,func) | |
| 1647 | local env = getfenv(func) | |
| 1648 | local newenv = setmetatable({},{
| |
| 1649 | __index = function(self,k) | |
| 1650 | if k=="script" then | |
| 1651 | return var | |
| 1652 | else | |
| 1653 | return env[k] | |
| 1654 | end | |
| 1655 | end, | |
| 1656 | }) | |
| 1657 | setfenv(func,newenv) | |
| 1658 | return func | |
| 1659 | end | |
| 1660 | cors = {}
| |
| 1661 | mas = Instance.new("Model",Camera)
| |
| 1662 | Model0 = Instance.new("Model")
| |
| 1663 | Part1 = Instance.new("Part")
| |
| 1664 | Part2 = Instance.new("Part")
| |
| 1665 | Part3 = Instance.new("Part")
| |
| 1666 | Part4 = Instance.new("Part")
| |
| 1667 | Part5 = Instance.new("Part")
| |
| 1668 | Part6 = Instance.new("Part")
| |
| 1669 | Part7 = Instance.new("Part")
| |
| 1670 | Model0.Name = "Netherworld" | |
| 1671 | Model0.Parent = mas | |
| 1672 | Part1.Name = "Spart" | |
| 1673 | Part1.Parent = Model0 | |
| 1674 | Part1.Material = Enum.Material.Neon | |
| 1675 | Part1.Transparency = 1 | |
| 1676 | Part1.Anchored = true | |
| 1677 | Part1.CanCollide = false | |
| 1678 | Part1.Size = Vector3.new(4, 1, 2) | |
| 1679 | Part1.CFrame = CFrame.new(144.5, 1290.63574, 2.74698257, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1680 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 1681 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 1682 | Part1.Position = Vector3.new(144.5, 1290.63574, 2.74698257) | |
| 1683 | Part2.Parent = Model0 | |
| 1684 | Part2.Material = Enum.Material.Neon | |
| 1685 | Part2.BrickColor = BrickColor.new("Really black")
| |
| 1686 | Part2.Transparency = 0.0099999997764826 | |
| 1687 | Part2.Anchored = true | |
| 1688 | Part2.Size = Vector3.new(233.790359, 1.15406489, 245.924103) | |
| 1689 | Part2.CFrame = CFrame.new(130.757782, 1311.9447, 21.3496704, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1690 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 1691 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 1692 | Part2.Position = Vector3.new(130.757782, 1311.9447, 21.3496704) | |
| 1693 | Part3.Parent = Model0 | |
| 1694 | Part3.Material = Enum.Material.Neon | |
| 1695 | Part3.BrickColor = BrickColor.new("Really black")
| |
| 1696 | Part3.Transparency = 0.0099999997764826 | |
| 1697 | Part3.Rotation = Vector3.new(90, 90, 0) | |
| 1698 | Part3.Anchored = true | |
| 1699 | Part3.Size = Vector3.new(233.790359, 1.15406489, 233.317429) | |
| 1700 | Part3.CFrame = CFrame.new(131.542297, 1193.58923, -99.4936905, 0, 0, 1, 1, 0, 0, 0, 1, 0) | |
| 1701 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 1702 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 1703 | Part3.Position = Vector3.new(131.542297, 1193.58923, -99.4936905) | |
| 1704 | Part3.Orientation = Vector3.new(0, 90, 90) | |
| 1705 | Part4.Parent = Model0 | |
| 1706 | Part4.Material = Enum.Material.Neon | |
| 1707 | Part4.BrickColor = BrickColor.new("Really black")
| |
| 1708 | Part4.Transparency = 0.0099999997764826 | |
| 1709 | Part4.Rotation = Vector3.new(0, 0, 90) | |
| 1710 | Part4.Anchored = true | |
| 1711 | Part4.Size = Vector3.new(232.420349, 1.15406489, 242.134125) | |
| 1712 | Part4.CFrame = CFrame.new(246.358215, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1) | |
| 1713 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 1714 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 1715 | Part4.Position = Vector3.new(246.358215, 1194.35278, 22.2144928) | |
| 1716 | Part4.Orientation = Vector3.new(0, 0, 90) | |
| 1717 | Part5.Parent = Model0 | |
| 1718 | Part5.Material = Enum.Material.Neon | |
| 1719 | Part5.BrickColor = BrickColor.new("Really black")
| |
| 1720 | Part5.Transparency = 0.0099999997764826 | |
| 1721 | Part5.Rotation = Vector3.new(90, 90, 0) | |
| 1722 | Part5.Anchored = true | |
| 1723 | Part5.Size = Vector3.new(233.790359, 1.15406489, 233.317429) | |
| 1724 | Part5.CFrame = CFrame.new(131.542297, 1193.58923, 143.942886, 0, 0, 1, 1, 0, 0, 0, 1, 0) | |
| 1725 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 1726 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 1727 | Part5.Position = Vector3.new(131.542297, 1193.58923, 143.942886) | |
| 1728 | Part5.Orientation = Vector3.new(0, 90, 90) | |
| 1729 | Part6.Parent = Model0 | |
| 1730 | Part6.Material = Enum.Material.Neon | |
| 1731 | Part6.BrickColor = BrickColor.new("Really black")
| |
| 1732 | Part6.Transparency = 0.0099999997764826 | |
| 1733 | Part6.Rotation = Vector3.new(0, 0, 90) | |
| 1734 | Part6.Anchored = true | |
| 1735 | Part6.Size = Vector3.new(232.420349, 1.15406489, 242.134125) | |
| 1736 | Part6.CFrame = CFrame.new(18, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1) | |
| 1737 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 1738 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 1739 | Part6.Orientation = Vector3.new(0, 0, 90) | |
| 1740 | Part7.Parent = Model0 | |
| 1741 | Part7.Material = Enum.Material.Neon | |
| 1742 | Part7.BrickColor = BrickColor.new("Really black")
| |
| 1743 | Part7.Transparency = 0.0099999997764826 | |
| 1744 | Part7.Anchored = true | |
| 1745 | Part7.Size = Vector3.new(233.790359, 1.15406489, 244.754089) | |
| 1746 | Part7.CFrame = CFrame.new(130.757782, 1077.43396, 20.7646637, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1747 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 1748 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 1749 | Part7.Position = Vector3.new(130.757782, 1077.43396, 20.7646637) | |
| 1750 | for i,v in pairs(mas:GetChildren()) do | |
| 1751 | v.Parent = workspace | |
| 1752 | pcall(function() v:MakeJoints() end) | |
| 1753 | end | |
| 1754 | mas:Destroy() | |
| 1755 | for i,v in pairs(cors) do | |
| 1756 | spawn(function() | |
| 1757 | pcall(v) | |
| 1758 | end) | |
| 1759 | end | |
| 1760 | end | |
| 1761 | end |