SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | local h,t | |
| 87 | --Give the server mouse data every second frame, but only if the values changed | |
| 88 | --If player is not moving their mouse, client won't fire events | |
| 89 | local HB = game:GetService("RunService").Heartbeat
| |
| 90 | while true do | |
| 91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 92 | h,t=Mouse.Hit,Mouse.Target | |
| 93 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 94 | end | |
| 95 | --Wait 2 frames | |
| 96 | for i=1,2 do | |
| 97 | HB:Wait() | |
| 98 | end | |
| 99 | end]==],script) | |
| 100 | ||
| 101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 102 | --Real game object | |
| 103 | local RealGame = game | |
| 104 | ||
| 105 | --Metatable for fake service | |
| 106 | local FakeService_Metatable = {
| |
| 107 | __index = function(self,k) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then | |
| 110 | return typeof(s[k])=="function" | |
| 111 | and function(_,...)return s[k](s,...)end or s[k] | |
| 112 | end | |
| 113 | end, | |
| 114 | __newindex = function(self,k,v) | |
| 115 | local s = rawget(self,"_RealService") | |
| 116 | if s then s[k]=v end | |
| 117 | end | |
| 118 | } | |
| 119 | local function FakeService(t,RealService) | |
| 120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 121 | return setmetatable(t,FakeService_Metatable) | |
| 122 | end | |
| 123 | ||
| 124 | --Fake game object | |
| 125 | local FakeGame = {
| |
| 126 | GetService = function(self,s) | |
| 127 | return rawget(self,s) or RealGame:GetService(s) | |
| 128 | end, | |
| 129 | Players = FakeService({
| |
| 130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 131 | },"Players"), | |
| 132 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 134 | RunService = FakeService({
| |
| 135 | _btrs = {},
| |
| 136 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 137 | BindToRenderStep = function(self,name,_,fun) | |
| 138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 139 | end, | |
| 140 | UnbindFromRenderStep = function(self,name) | |
| 141 | self._btrs[name]:Disconnect() | |
| 142 | end, | |
| 143 | },"RunService") | |
| 144 | } | |
| 145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 146 | FakeGame.service = FakeGame.GetService | |
| 147 | FakeService(FakeGame,game) | |
| 148 | --Changing owner to fake player object to support owner:GetMouse() | |
| 149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 150 | end | |
| 151 | ||
| 152 | --coolallball | |
| 153 | HoldE=false | |
| 154 | Tool=script.Parent | |
| 155 | Equipped=false | |
| 156 | Player=game.Players.LocalPlayer | |
| 157 | repeat | |
| 158 | wait() | |
| 159 | until Player | |
| 160 | Character=Player.Character | |
| 161 | repeat | |
| 162 | wait() | |
| 163 | until Character | |
| 164 | Mouse=Player:GetMouse() | |
| 165 | Torso=Character.Torso | |
| 166 | RArm=Character["Right Arm"] | |
| 167 | LArm=Character["Left Arm"] | |
| 168 | RLeg=Character["Right Leg"] | |
| 169 | LLeg=Character["Left Leg"] | |
| 170 | LS=Torso["Left Shoulder"] | |
| 171 | LH=Torso["Left Hip"] | |
| 172 | RS=Torso["Right Shoulder"] | |
| 173 | RH=Torso["Right Hip"] | |
| 174 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 175 | LHC0=CFrame.new(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 176 | LSC0=CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 177 | RHC0=CFrame.new(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 178 | RSC0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 179 | ROOTC0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 180 | Neck=Character.Torso.Neck | |
| 181 | Human=Character:FindFirstChild("Humanoid")
| |
| 182 | h=game:service'RunService'.Heartbeat | |
| 183 | local camera = workspace.CurrentCamera | |
| 184 | Debounce=false | |
| 185 | world=false | |
| 186 | function part(parent,anchored,collide,size,cframe,bcol,material,trans,meshtype,meshscale) | |
| 187 | local partt = Instance.new("Part",parent)
| |
| 188 | partt.Anchored = anchored | |
| 189 | partt.CanCollide = collide | |
| 190 | partt.Size = size | |
| 191 | partt.CFrame = cframe | |
| 192 | partt.BrickColor = BrickColor.new(bcol) | |
| 193 | partt.Material = material | |
| 194 | partt.Transparency = trans | |
| 195 | if meshtype then | |
| 196 | local mesh = Instance.new("SpecialMesh", partt)
| |
| 197 | mesh.MeshType = meshtype | |
| 198 | mesh.Scale = meshscale | |
| 199 | end | |
| 200 | return partt | |
| 201 | end | |
| 202 | function BloodSpurt(parent,cframe) | |
| 203 | for i=1,5 do | |
| 204 | spawn(function() | |
| 205 | local bl=Instance.new("Part",parent)
| |
| 206 | bl.Size=Vector3.new(0,0,0) | |
| 207 | bl.BrickColor=BrickColor.new("Really red")
| |
| 208 | bl.Anchored=true | |
| 209 | bl.CanCollide=false | |
| 210 | bl.CFrame=cframe | |
| 211 | ||
| 212 | local bp=Instance.new("BodyPosition")
| |
| 213 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 214 | bp.Position=bl.Position+Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 215 | bl.Anchored=false | |
| 216 | bp.Parent=bl | |
| 217 | wait() | |
| 218 | bp.Parent=nil | |
| 219 | end) | |
| 220 | end | |
| 221 | end | |
| 222 | Human.MaxHealth=math.huge | |
| 223 | knifeS=Instance.new("Sound",Character)
| |
| 224 | knifeS.SoundId="rbxassetid://616593932" | |
| 225 | knifeS.Volume=2 | |
| 226 | ZWRDO=Instance.new("Sound",Character)
| |
| 227 | ZWRDO.SoundId="rbxassetid://188959431" | |
| 228 | ZWRDO.Volume=.2 | |
| 229 | ||
| 230 | Mouse.KeyDown:connect(function(Key) | |
| 231 | if Key=="p" and Debounce==false and world==false then | |
| 232 | Debounce=true | |
| 233 | print("ZA WARUDO")
| |
| 234 | print("TOKI YO TOMARE")
| |
| 235 | local ZA=Instance.new("Sound",Character)
| |
| 236 | ZA.SoundId="rbxassetid://274698941" | |
| 237 | ZA:Play() | |
| 238 | ZA.Volume=4 | |
| 239 | ZWRDO:Play() | |
| 240 | Human.WalkSpeed=0 | |
| 241 | spawn(function() | |
| 242 | for i=1,100 do | |
| 243 | RS.C0=RS.C0*CFrame.Angles(math.rad(0),math.rad(-.4),math.rad(.9)) | |
| 244 | LS.C0=LS.C0*CFrame.Angles(math.rad(0),math.rad(.4),math.rad(-.9)) | |
| 245 | Neck.C0=Neck.C0*CFrame.Angles(math.rad(-.1),math.rad(0),math.rad(0)) | |
| 246 | h:wait() | |
| 247 | end | |
| 248 | end) | |
| 249 | --[[RS.C0=RS.C0*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(90)) | |
| 250 | LS.C0=LS.C0*CFrame.Angles(math.rad(0),math.rad(40),math.rad(-90)) | |
| 251 | Neck.C0=Neck.C0*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0))]] | |
| 252 | local sphere=Instance.new("Part",Character)
| |
| 253 | sphere.Anchored=true | |
| 254 | sphere.CanCollide=false | |
| 255 | sphere.CFrame=Torso.CFrame | |
| 256 | sphere.Size=Vector3.new(1,1,1) | |
| 257 | sphere.TopSurface=0 | |
| 258 | sphere.BottomSurface=0 | |
| 259 | sphere.Reflectance=.5 | |
| 260 | sphere.Transparency=1 | |
| 261 | sphere.BrickColor=BrickColor.new("Lapis")
| |
| 262 | local ball=Instance.new("SpecialMesh",sphere)
| |
| 263 | ball.MeshType="Sphere" | |
| 264 | ball.Scale=Vector3.new(4,4,4) | |
| 265 | wait(2) | |
| 266 | sphere.Transparency=0 | |
| 267 | spawn(function() | |
| 268 | for i=1,50 do | |
| 269 | ball.Scale=ball.Scale+Vector3.new(10,10,10) | |
| 270 | sphere.Transparency=i/50 | |
| 271 | h:wait() | |
| 272 | end | |
| 273 | sphere.BrickColor=BrickColor.new("New Yeller")
| |
| 274 | wait(.3) | |
| 275 | for i=1,25 do | |
| 276 | ball.Scale=ball.Scale-Vector3.new(20,20,20) | |
| 277 | sphere.Transparency=-i/25 | |
| 278 | h:wait() | |
| 279 | end | |
| 280 | sphere:Destroy() | |
| 281 | ball:Destroy() | |
| 282 | Human.WalkSpeed=16 | |
| 283 | end) | |
| 284 | ||
| 285 | AnchoredObjects={}
| |
| 286 | for i, v in pairs(workspace:GetChildren()) do | |
| 287 | if v.Name~=Player.Name then | |
| 288 | if v.ClassName=="Model" then | |
| 289 | for ii, vv in pairs(v:GetChildren()) do | |
| 290 | if vv.Name=="Torso" then | |
| 291 | if vv.Anchored==false then vv.Anchored=true | |
| 292 | table.insert(AnchoredObjects,vv) | |
| 293 | wait() | |
| 294 | ||
| 295 | end | |
| 296 | end | |
| 297 | end | |
| 298 | end | |
| 299 | end | |
| 300 | end | |
| 301 | game.Lighting.OutdoorAmbient=Color3.new(0,14,135) | |
| 302 | game.Lighting.TimeOfDay="00:00:00" | |
| 303 | print("Time has stopped.")
| |
| 304 | wait(1) | |
| 305 | for i=1,100 do | |
| 306 | RS.C0=RS.C0*CFrame.Angles(math.rad(0),math.rad(.4),math.rad(-.9)) | |
| 307 | LS.C0=LS.C0*CFrame.Angles(math.rad(0),math.rad(-.4),math.rad(.9)) | |
| 308 | Neck.C0=Neck.C0*CFrame.Angles(math.rad(.1),math.rad(0),math.rad(0)) | |
| 309 | end | |
| 310 | Debounce=false | |
| 311 | world=true | |
| 312 | --[[local Mover=Instance.new("HopperBin")
| |
| 313 | Mover.Parent=Player.StarterPack]] | |
| 314 | wait(11) | |
| 315 | ZA:Destroy() | |
| 316 | for i, v in pairs(AnchoredObjects) do | |
| 317 | if v.Anchored==true then | |
| 318 | v.Anchored=false | |
| 319 | end | |
| 320 | end | |
| 321 | print("Time continues to flow..")
| |
| 322 | ZWRDO:Stop() | |
| 323 | game.Lighting.OutdoorAmbient=Color3.new(135/255, 135/255, 128/255) | |
| 324 | game.Lighting.TimeOfDay="15:00:00" | |
| 325 | for i=1,#AnchoredObjects do | |
| 326 | table.remove(AnchoredObjects,i) | |
| 327 | end | |
| 328 | world=false | |
| 329 | end | |
| 330 | end) | |
| 331 | knifing=false | |
| 332 | Mouse.KeyDown:connect(function(Key) | |
| 333 | if Key=="r" and world==true and Debounce==false then | |
| 334 | --KNIFEUU | |
| 335 | Debounce=true | |
| 336 | knifing=true | |
| 337 | local rad=math.rad | |
| 338 | Torso.Anchored=true | |
| 339 | local Knife=part(Character,false,false,Vector3.new(1,1,1),Torso.CFrame*CFrame.new(1.2,3,-3),Color3.new(217/255,217/255,217/255),"Neon",0) | |
| 340 | local Toward=part(Character,true,false,Vector3.new(1,1,1),Knife.CFrame*CFrame.new(0,0,-400),Color3.new(0,0,0),"Neon",1) | |
| 341 | local HBOX=part(Character,false,false,Vector3.new(1,1,1),Torso.CFrame*CFrame.new(1.5,3,-4),Color3.new(0,0,0),"Plastic",1) | |
| 342 | local mosh=Instance.new("SpecialMesh",Knife)
| |
| 343 | mosh.MeshId="rbxassetid://202083123" | |
| 344 | mosh.Scale=Vector3.new(1,1,1) | |
| 345 | ||
| 346 | for i=1,10 do h:wait() | |
| 347 | Torso.CFrame=Torso.CFrame*CFrame.new(0,-.03,0)*CFrame.Angles((rad(-2)),(rad(0)),(rad(0))) | |
| 348 | RH.C0=RH.C0*CFrame.Angles(rad(-.3), rad(0), rad(2))*CFrame.new(.065,0,0) | |
| 349 | LH.C0=LH.C0*CFrame.Angles(rad(-.3), rad(0), rad(1.3))*CFrame.new(0,.03,0) | |
| 350 | LS.C0=LS.C0*CFrame.Angles(rad(-.3), rad(0), rad(3.5))*CFrame.new(0,0,0) | |
| 351 | RS.C0=RS.C0*CFrame.Angles(rad(-.3), rad(0), rad(12))*CFrame.new(0,0,0) | |
| 352 | end--202083162 | |
| 353 | Knife.Anchored=false | |
| 354 | local BEP=Instance.new("BodyVelocity")
| |
| 355 | BEP.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 356 | BEP.Velocity=(Toward.Position-HBOX.Position).unit*70 | |
| 357 | BEP.Parent=HBOX | |
| 358 | ||
| 359 | local BEP2=Instance.new("BodyVelocity")
| |
| 360 | BEP2.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 361 | BEP2.Velocity=(Toward.Position-Knife.Position).unit*70 | |
| 362 | BEP2.Parent=Knife | |
| 363 | ||
| 364 | wait(.1) | |
| 365 | spawn(function() | |
| 366 | spawn(function() | |
| 367 | knifeS:Play() | |
| 368 | wait(.7) | |
| 369 | knifeS:Stop() | |
| 370 | end) | |
| 371 | wait(1) | |
| 372 | for i=1,10 do | |
| 373 | Torso.CFrame=Torso.CFrame*CFrame.new(0,.03,0)*CFrame.Angles((rad(2)),(rad(0)),(rad(0))) | |
| 374 | RH.C0=RH.C0*CFrame.Angles(rad(.3), rad(0), rad(-2))*CFrame.new(-.065,0,0) | |
| 375 | LH.C0=LH.C0*CFrame.Angles(rad(.3), rad(0), rad(-1.3))*CFrame.new(0,-.03,0) | |
| 376 | LS.C0=LS.C0*CFrame.Angles(rad(.3), rad(0), rad(-3.5))*CFrame.new(0,0,0) | |
| 377 | RS.C0=RS.C0*CFrame.Angles(rad(.3), rad(0), rad(-12))*CFrame.new(0,0,0) | |
| 378 | end--202083162 | |
| 379 | Torso.Anchored=false | |
| 380 | end) | |
| 381 | HBOX.Touched:connect(function(Hit) | |
| 382 | if Hit.Name~=HBOX.Name and Hit.Name~=Player.Name then | |
| 383 | print"hit!" | |
| 384 | Knife.Anchored=true | |
| 385 | BEP.Parent=nil | |
| 386 | --BEP2.Parent=nil | |
| 387 | HBOX:Destroy() | |
| 388 | print"yey" | |
| 389 | Knife.Anchored=true | |
| 390 | --Knife.CFrame=Knife.CFrame*CFrame.new(0,0,.5) | |
| 391 | repeat wait() | |
| 392 | ||
| 393 | until world==false | |
| 394 | Knife.Anchored=false | |
| 395 | Knife.Touched:connect(function(Het) | |
| 396 | if Het.Name~=Player.Name then | |
| 397 | if Het.Parent:FindFirstChild("Humanoid") then
| |
| 398 | BloodSpurt(Character,Knife.CFrame) | |
| 399 | --Knife:Destroy() | |
| 400 | BEP2:Remove() | |
| 401 | local hoom=Het.Parent:FindFirstChild("Humanoid")
| |
| 402 | hoom.Health=hoom.Health-100 | |
| 403 | ||
| 404 | end | |
| 405 | end | |
| 406 | end) | |
| 407 | end | |
| 408 | end) | |
| 409 | Debounce=false | |
| 410 | end | |
| 411 | end) | |
| 412 | ||
| 413 | spawn(function() | |
| 414 | while true do | |
| 415 | wait() | |
| 416 | if Human.Health<=0 then | |
| 417 | game.Lighting.OutdoorAmbient=Color3.new(135/255, 135/255, 128/255) | |
| 418 | game.Lighting.TimeOfDay="15:00:00" | |
| 419 | for i, v in pairs(AnchoredObjects) do | |
| 420 | if v.Anchored==true then | |
| 421 | v.Anchored=false | |
| 422 | end | |
| 423 | end | |
| 424 | end | |
| 425 | ||
| 426 | end | |
| 427 | end) | |
| 428 | --[[ | |
| 429 | Torso.CFrame=Torso.CFrame*CFrame.new(0,-.3,0)*CFrame.Angles((math.rad(-13)),(math.rad(0)),(math.rad(0))) | |
| 430 | RH.C0=RH.C0*CFrame.new(.3,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(13)) | |
| 431 | LH.C0=LH.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(15)) | |
| 432 | RS.C0=RS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(10),math.rad(110)) | |
| 433 | LS.C0=LS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(-10),math.rad(-110)) | |
| 434 | Neck.C0=Neck.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)) | |
| 435 | ]] | |
| 436 | --]] | |
| 437 | --Muda MUDA MUDA MUDAAAA | |
| 438 | Mouse.KeyDown:connect(function(Key) | |
| 439 | if Key=="e" and HoldE==false then | |
| 440 | HoldE=true | |
| 441 | Torso.Anchored=true | |
| 442 | local Playing=false | |
| 443 | --pos | |
| 444 | Torso.CFrame=Torso.CFrame*CFrame.new(0,-.3,0)*CFrame.Angles((math.rad(-13)),(math.rad(0)),(math.rad(0))) | |
| 445 | RH.C0=RH.C0*CFrame.new(.3,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(13)) | |
| 446 | LH.C0=LH.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(15)) | |
| 447 | RS.C0=RS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(10),math.rad(110)) | |
| 448 | LS.C0=LS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(-10),math.rad(-110)) | |
| 449 | Neck.C0=Neck.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)) | |
| 450 | --arms | |
| 451 | local Hitbox=Instance.new("Part",Character)
| |
| 452 | Hitbox.Anchored=true | |
| 453 | Hitbox.CanCollide=false | |
| 454 | Hitbox.Size=Vector3.new(4,7,4) | |
| 455 | Hitbox.Transparency=1 | |
| 456 | Hitbox.CFrame=Torso.CFrame*CFrame.new(0,0,-2.3) | |
| 457 | RArm.Touched:connect(function(hit) | |
| 458 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 459 | if hit.Parent.Name~=Player.Name and HoldE==true then | |
| 460 | local Hooman=hit.Parent:FindFirstChild("Humanoid")
| |
| 461 | Hooman.Health=Hooman.Health-10 | |
| 462 | local effectpart=Instance.new("Part",Character)
| |
| 463 | effectpart.Size=Vector3.new(1,1,1) | |
| 464 | effectpart.CFrame=hit.Parent.Torso.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 465 | effectpart.Anchored=true | |
| 466 | effectpart.CanCollide=false | |
| 467 | local Ring=Instance.new("SpecialMesh",effectpart)
| |
| 468 | Ring.MeshId="rbxassetid://3270017" | |
| 469 | Ring.Scale=Vector3.new(2,2,2) | |
| 470 | for i=1,8 do | |
| 471 | Ring.Scale=Ring.Scale+Vector3.new(1,1,1) | |
| 472 | effectpart.Transparency=i/8 | |
| 473 | wait() | |
| 474 | end | |
| 475 | effectpart:Destroy() | |
| 476 | end | |
| 477 | end | |
| 478 | end) | |
| 479 | LArm.Touched:connect(function(hit) | |
| 480 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 481 | if hit.Parent.Name~=Player.Name and HoldE==true then | |
| 482 | local Hooman=hit.Parent:FindFirstChild("Humanoid")
| |
| 483 | Hooman.Health=Hooman.Health-10 | |
| 484 | local effectpart=Instance.new("Part",Character)
| |
| 485 | effectpart.Size=Vector3.new(1,1,1) | |
| 486 | effectpart.CFrame=hit.Parent.Torso.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 487 | effectpart.Anchored=true | |
| 488 | effectpart.CanCollide=false | |
| 489 | local Ring=Instance.new("SpecialMesh",effectpart)
| |
| 490 | Ring.MeshId="rbxassetid://3270017" | |
| 491 | Ring.Scale=Vector3.new(2,2,2) | |
| 492 | for i=1,8 do | |
| 493 | Ring.Scale=Ring.Scale+Vector3.new(1,1,1) | |
| 494 | effectpart.Transparency=i/8 | |
| 495 | wait() | |
| 496 | end | |
| 497 | effectpart:Destroy() | |
| 498 | end | |
| 499 | end | |
| 500 | end) | |
| 501 | spawn(function() | |
| 502 | local MUDA=Instance.new("Sound",Character)
| |
| 503 | MUDA.SoundId="rbxassetid://601465752" | |
| 504 | MUDA.Volume=2 | |
| 505 | while HoldE==true do | |
| 506 | for i=1,3 do | |
| 507 | RS.C0=RS.C0*CFrame.new(0,2/3,0) | |
| 508 | LS.C0=LS.C0*CFrame.new(0,-2/3,0) | |
| 509 | h:wait() | |
| 510 | end | |
| 511 | for i=1,3 do | |
| 512 | RS.C0=RS.C0*CFrame.new(0,-2/3,0) | |
| 513 | LS.C0=LS.C0*CFrame.new(0,2/3,0) | |
| 514 | h:wait() | |
| 515 | end | |
| 516 | if HoldE==true and Playing==false then | |
| 517 | spawn(function() | |
| 518 | MUDA:Play() | |
| 519 | Playing=true | |
| 520 | wait(6) | |
| 521 | Playing=false | |
| 522 | end) | |
| 523 | end | |
| 524 | end | |
| 525 | MUDA:Stop() | |
| 526 | end) | |
| 527 | while HoldE==true do | |
| 528 | Hitbox.CFrame=Torso.CFrame*CFrame.new(0,0,-2.3) | |
| 529 | wait() | |
| 530 | Hitbox.CFrame=Torso.CFrame*CFrame.new(0,0,-2.1) | |
| 531 | ||
| 532 | end | |
| 533 | Hitbox:Destroy() | |
| 534 | end | |
| 535 | end) | |
| 536 | Mouse.KeyUp:connect(function(Key) | |
| 537 | if Key=="e" and HoldE==true then | |
| 538 | HoldE=false | |
| 539 | wait(.1) | |
| 540 | Neck.C0 = necko | |
| 541 | LH.C0 = LHC0 | |
| 542 | LS.C0 = LSC0 | |
| 543 | RH.C0 = RHC0 | |
| 544 | RS.C0 = RSC0 | |
| 545 | Torso.Anchored=false | |
| 546 | end | |
| 547 | end) | |
| 548 | SYO=false | |
| 549 | local function rays(pos1,pos2,maxlength,bcol,material) | |
| 550 | local ray=Ray.new(pos1.Position,(pos2-pos1.Position).unit*maxlength) | |
| 551 | local part, position = workspace:FindPartOnRay(ray, Character, false, true) | |
| 552 | local beam = Instance.new("Part", workspace)
| |
| 553 | beam.BrickColor = BrickColor.new(bcol) | |
| 554 | beam.FormFactor = "Custom" | |
| 555 | beam.Material = material | |
| 556 | beam.Transparency = 0 | |
| 557 | beam.Anchored = true | |
| 558 | beam.Locked = true | |
| 559 | beam.CanCollide = false | |
| 560 | local dist=(pos1.Position-position).magnitude | |
| 561 | beam.Size=Vector3.new(.3,.3,dist) | |
| 562 | beam.CFrame=CFrame.new(pos1.CFrame.p,position)*CFrame.new(0,0,-dist/2) | |
| 563 | for i=1,10 do | |
| 564 | beam.Transparency=i/10 | |
| 565 | wait() | |
| 566 | end | |
| 567 | beam:Destroy() | |
| 568 | end | |
| 569 | --SUNLIGHT YELLOW OVERDRIVE | |
| 570 | Mouse.KeyDown:connect(function(Key) | |
| 571 | if Key=="x" and Debounce==false then | |
| 572 | Debounce=true | |
| 573 | if Character.Animate.Disabled==false then | |
| 574 | Character.Animate.Disabled=true | |
| 575 | end | |
| 576 | SYO=true | |
| 577 | local SUNLIGHT=Instance.new("Sound",Character)
| |
| 578 | SUNLIGHT.SoundId="rbxassetid://538732827" | |
| 579 | SUNLIGHT.Volume=.2 | |
| 580 | SUNLIGHT:Play() | |
| 581 | local Elec=Instance.new("Sound",Character)
| |
| 582 | Elec.SoundId="rbxassetid://186130717" | |
| 583 | Torso.Anchored=true | |
| 584 | for i=1,100 do | |
| 585 | Torso.CFrame=Torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles((math.rad(0)),(math.rad(-.2)),(math.rad(0))) | |
| 586 | RH.C0=RH.C0*CFrame.new(.003,0,0)*CFrame.Angles(math.rad(-.03),math.rad(.2),math.rad(.13)) | |
| 587 | LH.C0=LH.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-.03),math.rad(.2),math.rad(.15)) | |
| 588 | Neck.C0=Neck.C0*CFrame.Angles(math.rad(.2),math.rad(0),math.rad(0)) | |
| 589 | LS.C0=LS.C0*CFrame.new(-.003,0,0)*CFrame.Angles(math.rad(-.2),math.rad(0),math.rad(-.9)) | |
| 590 | RS.C0=RS.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-.2),math.rad(0),math.rad(-.5)) | |
| 591 | h:wait() | |
| 592 | end | |
| 593 | local PEPART=Instance.new("Part",Character)
| |
| 594 | PEPART.Size=Vector3.new(3,0,3) | |
| 595 | PEPART.CFrame=Torso.CFrame*CFrame.new(0,-3,0) | |
| 596 | PEPART.Transparency=1 | |
| 597 | PEPART.Anchored=true | |
| 598 | PEPART.CanCollide=false | |
| 599 | local PEPART2=PEPART:Clone() | |
| 600 | PEPART2.Parent=Character | |
| 601 | PEPART2.Size=Vector3.new(5,0,5) | |
| 602 | PEPART2.Transparency=1 | |
| 603 | local PE2=Instance.new("ParticleEmitter",PEPART)
| |
| 604 | PE2.Color=ColorSequence.new(Color3.new(1,1,0),Color3.new(1,1,0)) | |
| 605 | PE2.Lifetime=NumberRange.new(1.3,1.3,1.3) | |
| 606 | PE2.Texture="rbxassetid://298035054" | |
| 607 | PE2.Size=NumberSequence.new(2,2,2) | |
| 608 | local PE1=Instance.new("ParticleEmitter",PEPART)
| |
| 609 | PE1.Color=ColorSequence.new(Color3.new(1,1,0),Color3.new(1,1,0)) | |
| 610 | PE1.Lifetime=NumberRange.new(1.3,1.3,1.3) | |
| 611 | Elec:Play() | |
| 612 | for i=1,30 do | |
| 613 | local p1=Instance.new("Part",Character)
| |
| 614 | p1.Size=Vector3.new(0,0,0) | |
| 615 | p1.CanCollide=false | |
| 616 | p1.Anchored=true | |
| 617 | p1.Transparency=1 | |
| 618 | local p2=p1:Clone() | |
| 619 | local p3=p2:Clone() | |
| 620 | local p4=p2:Clone() | |
| 621 | local p5=p4:Clone() | |
| 622 | local p6=p5:Clone() | |
| 623 | p3.Parent=Character | |
| 624 | p2.Parent=Character | |
| 625 | p4.Parent=Character | |
| 626 | p5.Parent=Character | |
| 627 | p6.Parent=Character | |
| 628 | p1.CFrame=Character.Torso.CFrame | |
| 629 | p2.CFrame=p1.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 630 | p3.CFrame=p2.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 631 | p4.CFrame=p3.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 632 | p5.CFrame=p4.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 633 | p6.CFrame=p5.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 634 | ||
| 635 | spawn(function() | |
| 636 | rays(p1,p2.Position,3,"Deep orange","Neon") | |
| 637 | end) | |
| 638 | spawn(function() | |
| 639 | rays(p2,p3.Position,3,"Deep orange","Neon") | |
| 640 | end) | |
| 641 | spawn(function() | |
| 642 | rays(p3,p4.Position,3,"Deep orange","Neon") | |
| 643 | end) | |
| 644 | spawn(function() | |
| 645 | rays(p4,p5.Position,3,"Deep orange","Neon") | |
| 646 | end) | |
| 647 | spawn(function() | |
| 648 | rays(p5,p6.Position,3,"Deep orange","Neon") | |
| 649 | end) | |
| 650 | p1:Destroy() | |
| 651 | p2:Destroy() | |
| 652 | p3:Destroy() | |
| 653 | p4:Destroy() | |
| 654 | p5:Destroy() | |
| 655 | p6:Destroy() | |
| 656 | wait() | |
| 657 | end | |
| 658 | local HitFound=false | |
| 659 | local Hitbox=Instance.new("Part",Character)
| |
| 660 | Hitbox.Size=Vector3.new(4,6,4) | |
| 661 | Hitbox.Anchored=true | |
| 662 | Hitbox.CanCollide=false | |
| 663 | Hitbox.Transparency=1 | |
| 664 | Hitbox.CFrame=Torso.CFrame*CFrame.new(0,0,-4) | |
| 665 | Hitbox.Touched:connect(function(Hit) | |
| 666 | if Hit.Parent:FindFirstChild("Humanoid") then
| |
| 667 | if Hit.Parent.Name~=Player.Name then | |
| 668 | HitFound=true | |
| 669 | ||
| 670 | Hitbox:Destroy() | |
| 671 | local Target=Hit.Parent | |
| 672 | local Hooman=Target:FindFirstChild("Humanoid")
| |
| 673 | local OTorso=Target.Torso | |
| 674 | local BPER=Instance.new("Part",Character)
| |
| 675 | BPER.Anchored=true | |
| 676 | BPER.CanCollide=false | |
| 677 | BPER.Transparency=1 | |
| 678 | BPER.CFrame=Torso.CFrame*CFrame.Angles(0,math.rad(20),0,0)*CFrame.new(0,5,-10) | |
| 679 | BP=Instance.new("BodyPosition")
| |
| 680 | BP.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 681 | BP.Position=BPER.Position | |
| 682 | BP.Parent=OTorso | |
| 683 | local YELLOW=Instance.new("Sound",Character)
| |
| 684 | YELLOW.SoundId="rbxassetid://624164065" | |
| 685 | YELLOW.Volume=3 | |
| 686 | spawn(function() | |
| 687 | while HitFound==true do | |
| 688 | if Human.Health==0 then | |
| 689 | BP:Destroy() | |
| 690 | end | |
| 691 | wait() | |
| 692 | end | |
| 693 | end) | |
| 694 | wait(2) | |
| 695 | Neck.C0 = necko | |
| 696 | LH.C0 = LHC0 | |
| 697 | LS.C0 = LSC0 | |
| 698 | RH.C0 = RHC0 | |
| 699 | RS.C0 = RSC0 | |
| 700 | Torso.CFrame=OTorso.CFrame*CFrame.new(0,0,2.3) | |
| 701 | PEPART:Destroy() | |
| 702 | PEPART2:Destroy() | |
| 703 | SUNLIGHT:Destroy() | |
| 704 | YELLOW:Play() | |
| 705 | Torso.CFrame=Torso.CFrame*CFrame.new(0,-.3,0)*CFrame.Angles((math.rad(-13)),(math.rad(0)),(math.rad(0))) | |
| 706 | RH.C0=RH.C0*CFrame.new(.3,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(13)) | |
| 707 | LH.C0=LH.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(15)) | |
| 708 | RS.C0=RS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(10),math.rad(110)) | |
| 709 | LS.C0=LS.C0*CFrame.new(1,0,0)*CFrame.Angles(math.rad(-20),math.rad(-10),math.rad(-110)) | |
| 710 | Neck.C0=Neck.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)) | |
| 711 | local function balleff() | |
| 712 | spawn(function() | |
| 713 | local ball=Instance.new("Part",Character)
| |
| 714 | ball.CanCollide=false | |
| 715 | ball.Anchored=true | |
| 716 | ball.Transparency=1 | |
| 717 | ball.Size=Vector3.new(1,1,1) | |
| 718 | ball.CFrame=OTorso.CFrame | |
| 719 | ball.BrickColor=BrickColor.new("Deep orange")
| |
| 720 | ball.Material="Neon" | |
| 721 | local sp=Instance.new("SpecialMesh",ball)
| |
| 722 | sp.Scale=Vector3.new(1,1,1) | |
| 723 | sp.MeshType="Sphere" | |
| 724 | for i=1,13 do | |
| 725 | sp.Scale=sp.Scale+Vector3.new(2,2,2) | |
| 726 | ball.Transparency=i/13 | |
| 727 | wait() | |
| 728 | end | |
| 729 | end) | |
| 730 | end | |
| 731 | for i=1,30 do | |
| 732 | balleff() | |
| 733 | for i=1,3 do | |
| 734 | RS.C0=RS.C0*CFrame.new(0,2/3,0) | |
| 735 | LS.C0=LS.C0*CFrame.new(0,-2/3,0) | |
| 736 | h:wait() | |
| 737 | end | |
| 738 | for i=1,3 do | |
| 739 | RS.C0=RS.C0*CFrame.new(0,-2/3,0) | |
| 740 | LS.C0=LS.C0*CFrame.new(0,2/3,0) | |
| 741 | h:wait() | |
| 742 | end | |
| 743 | h:wait() | |
| 744 | Hooman.Health=Hooman.Health-20 | |
| 745 | end | |
| 746 | end | |
| 747 | Torso.Anchored=false | |
| 748 | Character.Animate.Disabled=false | |
| 749 | Neck.C0 = necko | |
| 750 | LH.C0 = LHC0 | |
| 751 | LS.C0 = LSC0 | |
| 752 | RH.C0 = RHC0 | |
| 753 | RS.C0 = RSC0 | |
| 754 | Torso.Anchored=false | |
| 755 | HitFound=false | |
| 756 | BP:Destroy() | |
| 757 | ||
| 758 | end | |
| 759 | end) | |
| 760 | for i=1,360/4 do | |
| 761 | Hitbox.CFrame=Hitbox.CFrame*CFrame.Angles(math.rad(-4),math.rad(-4),math.rad(-4)) | |
| 762 | if HitFound==true then | |
| 763 | break | |
| 764 | end | |
| 765 | h:wait() | |
| 766 | end | |
| 767 | if HitFound==false then | |
| 768 | Hitbox:Destroy() | |
| 769 | Neck.C0 = necko | |
| 770 | LH.C0 = LHC0 | |
| 771 | LS.C0 = LSC0 | |
| 772 | RH.C0 = RHC0 | |
| 773 | RS.C0 = RSC0 | |
| 774 | Torso.Anchored=false | |
| 775 | HitFound=false | |
| 776 | PEPART:Destroy() | |
| 777 | PEPART2:Destroy() | |
| 778 | SUNLIGHT:Destroy() | |
| 779 | Character.Animate.Disabled=false | |
| 780 | end | |
| 781 | Debounce=false | |
| 782 | end | |
| 783 | end) | |
| 784 | walkkeys={}
| |
| 785 | Mouse.KeyDown:connect(function(Key) | |
| 786 | if Key=="w" or "a" or "s" or "d" then | |
| 787 | table.insert(walkkeys,Key) | |
| 788 | end | |
| 789 | end) | |
| 790 | spawn(function() | |
| 791 | while wait() do | |
| 792 | if walkkeys[1] or walkkeys[2] or walkkeys[3] or walkkeys[4] then | |
| 793 | --walking | |
| 794 | else | |
| 795 | --idle | |
| 796 | end | |
| 797 | end | |
| 798 | end) | |
| 799 | Mouse.KeyUp:connect(function(Key) | |
| 800 | if Key=="w" or "a" or "s" or "d" then | |
| 801 | for i, v in pairs(walkkeys) do | |
| 802 | if v=="w" or "a" or "s" or "d" then | |
| 803 | table.remove(walkkeys,i) | |
| 804 | end | |
| 805 | end | |
| 806 | end | |
| 807 | end) | |
| 808 | local trans={}
| |
| 809 | for i=0,1,.1 do | |
| 810 | table.insert(trans,NumberSequenceKeypoint.new(i,i,i)) | |
| 811 | end | |
| 812 | local sizes={NumberSequenceKeypoint.new(0,0.988,0),NumberSequenceKeypoint.new(0.0399,0.988,0),NumberSequenceKeypoint.new(0.52,0.617,0),
| |
| 813 | NumberSequenceKeypoint.new(1,0.185,0)} | |
| 814 | ||
| 815 | Mouse.KeyDown:connect(function(Key) | |
| 816 | if Key=="f" and Debounce==false then | |
| 817 | --EMERALD SPLASHO | |
| 818 | Debounce=true | |
| 819 | local bemz={}
| |
| 820 | local HasHit=false | |
| 821 | local EpicOver=false | |
| 822 | Torso.Anchored=true | |
| 823 | for i=1,100 do | |
| 824 | Torso.CFrame=Torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles((math.rad(0)),(math.rad(-.2)),(math.rad(0))) | |
| 825 | RH.C0=RH.C0*CFrame.new(.003,0,0)*CFrame.Angles(math.rad(0),math.rad(.20),math.rad(.05)) | |
| 826 | LH.C0=LH.C0*CFrame.new(.004,0,0)*CFrame.Angles(math.rad(-.10),math.rad(.20),math.rad(.10)) | |
| 827 | RS.C0=RS.C0*CFrame.new(.005,0,0)*CFrame.Angles(math.rad(0),math.rad(.30),math.rad(.90)) | |
| 828 | LS.C0=LS.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(-.45),math.rad(-.90)) | |
| 829 | Neck.C0=Neck.C0*CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(.20)) | |
| 830 | h:wait() | |
| 831 | end | |
| 832 | local PosPart=Instance.new("Part",Character)
| |
| 833 | PosPart.Anchored=true | |
| 834 | PosPart.CanCollide=false | |
| 835 | PosPart.Size=Vector3.new(0,0,0) | |
| 836 | PosPart.Transparency=1 | |
| 837 | PosPart.CFrame=Torso.CFrame*CFrame.new(0,.5,-2)*CFrame.Angles(0,math.rad(20),0) | |
| 838 | local PE=Instance.new("ParticleEmitter",PosPart)
| |
| 839 | PE.Color=ColorSequence.new(Color3.new(0,1,0),Color3.new(0,1,0)) | |
| 840 | PE.Lifetime=NumberRange.new(.1,.1,.1) | |
| 841 | PE.Rate=50 | |
| 842 | local ShootTable={}
| |
| 843 | local function Shoot() | |
| 844 | spawn(function() | |
| 845 | local em=Instance.new("Part",Character)
| |
| 846 | em.Size=Vector3.new(3,3,3) | |
| 847 | em.CFrame=PosPart.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),0) | |
| 848 | em.Anchored=true | |
| 849 | em.CanCollide=false | |
| 850 | em.Color=Color3.new(0,1,0) | |
| 851 | em.Material="Neon" | |
| 852 | em.Name="em" | |
| 853 | table.insert(ShootTable,em) | |
| 854 | local er=Instance.new("SpecialMesh",em)
| |
| 855 | er.MeshType="Sphere" | |
| 856 | er.Scale=Vector3.new(2,2,4) | |
| 857 | local trail=Instance.new("ParticleEmitter",em)
| |
| 858 | em.Size=Vector3.new(0,0,0) | |
| 859 | trail.Texture="rbxassetid://170478374" | |
| 860 | trail.Transparency=NumberSequence.new(trans) | |
| 861 | trail.LockedToPart=true | |
| 862 | trail.Rate=499999997952.000 | |
| 863 | trail.Size=NumberSequence.new(sizes) | |
| 864 | trail.Lifetime=NumberRange.new(5,5,5) | |
| 865 | trail.Speed=NumberRange.new(20,20,20) | |
| 866 | trail.LightEmission=1 | |
| 867 | trail.EmissionDirection="Back" | |
| 868 | ||
| 869 | local HitBParent=part(Character,true,false,Vector3.new(1,1,1),PosPart.CFrame*CFrame.new(0,0,-320),Color3.new(0,0,0),"Neon",1) | |
| 870 | local HITBOX=part(Character,false,false,Vector3.new(7,7,7),PosPart.CFrame,Color3.new(0,0,0),"Plastic",1) | |
| 871 | local BEP=Instance.new("BodyVelocity")
| |
| 872 | BEP.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 873 | BEP.Velocity=(HitBParent.Position-HITBOX.Position).unit*121 | |
| 874 | BEP.Parent=HITBOX | |
| 875 | ||
| 876 | HITBOX.Touched:connect(function(Hit) | |
| 877 | if Hit.Parent:FindFirstChild("Humanoid") then
| |
| 878 | if Hit.Parent.Name~=Player.Name then | |
| 879 | if HasHit==false then | |
| 880 | HasHit=true | |
| 881 | for i=1,#ShootTable do | |
| 882 | table.remove(ShootTable,i) | |
| 883 | end | |
| 884 | HITBOX:Destroy() | |
| 885 | print("HIT")
| |
| 886 | local Target=Hit.Parent | |
| 887 | local OTorso=Target.Torso | |
| 888 | local Hooman=Target:FindFirstChild("Humanoid")
| |
| 889 | camera.CameraType = Enum.CameraType.Scriptable | |
| 890 | camera.CameraSubject = OTorso | |
| 891 | spawn(function() | |
| 892 | ||
| 893 | ||
| 894 | wait(2.8) | |
| 895 | for i=1,18.2,.1 do | |
| 896 | if Human.Health<=0 then | |
| 897 | game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid | |
| 898 | game.Workspace.CurrentCamera.CameraType = "Custom" | |
| 899 | break | |
| 900 | end | |
| 901 | if Human.Health<=0 then else | |
| 902 | camera.CoordinateFrame=CFrame.new(OTorso.Position)*CFrame.Angles(0,i,0)*CFrame.new(0,0,i+10) | |
| 903 | h:wait() end | |
| 904 | end | |
| 905 | for i=1,130 do | |
| 906 | camera.CoordinateFrame=CFrame.new(OTorso.Position)*CFrame.new(0,0,i+40) | |
| 907 | h:wait() | |
| 908 | end | |
| 909 | game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid | |
| 910 | game.Workspace.CurrentCamera.CameraType = "Custom" | |
| 911 | ||
| 912 | end) | |
| 913 | local Beams={}
| |
| 914 | OTorso.Anchored=true | |
| 915 | for i=1,10 do | |
| 916 | local bem=Instance.new("Part",Character)
| |
| 917 | bem.Size=Vector3.new(1,100,1) | |
| 918 | bem.Anchored=true | |
| 919 | bem.CanCollide=false | |
| 920 | bem.Color=Color3.new(0,1,0) | |
| 921 | bem.TopSurface=0 | |
| 922 | bem.BottomSurface=0 | |
| 923 | bem.Material="Neon" | |
| 924 | bem.Transparency=.9 | |
| 925 | bem.Name="GreenBean" | |
| 926 | bem.CFrame=OTorso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 927 | table.insert(bemz,bem) | |
| 928 | spawn(function() | |
| 929 | wait(7.3) | |
| 930 | bem:Destroy() | |
| 931 | end) | |
| 932 | bem.Touched:connect(function(Hit) | |
| 933 | if Hit.Name==Target.Name then | |
| 934 | bem:Destroy() | |
| 935 | end | |
| 936 | end) | |
| 937 | end | |
| 938 | ||
| 939 | ||
| 940 | local function Shoot2() | |
| 941 | spawn(function() | |
| 942 | local em=Instance.new("Part",Character)
| |
| 943 | em.Size=Vector3.new(1,1,1) | |
| 944 | em.CFrame=OTorso.CFrame*CFrame.new(math.random(-100,100),math.random(-100,100),math.random(-100,100)) | |
| 945 | em.Anchored=true | |
| 946 | em.CanCollide=false | |
| 947 | em.Color=Color3.new(0,1,0) | |
| 948 | em.Material="Neon" | |
| 949 | em.Name="em2" | |
| 950 | em.Shape="Ball" | |
| 951 | em.Transparency=0 | |
| 952 | local trail=Instance.new("ParticleEmitter",em)
| |
| 953 | em.Size=Vector3.new(0,0,0) | |
| 954 | trail.Texture="rbxassetid://170478374" | |
| 955 | trail.Transparency=NumberSequence.new(trans) | |
| 956 | trail.LockedToPart=false | |
| 957 | trail.Rate=499999997952.000 | |
| 958 | trail.Size=NumberSequence.new(sizes) | |
| 959 | trail.Lifetime=NumberRange.new(5,5,5) | |
| 960 | trail.Speed=NumberRange.new(0,0,0) | |
| 961 | trail.LightEmission=1 | |
| 962 | trail.Enabled=false | |
| 963 | local BP=Instance.new("BodyPosition")
| |
| 964 | BP.maxForce=Vector3.new(500,500,500) | |
| 965 | BP.Position=OTorso.Position | |
| 966 | --Play sound | |
| 967 | wait(4) | |
| 968 | trail.Enabled=true | |
| 969 | em.Anchored=false | |
| 970 | em.Transparency=0 | |
| 971 | BP.Parent=em | |
| 972 | wait(1.5) | |
| 973 | em:Destroy() | |
| 974 | end) | |
| 975 | end | |
| 976 | local SPLASH=Instance.new("Sound",Character)
| |
| 977 | SPLASH.SoundId="rbxassetid://536523766" | |
| 978 | SPLASH.Volume=3 | |
| 979 | local EXPLOSION=Instance.new("Sound",Character)
| |
| 980 | EXPLOSION.SoundId="rbxassetid://165969964" | |
| 981 | SPLASH:Play() | |
| 982 | for i=1,40 do | |
| 983 | Shoot2() | |
| 984 | Shoot2() | |
| 985 | Shoot2() | |
| 986 | end | |
| 987 | wait(6) | |
| 988 | ||
| 989 | ||
| 990 | ||
| 991 | local ring1 = part(Character,true,false,Vector3.new(0,0,0),OTorso.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)),Color3.new(0,1,0),"Neon",0) | |
| 992 | local rm = Instance.new("SpecialMesh",ring1)
| |
| 993 | rm.MeshType="Brick" | |
| 994 | rm.Scale = Vector3.new(250,250,250) | |
| 995 | local ring2 = ring1:Clone() | |
| 996 | ring2.Parent=Character | |
| 997 | local rm2 = Instance.new("SpecialMesh", ring2)
| |
| 998 | rm2.MeshType="Brick" | |
| 999 | rm2.Scale =Vector3.new(250,250,250) | |
| 1000 | local block1 = part(Character,true,false,Vector3.new(0,0,0),OTorso.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)),Color3.new(0,1,0),"Neon",0) | |
| 1001 | local bm = Instance.new("BlockMesh",block1)
| |
| 1002 | bm.Scale=Vector3.new(500,500,500) | |
| 1003 | local block2=block1:Clone() | |
| 1004 | local bm2=bm:Clone() | |
| 1005 | block2.Parent=Character | |
| 1006 | bm2.Parent=block2 | |
| 1007 | block2.CFrame=OTorso.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1008 | spawn(function() | |
| 1009 | for ii=1,3 do | |
| 1010 | for i, v in pairs(Player:GetChildren()) do | |
| 1011 | if v.ClassName=="Part" and v.Name=="GreenBean" then | |
| 1012 | v:Destroy() | |
| 1013 | end | |
| 1014 | end | |
| 1015 | wait(.2) | |
| 1016 | end | |
| 1017 | end) | |
| 1018 | EXPLOSION:Play() | |
| 1019 | spawn(function() | |
| 1020 | for i = 1,50 do | |
| 1021 | block1.CFrame=block1.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1022 | block2.CFrame=block2.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1023 | block1.Transparency=i/50 | |
| 1024 | block2.Transparency=i/50 | |
| 1025 | wait() | |
| 1026 | end | |
| 1027 | end) | |
| 1028 | for i = 1,50 do | |
| 1029 | ring1.CFrame=ring1.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1030 | ring2.CFrame=ring2.CFrame*CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1031 | ring1.Transparency = i/50 | |
| 1032 | ring2.Transparency = i/50 | |
| 1033 | wait() | |
| 1034 | end | |
| 1035 | ring1:Destroy() | |
| 1036 | ring2:Destroy() | |
| 1037 | OTorso.Position=OTorso.Position+Vector3.new(0,.001,0) | |
| 1038 | ||
| 1039 | end | |
| 1040 | end | |
| 1041 | HasHit=false | |
| 1042 | end | |
| 1043 | end) | |
| 1044 | pcall(function() | |
| 1045 | for i, v in pairs(Player:GetChildren()) do | |
| 1046 | if v.ClassName=="Part" and v.Name=="GreenBean" then | |
| 1047 | v:Destroy() | |
| 1048 | end | |
| 1049 | end | |
| 1050 | end) | |
| 1051 | for i=1,160 do | |
| 1052 | h:wait() | |
| 1053 | em.CFrame=em.CFrame*CFrame.new(0,0,-2) | |
| 1054 | --HitBParent.CFrame=HitBParent.CFrame*CFrame.new(0,0,-2) | |
| 1055 | if HasHit==true then | |
| 1056 | pcall(function() | |
| 1057 | em:Destroy() | |
| 1058 | end) | |
| 1059 | break | |
| 1060 | end | |
| 1061 | end | |
| 1062 | ||
| 1063 | pcall(function() | |
| 1064 | em:Destroy() | |
| 1065 | HITBOX:Destroy() | |
| 1066 | HitBParent:Destroy() | |
| 1067 | end) | |
| 1068 | end) | |
| 1069 | end | |
| 1070 | pcall(function() | |
| 1071 | for i, v in pairs(Player:GetChildren()) do | |
| 1072 | if v.ClassName=="Part" and v.Name=="GreenBean" then | |
| 1073 | v:Destroy() | |
| 1074 | end | |
| 1075 | end | |
| 1076 | end) | |
| 1077 | Shoot() | |
| 1078 | ||
| 1079 | repeat | |
| 1080 | wait() | |
| 1081 | until Character:FindFirstChild("em")==nil and HasHit==false
| |
| 1082 | PosPart:Destroy() | |
| 1083 | Neck.C0 = necko | |
| 1084 | LH.C0 = LHC0 | |
| 1085 | LS.C0 = LSC0 | |
| 1086 | RH.C0 = RHC0 | |
| 1087 | RS.C0 = RSC0 | |
| 1088 | Torso.Anchored=false | |
| 1089 | HasHit=false | |
| 1090 | Debounce=false | |
| 1091 | end | |
| 1092 | end) | |
| 1093 | Mouse.KeyDown:connect(function(Key) | |
| 1094 | if Key=="g" then | |
| 1095 | BloodSpurt(Character,Torso.CFrame) | |
| 1096 | end | |
| 1097 | end) | |
| 1098 | SOUNDT={"rbxassetid://171370547","rbxassetid://466379148"}
| |
| 1099 | while true do | |
| 1100 | if Human.health==0 then | |
| 1101 | game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid | |
| 1102 | game.Workspace.CurrentCamera.CameraType = "Custom" | |
| 1103 | local Sound=Instance.new("Sound",Character)
| |
| 1104 | Sound.SoundId=SOUNDT[math.random(#SOUNDT)] | |
| 1105 | Sound:Play() | |
| 1106 | wait(100) | |
| 1107 | end | |
| 1108 | wait() | |
| 1109 | end |