SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players").LocalPlayer
|
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | Player = owner | |
| 87 | Character = Player.Character | |
| 88 | PlayerGui = Player.PlayerGui | |
| 89 | Backpack = Player.Backpack | |
| 90 | Torso = Character.Torso | |
| 91 | Head = Character.Head | |
| 92 | Humanoid = Character.Humanoid | |
| 93 | LeftArm = Character["Left Arm"] | |
| 94 | LeftLeg = Character["Left Leg"] | |
| 95 | RightArm = Character["Right Arm"] | |
| 96 | RightLeg = Character["Right Leg"] | |
| 97 | LS = Torso["Left Shoulder"] | |
| 98 | LH = Torso["Left Hip"] | |
| 99 | RS = Torso["Right Shoulder"] | |
| 100 | RH = Torso["Right Hip"] | |
| 101 | Neck = Torso.Neck | |
| 102 | it=Instance.new | |
| 103 | vt=Vector3.new | |
| 104 | cf=CFrame.new | |
| 105 | euler=CFrame.fromEulerAnglesXYZ | |
| 106 | angles=CFrame.Angles | |
| 107 | RootPart=Character.HumanoidRootPart | |
| 108 | RootJoint=RootPart.RootJoint | |
| 109 | RootCF=euler(-1.57,0,3.14) | |
| 110 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 111 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 112 | RW,LW=Instance.new("Weld"),Instance.new("Weld")
| |
| 113 | RH,LH=Instance.new("Weld"),Instance.new("Weld")
| |
| 114 | cam=workspace.CurrentCamera | |
| 115 | local attack=false | |
| 116 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 117 | local fp = it("Part")
| |
| 118 | fp.formFactor = formfactor | |
| 119 | fp.Parent = parent | |
| 120 | fp.Reflectance = reflectance | |
| 121 | fp.Transparency = transparency | |
| 122 | fp.CanCollide = false | |
| 123 | fp.Locked=true | |
| 124 | fp.BrickColor = brickcolor | |
| 125 | fp.Name = name | |
| 126 | fp.Size = size | |
| 127 | fp.Position = Torso.Position | |
| 128 | fp.Material="SmoothPlastic" | |
| 129 | fp:BreakJoints() | |
| 130 | return fp | |
| 131 | end | |
| 132 | ||
| 133 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 134 | local mesh = it(Mesh) | |
| 135 | mesh.Parent = part | |
| 136 | if Mesh=="SpecialMesh" then | |
| 137 | mesh.MeshType = meshtype | |
| 138 | mesh.MeshId = meshid | |
| 139 | end | |
| 140 | mesh.Offset=offset | |
| 141 | mesh.Scale=scale | |
| 142 | return mesh | |
| 143 | end | |
| 144 | ||
| 145 | function weld(parent,part1,part0,c0,c1) | |
| 146 | local weld = it("Weld")
| |
| 147 | weld.Parent = parent | |
| 148 | weld.Part0 = part0 | |
| 149 | weld.Part1 = part1 | |
| 150 | weld.C0 = c0 | |
| 151 | weld.C1 = c1 | |
| 152 | return weld | |
| 153 | end | |
| 154 | ||
| 155 | if Character:findFirstChild("Shades",true) ~= nil then
| |
| 156 | Character:findFirstChild("Shades",true).Parent = nil
| |
| 157 | end | |
| 158 | ||
| 159 | local scale=1.5 | |
| 160 | local ShadeCenter=it("Part")
| |
| 161 | ShadeCenter.CanCollide=false | |
| 162 | ShadeCenter.CFrame=Torso.CFrame | |
| 163 | ShadeCenter.Transparency=1 | |
| 164 | ShadeCenter.Parent=Character | |
| 165 | ShadeCenter.Name="Shades" | |
| 166 | ShadeCenter.formFactor=3 | |
| 167 | ShadeCenter.Size=vt() | |
| 168 | ShadeCenter.TopSurface=0 | |
| 169 | ShadeCenter.BottomSurface=0 | |
| 170 | local shadeweld=weld(ShadeCenter,ShadeCenter,Head,cf(0,0.4,-0.65),cf(0,0,0)) | |
| 171 | --[[scale=3 | |
| 172 | shadeweld.Part0=Torso | |
| 173 | shadeweld.C0=cf(1.2,0,-0.7)*euler(0,-1,0.5)]] | |
| 174 | local Shade1=it("Part")
| |
| 175 | Shade1.CanCollide=false | |
| 176 | Shade1.CFrame=Torso.CFrame | |
| 177 | Shade1.Reflectance=0.4 | |
| 178 | Shade1.Transparency=0.05 | |
| 179 | Shade1.BrickColor=BrickColor.new("Really black")
| |
| 180 | Shade1.Parent=ShadeCenter | |
| 181 | Shade1.formFactor=3 | |
| 182 | Shade1.Size=vt() | |
| 183 | Shade1.TopSurface=0 | |
| 184 | Shade1.BottomSurface=0 | |
| 185 | Shade1Mesh=it("SpecialMesh",Shade1)
| |
| 186 | Shade1Mesh.MeshType="Wedge" | |
| 187 | Shade1Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale) | |
| 188 | local w1=weld(Shade1,Shade1,ShadeCenter,cf(-1*0.3*scale,0,0),angles(math.rad(-45),math.rad(90*-1),0)) | |
| 189 | coroutine.resume(coroutine.create(function(Mesh,Weld) | |
| 190 | while true do | |
| 191 | wait() | |
| 192 | Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale) | |
| 193 | Weld.C0=cf(-1*0.3*scale,0,0) | |
| 194 | Weld.C1=angles(math.rad(-45),math.rad(90*-1),0) | |
| 195 | end | |
| 196 | end),Shade1Mesh,w1) | |
| 197 | local Shade2=it("Part")
| |
| 198 | Shade2.CanCollide=false | |
| 199 | Shade2.CFrame=Torso.CFrame | |
| 200 | Shade2.Reflectance=0.4 | |
| 201 | Shade2.Transparency=0.05 | |
| 202 | Shade2.BrickColor=BrickColor.new("Really black")
| |
| 203 | Shade2.Parent=ShadeCenter | |
| 204 | Shade2.formFactor=3 | |
| 205 | Shade2.Size=vt() | |
| 206 | Shade2.TopSurface=0 | |
| 207 | Shade2.BottomSurface=0 | |
| 208 | Shade2Mesh=it("SpecialMesh",Shade2)
| |
| 209 | Shade2Mesh.MeshType="Wedge" | |
| 210 | Shade2Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale) | |
| 211 | local w2=weld(Shade2,Shade2,ShadeCenter,cf(1*0.3*scale,0,0),angles(math.rad(-45),math.rad(90*1),0)) | |
| 212 | coroutine.resume(coroutine.create(function(Mesh,Weld) | |
| 213 | while true do | |
| 214 | wait() | |
| 215 | Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale) | |
| 216 | Weld.C0=cf(1*0.3*scale,0,0) | |
| 217 | Weld.C1=angles(math.rad(-45),math.rad(90*1),0) | |
| 218 | end | |
| 219 | end),Shade2Mesh,w2) | |
| 220 | ||
| 221 | if Backpack:findFirstChild("DRILL")~=nil then
| |
| 222 | --Backpack:findFirstChild("DRILL").Parent=nil
| |
| 223 | end | |
| 224 | if (script.Parent.className ~= "HopperBin") then | |
| 225 | Tool = Instance.new("HopperBin")
| |
| 226 | Tool.Parent = Backpack | |
| 227 | Tool.Name = "CERTAIN KILL" | |
| 228 | script.Parent = Tool | |
| 229 | end | |
| 230 | Bin = script.Parent | |
| 231 | ||
| 232 | game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=171070086")
| |
| 233 | function GIGADRILLBREAKER() | |
| 234 | cam.CameraType="Scriptable" | |
| 235 | local partpos=part(3,Character,0,1,BrickColor.new("Black"),"PartPos",vt(0.5,0.5,0.5))
| |
| 236 | partpos.Anchored=true | |
| 237 | partpos.CFrame=Torso.CFrame | |
| 238 | game:GetService("Debris"):AddItem(partpos,30)
| |
| 239 | local sound=Instance.new("Sound")
| |
| 240 | sound.Parent=partpos | |
| 241 | sound.Volume=1 | |
| 242 | sound.SoundId="http://www.roblox.com/asset/?id=171070086" | |
| 243 | --171070086 | |
| 244 | local sound2=Instance.new("Sound")
| |
| 245 | sound2.Parent=Torso | |
| 246 | sound2.Volume=1 | |
| 247 | sound2.SoundId="http://www.roblox.com/asset/?id=171070086" | |
| 248 | local sound3=Instance.new("Sound")
| |
| 249 | sound3.Parent=workspace.CurrentCamera | |
| 250 | sound3.Volume=1 | |
| 251 | sound3.SoundId="http://www.roblox.com/asset/?id=171070086" | |
| 252 | sound:Play() | |
| 253 | sound2:Play() | |
| 254 | sound3:Play() | |
| 255 | bodypos=Instance.new("BodyPosition")
| |
| 256 | bodypos.P=4000 | |
| 257 | bodypos.maxForce=Vector3.new(5000000,50000000,5000000)*5000 | |
| 258 | bodypos.position=Torso.Position+Vector3.new(0,0,0) | |
| 259 | bodypos.Parent=Torso | |
| 260 | local bodygy=Instance.new("BodyGyro") --gg nubs
| |
| 261 | bodygy.P=15000 | |
| 262 | bodygy.D=100 | |
| 263 | bodygy.maxTorque=Vector3.new(500000000,500000000,500000000) | |
| 264 | bodygy.cframe=RootPart.CFrame*euler(0,0,0) | |
| 265 | bodygy.Parent=RootPart | |
| 266 | RSH=Torso["Right Shoulder"] | |
| 267 | LSH=Torso["Left Shoulder"] | |
| 268 | RHP=Torso["Right Hip"] | |
| 269 | LHP=Torso["Left Hip"] | |
| 270 | -- | |
| 271 | RSH.Parent=nil | |
| 272 | LSH.Parent=nil | |
| 273 | RHP.Parent=nil | |
| 274 | LHP.Parent=nil | |
| 275 | -- | |
| 276 | RW.Part0=Torso | |
| 277 | RW.C0=cf(1.5,0.5,0) | |
| 278 | RW.C1=cf(0,0.5,0) | |
| 279 | RW.Part1=RightArm | |
| 280 | RW.Parent=Torso | |
| 281 | -- | |
| 282 | LW.Part0=Torso | |
| 283 | LW.C0=cf(-1.5,0.5,0) | |
| 284 | LW.C1=cf(0,0.5,0) | |
| 285 | LW.Part1=LeftArm | |
| 286 | LW.Parent=Torso | |
| 287 | --_G.L = LW | |
| 288 | -- | |
| 289 | RH.Part0=Torso | |
| 290 | RH.C0=cf(0.5,-1,0) | |
| 291 | RH.C1=cf(0,1,0) | |
| 292 | RH.Part1=RightLeg | |
| 293 | RH.Parent=Torso | |
| 294 | -- | |
| 295 | LH.Part0=Torso | |
| 296 | LH.C0=cf(-0.5,-1,0) | |
| 297 | LH.C1=cf(0,1,0) | |
| 298 | LH.Part1=LeftLeg | |
| 299 | LH.Parent=Torso | |
| 300 | --_G.L = LW | |
| 301 | -- | |
| 302 | wait(.2) | |
| 303 | shadeweld.Part0=RootPart | |
| 304 | shadeweld.C0=cf(0,1.9,-0.65)*euler(0,0,0) | |
| 305 | numb=2 | |
| 306 | for i=0,1,0.1 do | |
| 307 | wait() | |
| 308 | --cam.CoordinateFrame=Torso.CFrame | |
| 309 | cam.CoordinateFrame=ShadeCenter.CFrame*euler(0,3.14,0)*cf(0,0,5) | |
| 310 | scale=1.5+1*i | |
| 311 | --shadeweld.C0=cf(0,0.4+2*i,-0.65)*euler(0,0,-0.1*i) | |
| 312 | shadeweld.C0=cf(0,1.9+8*i*numb,-0.65)*euler(0,0,-0.2*i) | |
| 313 | Torso.Neck.C0=necko | |
| 314 | RootJoint.C0=RootCF | |
| 315 | RW.C0=cf(1.5,0.5,0) | |
| 316 | LW.C0=cf(-1.5,0.5,0) | |
| 317 | RH.C0=cf(0.5,-1,0) | |
| 318 | LH.C0=cf(-0.5,-1,0) | |
| 319 | numb=numb-0.1 | |
| 320 | end | |
| 321 | shadeweld.Part0=RightArm | |
| 322 | shadeweld.C0=cf(0,6,0)*euler(3.14,0,-0.2) | |
| 323 | for i=0,1,0.1 do | |
| 324 | wait() | |
| 325 | cam.CoordinateFrame=ShadeCenter.CFrame*euler(0,0,0)*cf(0,0,5) | |
| 326 | scale=2.5+0.5*i | |
| 327 | --shadeweld.C0=cf(0,0.4+2*i,-0.65)*euler(0,0,-0.1*i) | |
| 328 | --shadeweld.C0=cf(0,1.9+2-2*i,-0.65)*euler(0,0,-0.2) | |
| 329 | shadeweld.C0=euler(-3.14*i,0,0)*cf(-1.5*i,8-7.5*i,0)*euler(3.14,0,-0.2) | |
| 330 | Torso.Neck.C0=necko*euler(0,0,-0.2*i) | |
| 331 | RootJoint.C0=RootCF*euler(0,0,0.2*i) | |
| 332 | RW.C0=cf(1.5,0.5,0)*euler(3*i,0,0.2*i) | |
| 333 | LW.C0=cf(-1.5,0.5,0) | |
| 334 | RH.C0=cf(0.5,-1,0) | |
| 335 | LH.C0=cf(-0.5,-1,0) | |
| 336 | end | |
| 337 | for i=0,1,0.1 do | |
| 338 | wait() | |
| 339 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1*i,3.14-0.1*i,0)*cf(0,0,9+2*i) | |
| 340 | shadeweld.C0=euler(-3.14,0,0)*cf(-1.5,0.5,0)*euler(3.14,0,-0.2) | |
| 341 | Torso.Neck.C0=necko*euler(0,0,-0.2+0.3*i) | |
| 342 | RootJoint.C0=RootCF*euler(0.1*i,0,0.2-0.3*i) | |
| 343 | RW.C0=cf(1.5,0.5,0)*euler(3-1.5*i,0,0.2+0.2*i) | |
| 344 | LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.3*i) | |
| 345 | RH.C0=cf(0.5,-1,0)*euler(0.2*i,0,0.2*i) | |
| 346 | LH.C0=cf(-0.5,-1,0)*euler(-0.1*i,0,-0.3*i) | |
| 347 | end | |
| 348 | n=2 | |
| 349 | for i=0,1,0.1 do | |
| 350 | wait() | |
| 351 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1,3.04,0)*cf(0,0,7) | |
| 352 | Torso.Neck.C0=necko*euler(0,0,0.1+0.1*i*n) | |
| 353 | RootJoint.C0=RootCF*euler(0.1+0.1*i*n,0,-0.1-0.1*i*n) | |
| 354 | RW.C0=cf(1.5,0.5,0)*euler(1.5-0.2*i*n,0,0.4+0.2*i*n) | |
| 355 | LW.C0=cf(-1.5,0.5,0)*euler(0.2*i*n,0,-0.3-0.1*i*n) | |
| 356 | RH.C0=cf(0.5,-1,0)*euler(0.2+0.1*i*n,0,0.2) | |
| 357 | LH.C0=cf(-0.5,-1,0)*euler(-0.1-0.1*i*n,0,-0.3) | |
| 358 | n=n-0.1 | |
| 359 | end | |
| 360 | for i=0,1,0.1 do | |
| 361 | wait() | |
| 362 | cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5) | |
| 363 | Torso.Neck.C0=necko*euler(0,0,0.2+0.7*i) | |
| 364 | RootJoint.C0=RootCF*euler(0.2,0,-0.2-1*i) | |
| 365 | RW.C0=cf(1.5,0.5,0)*euler(1.3,0,0.6+2*i) | |
| 366 | LW.C0=cf(-1.5,0.5,0)*euler(0.2+1*i,0,-0.4-0.6*i) | |
| 367 | RH.C0=cf(0.5,-1,0)*euler(0.3-0.2*i,0,0.2-0.3*i) | |
| 368 | LH.C0=cf(-0.5,-1,0)*euler(-0.2,0,-0.3) | |
| 369 | end | |
| 370 | n=2 | |
| 371 | for i=0,1,0.1 do | |
| 372 | wait() | |
| 373 | cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5) | |
| 374 | Torso.Neck.C0=necko*euler(0,0,0.9-0.4*i*n) | |
| 375 | RootJoint.C0=RootCF*euler(0.2,0,-1.2+0.7*i*n) | |
| 376 | RW.C0=cf(1.5,0.5,0)*euler(1.3+0.4*i*n,0,2.6-0.4*i*n) | |
| 377 | LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1-1*i*n) | |
| 378 | RH.C0=cf(0.5,-1,0)*euler(0.1,0,-0.1+0.2*i*n) | |
| 379 | LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.1*i*n,0,-0.3+0.2*i*n) | |
| 380 | n=n-0.1 | |
| 381 | end | |
| 382 | for i=0,1,0.1 do | |
| 383 | wait() | |
| 384 | cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5) | |
| 385 | Torso.Neck.C0=necko*euler(0,0,0.5-0.1*i) | |
| 386 | RootJoint.C0=RootCF*euler(0.2-0.1*i,0.2*i,-0.5+0.1*i) | |
| 387 | RW.C0=cf(1.5,0.5,0)*euler(1.7+2.7*i,-1.57*i,2.2-2*i) | |
| 388 | LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-2+1*i) | |
| 389 | RH.C0=cf(0.5,-1,0)*euler(0.1,0,0.1) | |
| 390 | LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.1-0.2*i) | |
| 391 | end | |
| 392 | n=2 | |
| 393 | for i=0,1,0.1 do | |
| 394 | wait() | |
| 395 | cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5+1*i) | |
| 396 | Torso.Neck.C0=necko*euler(-0.1*i*n,0,0.4-0.2*i*n) | |
| 397 | RootJoint.C0=RootCF*euler(0.1+0.3*i*n,0.2+0.2*i*n,-0.4+0.2*i*n) | |
| 398 | RW.C0=cf(1.5,0.5,0)*euler(4.4-1*i*n,-1.57,0.2) | |
| 399 | LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1) | |
| 400 | RH.C0=cf(0.5,-1,0)*euler(0.1,0,0.1) | |
| 401 | LH.C0=cf(-0.5,-1,0)*euler(-0.1+0.5*i*n,0,-0.3) | |
| 402 | n=n-0.1 | |
| 403 | end | |
| 404 | for i=0,1,0.2 do | |
| 405 | wait() | |
| 406 | cam.CoordinateFrame=RootPart.CFrame*euler(0.2-0.1*i,3-0.1*i,0)*cf(0,0,6+10*i) | |
| 407 | Torso.Neck.C0=necko*euler(-0.1,0,0.2) | |
| 408 | RootJoint.C0=RootCF*euler(0.4+0.2*i,0.4,-0.2) | |
| 409 | RW.C0=cf(1.5,0.5,0)*euler(3.4-2.4*i,-1.57,0.2) | |
| 410 | LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1-0.2*i) | |
| 411 | RH.C0=cf(0.5,-1,0)*euler(0.1-0.3*i,0,0.1+0.2*i) | |
| 412 | LH.C0=cf(-0.5,-1,0)*euler(0.4+0.2*i,0,-0.3) | |
| 413 | end | |
| 414 | print("DO THROW")
| |
| 415 | local ref=part(3,Character,0,1,BrickColor.new("White"),"Reference",vt(0.5,0.5,0.5))
| |
| 416 | ref.Anchored=true | |
| 417 | ref.CFrame=RootPart.CFrame*cf(0,0,-200) | |
| 418 | game:GetService("Debris"):AddItem(ref,7)
| |
| 419 | canhit=false | |
| 420 | local target=nil | |
| 421 | bb=Instance.new("BodyPosition")
| |
| 422 | local gudbai=Instance.new("BodyGyro")
| |
| 423 | con1=ShadeCenter.Touched:connect(function(hit) | |
| 424 | if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character then
| |
| 425 | if canhit==false then | |
| 426 | canhit=true | |
| 427 | tors=hit.Parent.Torso | |
| 428 | print(hit.Parent) | |
| 429 | target=hit.Parent | |
| 430 | bb.Parent=tors | |
| 431 | bb.maxForce=Vector3.new(50000000000000000,50000000000000000,50000000000000000) | |
| 432 | bb.position=ref.Position | |
| 433 | end | |
| 434 | elseif hit.Name~="Base" and canhit==false and hit.Name~="Reference" then | |
| 435 | --hit.Anchored=false | |
| 436 | --hit:BreakJoints() | |
| 437 | --hit.Velocity=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100)) | |
| 438 | end | |
| 439 | end) | |
| 440 | shadeweld.Part0=nil | |
| 441 | --[[local bodypos2=Instance.new("BodyPosition")
| |
| 442 | bodypos2.P=4000 | |
| 443 | bodypos2.maxForce=Vector3.new(5000000,50000000,5000000)*5000 | |
| 444 | bodypos2.position=ref.Position | |
| 445 | bodypos2.Parent=ShadeCenter]] | |
| 446 | prop=Instance.new("RocketPropulsion")
| |
| 447 | prop.MaxSpeed=5000 | |
| 448 | prop.CartoonFactor=0 | |
| 449 | prop.MaxThrust=10000 | |
| 450 | prop.Parent=ShadeCenter | |
| 451 | prop.Target=ref | |
| 452 | prop.ThrustD=1.5 | |
| 453 | prop.TurnD=0 | |
| 454 | prop.TurnP=0 | |
| 455 | prop:Fire() | |
| 456 | local gg=Instance.new("BodyGyro") --gg nubs
| |
| 457 | gg.P=15000 | |
| 458 | gg.D=100 | |
| 459 | gg.maxTorque=Vector3.new(500000000,500000000,500000000) | |
| 460 | gg.cframe=RootPart.CFrame*euler(0,1.57,0) | |
| 461 | gg.Parent=ShadeCenter | |
| 462 | coroutine.resume(coroutine.create(function(Part,Gyro) | |
| 463 | while Gyro.Parent~=nil do | |
| 464 | wait() | |
| 465 | Gyro.cframe=Gyro.cframe*euler(0,0,-1) | |
| 466 | end | |
| 467 | end),ShadeCenter,gg) | |
| 468 | for i=0,1,0.2 do | |
| 469 | wait() | |
| 470 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1-0.1*i,2.9+0.1*i,0)*cf(0,0,16+5*i) | |
| 471 | Torso.Neck.C0=necko*euler(-0.1,0,0.2) | |
| 472 | RootJoint.C0=RootCF*cf(0,0,-0.5*i)*euler(0.6+0.8*i,0.4+0.4*i,-0.2-0.2*i) | |
| 473 | RootJoint.C1=RootCF*euler(0.7*i,0,-0.2*i) | |
| 474 | RW.C0=cf(1.5,0.5,0)*euler(1,-1.57,0.2) | |
| 475 | RW.C1=cf(0,0.5,0)*euler(0.5*i,0,0) | |
| 476 | LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1.2-0.2*i) | |
| 477 | RH.C0=cf(0.5,-1,0)*euler(0.1-0.3,0,0.1+0.2) | |
| 478 | LH.C0=cf(-0.5,-1,0)*euler(0.6+0.2*i,0,-0.3-0.1*i) | |
| 479 | end | |
| 480 | coroutine.resume(coroutine.create(function(Camera) | |
| 481 | print(canhit) | |
| 482 | print(attack) | |
| 483 | while canhit==false and attack==true do | |
| 484 | wait() | |
| 485 | Camera.CoordinateFrame=ShadeCenter.CFrame*cf(0,0,7) | |
| 486 | --Camera.CoordinateFrame=cf(ShadeCenter.Position)*cf(0,0,5) | |
| 487 | end | |
| 488 | for i=0,1,0.1 do | |
| 489 | wait() | |
| 490 | if tors~=nil then | |
| 491 | Camera.CoordinateFrame=tors.CFrame*cf(0,0,7) | |
| 492 | end | |
| 493 | end | |
| 494 | end),cam) | |
| 495 | wait(1.5) | |
| 496 | if target~=nil then | |
| 497 | tors=target.Torso | |
| 498 | partpos.CFrame=tors.CFrame | |
| 499 | ShadesClone1=ShadeCenter:Clone() | |
| 500 | ShadesClone1.Parent=workspace | |
| 501 | local weld1=weld(ShadesClone1,ShadesClone1,tors,cf(0,0,0),cf(0,0,0)) | |
| 502 | ShadesClone2=ShadeCenter:Clone() | |
| 503 | ShadesClone2.Parent=workspace | |
| 504 | local weld2=weld(ShadesClone2,ShadesClone2,tors,cf(0,0,0),cf(0,0,0)) | |
| 505 | --[[bb2=Instance.new("BodyPosition")
| |
| 506 | bb2.Parent=ShadesClone | |
| 507 | bb2.maxForce=Vector3.new(50000000000000000,50000000000000000,50000000000000000) | |
| 508 | bb2.position=tors.Position+vt(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 509 | coroutine.resume(coroutine.create(function(Part,Gyro) | |
| 510 | end),ShadesClone,bb2) | |
| 511 | local gg2=Instance.new("BodyGyro")
| |
| 512 | gg2.P=15000 | |
| 513 | gg2.D=100 | |
| 514 | gg2.maxTorque=Vector3.new(500000000,500000000,500000000) | |
| 515 | gg2.cframe=tors.CFrame*euler(0,1.57,0) | |
| 516 | gg2.Parent=ShadesClone | |
| 517 | coroutine.resume(coroutine.create(function(Part,Gyro) | |
| 518 | while Gyro.Parent~=nil do | |
| 519 | wait() | |
| 520 | print(Gyro.cframe) | |
| 521 | Gyro.cframe=Gyro.cframe*euler(0,0,-0.5) | |
| 522 | end | |
| 523 | end),ShadesClone,gg2)]] | |
| 524 | Shade1.Transparency=1 | |
| 525 | Shade2.Transparency=1 | |
| 526 | shadeweld.Part0=Head | |
| 527 | shadeweld.C0=cf(0,0.4,-0.65) | |
| 528 | prop.Parent=nil | |
| 529 | gg.Parent=nil | |
| 530 | scale=1.5 | |
| 531 | gudbai.P=15000 | |
| 532 | gudbai.D=100 | |
| 533 | gudbai.maxTorque=Vector3.new(500000000,500000000,500000000) | |
| 534 | gudbai.cframe=cf(0,0,0) | |
| 535 | gudbai.Parent=tors | |
| 536 | camCF=tors.CFrame | |
| 537 | for i=0,1,0.02 do | |
| 538 | wait() | |
| 539 | cam.CoordinateFrame=camCF*euler(-0.2*i,0,0)*cf(0,0,7) | |
| 540 | weld1.C0=euler(0,0,0)*cf(20*i,0,0) | |
| 541 | weld1.C1=euler(0,0,7*i) | |
| 542 | weld2.C0=euler(0,0,0)*cf(-20*i,0,0) | |
| 543 | weld2.C1=euler(0,0,7*i) | |
| 544 | gudbai.cframe=cf(0,0,0) | |
| 545 | Torso.Neck.C0=necko*euler(-0.1+0.1*i,0,0.2-0.2*i) | |
| 546 | RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(1.4-1.4*i,0.8-0.8*i,-0.4+0.4*i) | |
| 547 | RootJoint.C1=RootCF*euler(0.7-0.7*i,0,-0.2+0.2*i) | |
| 548 | RW.C0=cf(1.5,0.5,0)*euler(1-1*i,-1.57+1.57*i,0.2-0.2*i) | |
| 549 | RW.C1=cf(0,0.5,0)*euler(0.5-0.5*i,0,0) | |
| 550 | LW.C0=cf(-1.5,0.5,0)*euler(1.2-1.2*i,0,-1.4+1.4*i) | |
| 551 | RH.C0=cf(0.5,-1,0)*euler(-0.2+0.2*i,0,0.4-0.4*i) | |
| 552 | LH.C0=cf(-0.5,-1,0)*euler(0.8-0.8*i,0,-0.4+0.4*i) | |
| 553 | end | |
| 554 | for i=0,1,0.02 do | |
| 555 | wait() | |
| 556 | cam.CoordinateFrame=camCF*euler(-0.2+0.2*i,0,0)*cf(0,0,7+2*i) | |
| 557 | weld1.C0=euler(0,0,0)*cf(20-15*i,0,0) | |
| 558 | weld1.C1=euler(0,0,7+5*i) | |
| 559 | weld2.C0=euler(0,0,0)*cf(-20+15*i,0,0) | |
| 560 | weld2.C1=euler(0,0,7+5*i) | |
| 561 | gudbai.cframe=cf(0,0,0) | |
| 562 | end | |
| 563 | for i=0,6.5,0.1 do | |
| 564 | wait() | |
| 565 | cam.CoordinateFrame=camCF*euler(0,1*i,0)*cf(0,0,9) | |
| 566 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
| |
| 567 | prt.Anchored=true | |
| 568 | prt.CFrame=ShadesClone1.CFrame | |
| 569 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.25,1,.25))
| |
| 570 | game:GetService("Debris"):AddItem(prt,5)
| |
| 571 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 572 | for i=0,1,0.05 do | |
| 573 | wait() | |
| 574 | Part.CFrame=Part.CFrame | |
| 575 | Part.Transparency=i | |
| 576 | Mesh.Scale=Mesh.Scale+vt(0,0.8,0) | |
| 577 | end | |
| 578 | Part.Parent=nil | |
| 579 | end),prt,msh) | |
| 580 | weld1.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100) | |
| 581 | weld2.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100) | |
| 582 | gudbai.cframe=cf(0,0,0) | |
| 583 | end | |
| 584 | wait() | |
| 585 | weld1.C0=cf(1.2,0,-0.7)*euler(0,-1,0.5) | |
| 586 | --weld1.C0=cf(2,1,0)*euler(0,0,1.3) | |
| 587 | --weld1.C0=cf(-2,0,0)*euler(0,1.57,0) | |
| 588 | weld2.C0=cf(-1.2,0,-0.7)*euler(0,-1,-0.5) | |
| 589 | gudbai.P=15000 | |
| 590 | gudbai.D=100 | |
| 591 | gudbai.maxTorque=Vector3.new(500000000,500000000,500000000) | |
| 592 | gudbai.cframe=cf(0,0,0) | |
| 593 | gudbai.Parent=tors | |
| 594 | wait(1) | |
| 595 | partpos.CFrame=tors.CFrame | |
| 596 | --cam.CameraType="Custom" | |
| 597 | for i=0,1,0.05 do | |
| 598 | wait() | |
| 599 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1*i,3.14,0)*cf(0,0,9+4*i) | |
| 600 | Torso.Neck.C0=necko*euler(0.2*i,0,0) | |
| 601 | RootJoint.C0=RootCF*cf(0,0,-0.3*i)*euler(0.3*i,0,0) | |
| 602 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 603 | RW.C0=cf(1.5,0.5,0)*euler(2.8*i,0,0.2*i) | |
| 604 | LW.C0=cf(-1.5,0.5,0)*euler(2.8*i,0,-0.2*i) | |
| 605 | RH.C0=cf(0.5,-1+0.2*i,-0.1*i)*euler(0.1*i,0,0.2*i) | |
| 606 | LH.C0=cf(-0.5,-1+0.2*i,-0.1*i)*euler(0.1*i,0,-0.2*i) | |
| 607 | end | |
| 608 | n=2 | |
| 609 | for i=0,1,0.05 do | |
| 610 | wait() | |
| 611 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1+0.2*i,3.14-0.24*i,0)*cf(0,0,13) | |
| 612 | Torso.Neck.C0=necko*euler(0.2,0,0) | |
| 613 | RootJoint.C0=RootCF*cf(0,0,-0.3)*euler(0.3+0.1*i*n,0,0) | |
| 614 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 615 | RW.C0=cf(1.5,0.5,0)*euler(2.8+0.1*i*n,0,0.2-0.3*i*n) | |
| 616 | LW.C0=cf(-1.5,0.5,0)*euler(2.8+0.1*i*n,0,-0.2+0.3*i*n) | |
| 617 | RH.C0=cf(0.5,-1+0.2,-0.1)*euler(0.1+0.1*i*n,0,0.2) | |
| 618 | LH.C0=cf(-0.5,-1+0.2,-0.1)*euler(0.1+0.1*i*n,0,-0.2) | |
| 619 | n=n-0.1 | |
| 620 | end | |
| 621 | for i=0,1,0.05 do | |
| 622 | wait() | |
| 623 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1,2.9+0.3*i,0)*cf(0,0,13-2*i) | |
| 624 | Torso.Neck.C0=necko*euler(0.2-0.3*i,0,0) | |
| 625 | RootJoint.C0=RootCF*cf(0,0,-0.3+0.3*i)*euler(0.4-0.5*i,0,0) | |
| 626 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 627 | RW.C0=cf(1.5,0.5,0)*euler(2.9-3*i,0,-0.1+0.2*i) | |
| 628 | LW.C0=cf(-1.5,0.5,0)*euler(2.9,0,0.1-0.3*i) | |
| 629 | RH.C0=cf(0.5,-0.8-0.2*i,-0.1+0.1*i)*euler(0.2-0.3*i,0,0.2) | |
| 630 | LH.C0=cf(-0.5,-0.8-0.2*i,-0.1+0.1*i)*euler(0.2-0.3*i,0,-0.2) | |
| 631 | end | |
| 632 | n=2 | |
| 633 | for i=0,1,0.05 do | |
| 634 | wait() | |
| 635 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1,3.2+0.1*i,0)*cf(0,0,13) | |
| 636 | Torso.Neck.C0=necko*euler(-0.1,0,0) | |
| 637 | RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0) | |
| 638 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 639 | RW.C0=cf(1.5,0.5,0)*euler(-0.1,0,0.1) | |
| 640 | LW.C0=cf(-1.5,0.5-0.2*i*n,0)*euler(2.9+0.1*i*n,0,-0.2-0.1*i*n) | |
| 641 | RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2) | |
| 642 | LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2) | |
| 643 | n=n-0.1 | |
| 644 | end | |
| 645 | for i=0,1,0.1 do | |
| 646 | wait() | |
| 647 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1,3.3,0)*cf(0,0,13) | |
| 648 | Torso.Neck.C0=necko*euler(-0.1,0,-0.3*i) | |
| 649 | RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0.3*i) | |
| 650 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 651 | RW.C0=cf(1.5,0.5,0)*euler(-0.1+3.2*i,0,0.1) | |
| 652 | LW.C0=cf(-1.5,0.3+0.2,0)*euler(3-3.2*i,0,-0.3+0.2*i) | |
| 653 | RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2) | |
| 654 | LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2) | |
| 655 | end | |
| 656 | -- u gon get fuck'd | |
| 657 | drill=Instance.new("Model")
| |
| 658 | drill.Parent=Character | |
| 659 | drill.Name="Drill" | |
| 660 | local drillp=part(3,drill,0,0,BrickColor.new("Medium stone grey"),"Drill Part",vt(0.5,0.5,0.5))
| |
| 661 | drillmsh=mesh("SpecialMesh",drillp,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(.5,1,.5))
| |
| 662 | local drillweld=weld(drillp,drillp,RightArm,cf(0,-1,0)*euler(3.14,0,0),cf(0,0,0)) | |
| 663 | for i=0,1,0.05 do | |
| 664 | wait() | |
| 665 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1+0.2*i,3.3-0.2*i,0)*cf(0,0,13-3*i) | |
| 666 | Torso.Neck.C0=necko*euler(-0.1-0.1*i,0,-0.3) | |
| 667 | RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0.3) | |
| 668 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 669 | RW.C0=cf(1.5,0.5,0)*euler(3.1+0.1*i,0,0.1-0.1*i) | |
| 670 | LW.C0=cf(-1.5,0.3+0.2,0)*euler(-0.2,0,-0.1) | |
| 671 | RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2) | |
| 672 | LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2) | |
| 673 | end | |
| 674 | wait(0.5) | |
| 675 | for i=0,1,0.1 do | |
| 676 | wait() | |
| 677 | cam.CoordinateFrame=RootPart.CFrame*euler(0.3,3.1,0)*cf(0,0,10-1*i) | |
| 678 | drillmsh.Scale=vt(.5,1+8*i,.5) | |
| 679 | drillweld.C0=cf(0,-1-7*i,0)*euler(3.14,0,0) | |
| 680 | end | |
| 681 | wait(0.4) | |
| 682 | for i=0,1,0.2 do | |
| 683 | wait() | |
| 684 | cam.CoordinateFrame=RootPart.CFrame*euler(0.3-0.4*i,3.1,0)*cf(0,0,9+7*i) | |
| 685 | drillmsh.Scale=vt(.5+6.5*i,9,.5+6.5*i) | |
| 686 | drillweld.C0=cf(0,-8,0)*euler(3.14,0,0) | |
| 687 | end | |
| 688 | local drillpcir=part(3,drill,0,0,BrickColor.new("Medium stone grey"),"Drill Circle",vt(0.5,0.5,0.5))
| |
| 689 | drillmshc=mesh("CylinderMesh",drillpcir,"","",vt(0,0,0),vt(18,1,18))
| |
| 690 | local drillweldc=weld(drillpcir,drillpcir,drillp,cf(0,-7,0)*euler(0,0,0),cf(0,0,0)) | |
| 691 | coroutine.resume(coroutine.create(function(Part) | |
| 692 | numb1=-7 | |
| 693 | numb2=0 | |
| 694 | numb3=4.7 | |
| 695 | for i=1,24 do | |
| 696 | local drillp2=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part2",vt(0.5,0.5,0.5))
| |
| 697 | drillmsh2=mesh("BlockMesh",drillp2,"","",vt(0,0,0),vt(1,1,1))
| |
| 698 | local drillweld2=weld(drillp2,drillp2,Part,euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0)) | |
| 699 | local drillp3=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part3",vt(0.5,0.5,0.5))
| |
| 700 | drillmsh3=mesh("BlockMesh",drillp3,"","",vt(0,0,0),vt(1,1,1))
| |
| 701 | local drillweld3=weld(drillp3,drillp3,Part,euler(0,1.57,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0)) | |
| 702 | local drillp4=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part4",vt(0.5,0.5,0.5))
| |
| 703 | drillmsh4=mesh("BlockMesh",drillp4,"","",vt(0,0,0),vt(1,1,1))
| |
| 704 | local drillweld4=weld(drillp4,drillp4,Part,euler(0,3.14,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0)) | |
| 705 | local drillp5=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part5",vt(0.5,0.5,0.5))
| |
| 706 | drillmsh5=mesh("BlockMesh",drillp5,"","",vt(0,0,0),vt(1,1,1))
| |
| 707 | local drillweld5=weld(drillp5,drillp5,Part,euler(0,4.71,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0)) | |
| 708 | numb1=numb1+0.6 | |
| 709 | numb2=numb2+(0.785)/4 | |
| 710 | numb3=numb3-0.2 | |
| 711 | wait() | |
| 712 | end | |
| 713 | end),drillp) | |
| 714 | wait(1) | |
| 715 | for i=0,1,0.1 do | |
| 716 | wait() | |
| 717 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1-0.4*i,3.1,0)*cf(0,0,16-7*i) | |
| 718 | Torso.Neck.C0=necko*euler(-0.2+0.2*i,0,-0.3+0.2*i) | |
| 719 | RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1+0.1*i,0,0.3-0.2*i) | |
| 720 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 721 | RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(3.2-1.5*i,0,0.2-1.2*i) | |
| 722 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.1) | |
| 723 | RH.C0=cf(0.5,-1,0)*euler(-0.1+0.1*i,0,0.2) | |
| 724 | LH.C0=cf(-0.5,-1,0)*euler(-0.1+0.1*i,0,-0.2) | |
| 725 | end | |
| 726 | for i=0,1,0.02 do | |
| 727 | wait() | |
| 728 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.5+0.6*i,3.1-3.7*i,0)*cf(-3*i,0,9+1*i) | |
| 729 | Torso.Neck.C0=necko*euler(0,0,-0.1+1.67*i) | |
| 730 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.1-1.67*i) | |
| 731 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 732 | RW.C0=cf(1-1.5*i,0.5,-0.5-0.5*i)*euler(1.7-0.2*i,0,-1-0.57*i) | |
| 733 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14*i,-0.1) | |
| 734 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 735 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 736 | end | |
| 737 | Torso.Neck.C0=necko*euler(0,0,1.57) | |
| 738 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.-1.57) | |
| 739 | RootJoint.C1=RootCF*euler(0,0,0) | |
| 740 | RW.C0=cf(1-1.5,0.5,-1)*euler(1.5,0,-1.57) | |
| 741 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14,0.1) | |
| 742 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 743 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 744 | doing=true | |
| 745 | coroutine.resume(coroutine.create(function(Model,Weld) | |
| 746 | i=0 | |
| 747 | num=0 | |
| 748 | while Model.Parent~=nil and doing==true do | |
| 749 | wait() | |
| 750 | Weld.C0=cf(0,-8,0)*euler(3.14,i,0) | |
| 751 | i=i+0.5 | |
| 752 | if i%1==0 then | |
| 753 | local prt=part(3,workspace,0,0,BrickColor.new("Cyan"),"Effect",vt(0.5,0.5,0.5))
| |
| 754 | prt.Anchored=true | |
| 755 | prt.CFrame=RootPart.CFrame | |
| 756 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(num,num,num))
| |
| 757 | game:GetService("Debris"):AddItem(prt,5)
| |
| 758 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 759 | for i=0,1,0.05 do | |
| 760 | wait() | |
| 761 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 762 | Part.Transparency=i | |
| 763 | Mesh.Scale=Mesh.Scale+vt(num,num,num) | |
| 764 | end | |
| 765 | Part.Parent=nil | |
| 766 | end),prt,msh) | |
| 767 | end | |
| 768 | if num<=0.8 then | |
| 769 | num=num+0.05 | |
| 770 | end | |
| 771 | end | |
| 772 | end),drill,drillweld) | |
| 773 | wait(2.5) | |
| 774 | bodypos.Parent=nil | |
| 775 | for i=1,5,0.05 do | |
| 776 | wait() | |
| 777 | cam.CoordinateFrame=RootPart.CFrame*euler(0.1,-0.6,0)*cf(-3,0,10) | |
| 778 | partpos.CFrame=tors.CFrame | |
| 779 | RootPart.CFrame=RootPart.CFrame*cf(0,0,-i) | |
| 780 | if i>=4.85 and i<=4.90 then | |
| 781 | print("ded")
| |
| 782 | coroutine.resume(coroutine.create(function() | |
| 783 | for i=1,10 do | |
| 784 | local prt=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
| |
| 785 | prt.Anchored=true | |
| 786 | prt.CFrame=tors.CFrame | |
| 787 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(2,2,2))
| |
| 788 | game:GetService("Debris"):AddItem(prt,5)
| |
| 789 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 790 | for i=0,1,0.05 do | |
| 791 | wait() | |
| 792 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 793 | Part.Transparency=i | |
| 794 | Mesh.Scale=Mesh.Scale+vt(1,1,1) | |
| 795 | end | |
| 796 | Part.Parent=nil | |
| 797 | end),prt,msh) | |
| 798 | wait() | |
| 799 | end | |
| 800 | end)) | |
| 801 | end | |
| 802 | end | |
| 803 | doing=false | |
| 804 | print("end")
| |
| 805 | bodypos.P=4000 | |
| 806 | bodypos.maxForce=Vector3.new(5000000,50000000,5000000)*5000 | |
| 807 | bodypos.position=Torso.Position+Vector3.new(0,0,0) | |
| 808 | bodypos.Parent=Torso | |
| 809 | cam.CoordinateFrame=RootPart.CFrame*euler(-0.1,3.4,0)*cf(0,0,15) | |
| 810 | wait(2) | |
| 811 | for i=0,1,0.05 do | |
| 812 | wait() | |
| 813 | Torso.Neck.C0=necko*euler(0,0,1.57-1.77*i) | |
| 814 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.-1.57+1.77*i) | |
| 815 | RW.C0=cf(1-1.5+1*i,0.5,-1+0.5*i)*euler(1.5+0.4*i,0,-1.57+0.57*i) | |
| 816 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14-3.14*i,0.1) | |
| 817 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 818 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 819 | end | |
| 820 | for _,v in pairs(drill:children()) do | |
| 821 | if v.Name~="Drill Part" then | |
| 822 | v.Parent=nil | |
| 823 | end | |
| 824 | end | |
| 825 | for i=0,1,0.2 do | |
| 826 | wait() | |
| 827 | drillmsh.Scale=vt(7-6.5*i,9,7-6.5*i) | |
| 828 | Torso.Neck.C0=necko*euler(0,0,-0.2+0.6*i) | |
| 829 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.2-0.6*i) | |
| 830 | RW.C0=cf(1-0.5+1*i,0.5,-0.5+0.5*i)*euler(1.9-1.4*i,0,-1+2*i) | |
| 831 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,0.1-0.2*i) | |
| 832 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 833 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 834 | end | |
| 835 | n=2 | |
| 836 | for i=0,1,0.2 do | |
| 837 | wait() | |
| 838 | Torso.Neck.C0=necko*euler(0,0,0.4+0.1*i*n) | |
| 839 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.4-0.1*i*n) | |
| 840 | RW.C0=cf(1.5,0.5,0)*euler(0.5-0.1*i*n,0,1+0.1*i*n) | |
| 841 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.1) | |
| 842 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 843 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 844 | n=n-0.2 | |
| 845 | end | |
| 846 | wait(0.2) | |
| 847 | for i=0,1,0.2 do | |
| 848 | wait() | |
| 849 | Torso.Neck.C0=necko*euler(0.1*i,0,0.5+0.1*i) | |
| 850 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.5-0.2*i) | |
| 851 | RW.C0=cf(1.5-0.5*i,0.5,0.5*i)*euler(0.4,0,1-0.2*i) | |
| 852 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.1-0.2*i) | |
| 853 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 854 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 855 | drillmsh.Scale=vt(.5,9-8*i,.5) | |
| 856 | drillweld.C0=cf(0,-8+7*i,0)*euler(3.14,0,0) | |
| 857 | end | |
| 858 | n=2 | |
| 859 | for i=0,1,0.2 do | |
| 860 | wait() | |
| 861 | Torso.Neck.C0=necko*euler(0.1+0.1*i*n,0,0.6+0.1*i*n) | |
| 862 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.7-0.1*i*n) | |
| 863 | RW.C0=cf(1.5-0.5,0.5,0.5)*euler(0.4-0.1*i*n,0,0.8+0.1*i*n) | |
| 864 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.3-0.1*i*n) | |
| 865 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 866 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 867 | n=n-0.2 | |
| 868 | end | |
| 869 | drill.Parent=nil | |
| 870 | for i=0,1,0.1 do | |
| 871 | wait() | |
| 872 | Torso.Neck.C0=necko*euler(0.2,0.2*i,0.7) | |
| 873 | RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.9) | |
| 874 | RW.C0=cf(1.5-0.5+0.5*i,0.5,0.5-0.5*i)*euler(0.3,0,0.9-0.2*i) | |
| 875 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.4+0.1*i) | |
| 876 | RH.C0=cf(0.5,-1,0)*euler(0,0,0.2) | |
| 877 | LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2) | |
| 878 | end | |
| 879 | --[[sound:Stop() | |
| 880 | sound2:Stop() | |
| 881 | sound3:Stop() | |
| 882 | DONTLOSEYOURWAAAAAAAY=Instance.new("Sound")
| |
| 883 | DONTLOSEYOURWAAAAAAAY.Parent=tors | |
| 884 | DONTLOSEYOURWAAAAAAAY.Volume=1 | |
| 885 | DONTLOSEYOURWAAAAAAAY.SoundId="http://www.roblox.com/asset/?id=138109980" | |
| 886 | DONTLOSEYOURWAAAAAAAY:Play() | |
| 887 | DONTLOSEYOURWAAAAAAAY=Instance.new("Sound")
| |
| 888 | DONTLOSEYOURWAAAAAAAY.Parent=Torso | |
| 889 | DONTLOSEYOURWAAAAAAAY.Volume=1 | |
| 890 | DONTLOSEYOURWAAAAAAAY.SoundId="http://www.roblox.com/asset/?id=138109980" | |
| 891 | DONTLOSEYOURWAAAAAAAY:Play()]] | |
| 892 | wait(2.2) | |
| 893 | --very ded | |
| 894 | POS=tors.Position | |
| 895 | boomCF=tors.CFrame | |
| 896 | e=Instance.new("Explosion")
| |
| 897 | e.BlastRadius=30 | |
| 898 | e.Position=POS | |
| 899 | e.BlastPressure=e.BlastPressure*2.5 | |
| 900 | e.Parent=workspace | |
| 901 | local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
| |
| 902 | prt.Anchored=true | |
| 903 | prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 904 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(10,10,10))
| |
| 905 | game:GetService("Debris"):AddItem(prt,5)
| |
| 906 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 907 | for i=0,1,0.01 do | |
| 908 | wait() | |
| 909 | Part.CFrame=Part.CFrame | |
| 910 | Part.Transparency=i | |
| 911 | Mesh.Scale=Mesh.Scale+vt(1.5,1.5,1.5) | |
| 912 | end | |
| 913 | Part.Parent=nil | |
| 914 | end),prt,msh) | |
| 915 | for i=1,10 do | |
| 916 | wait() | |
| 917 | local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
| |
| 918 | prt.Anchored=true | |
| 919 | prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 920 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(10,10,10))
| |
| 921 | game:GetService("Debris"):AddItem(prt,5)
| |
| 922 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 923 | for i=0,1,0.02 do | |
| 924 | wait() | |
| 925 | Part.CFrame=Part.CFrame | |
| 926 | Part.Transparency=i | |
| 927 | Mesh.Scale=Mesh.Scale+vt(1.5,1.5,1.5) | |
| 928 | end | |
| 929 | Part.Parent=nil | |
| 930 | end),prt,msh) | |
| 931 | end | |
| 932 | wait(1.5) | |
| 933 | e=Instance.new("Explosion")
| |
| 934 | e.BlastRadius=30 | |
| 935 | e.Position=POS | |
| 936 | e.BlastPressure=e.BlastPressure*2.5 | |
| 937 | e.Parent=workspace | |
| 938 | local prt=part(3,workspace,0,0,BrickColor.new("Bright yellow"),"Effect",vt(0.5,0.5,0.5))
| |
| 939 | prt.Anchored=true | |
| 940 | prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 941 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(10,10,10))
| |
| 942 | game:GetService("Debris"):AddItem(prt,5)
| |
| 943 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 944 | for i=0,1,0.01 do | |
| 945 | wait() | |
| 946 | Part.CFrame=Part.CFrame | |
| 947 | Part.Transparency=i/2 | |
| 948 | Mesh.Scale=Mesh.Scale+vt(3,3,3) | |
| 949 | end | |
| 950 | Part.Parent=nil | |
| 951 | end),prt,msh) | |
| 952 | for i=1,10 do | |
| 953 | wait(0.1) | |
| 954 | local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
| |
| 955 | prt.Anchored=true | |
| 956 | prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 957 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(10,10,10))
| |
| 958 | game:GetService("Debris"):AddItem(prt,5)
| |
| 959 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 960 | for i=0,1,0.01 do | |
| 961 | wait() | |
| 962 | Part.CFrame=Part.CFrame | |
| 963 | Part.Transparency=i | |
| 964 | Mesh.Scale=Mesh.Scale+vt(1,1,1) | |
| 965 | end | |
| 966 | Part.Parent=nil | |
| 967 | end),prt,msh) | |
| 968 | end | |
| 969 | --wait(1.5) | |
| 970 | wait(1.5) | |
| 971 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
| |
| 972 | prt.Anchored=true | |
| 973 | prt.CFrame=ShadeCenter.CFrame | |
| 974 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
| |
| 975 | game:GetService("Debris"):AddItem(prt,5)
| |
| 976 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 977 | for i=0,1,0.05 do | |
| 978 | wait() | |
| 979 | Part.CFrame=Part.CFrame | |
| 980 | Part.Transparency=i | |
| 981 | Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1) | |
| 982 | end | |
| 983 | Part.Parent=nil | |
| 984 | end),prt,msh) | |
| 985 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
| |
| 986 | prt.Anchored=true | |
| 987 | prt.CFrame=ShadeCenter.CFrame*euler(1.57,0,0) | |
| 988 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
| |
| 989 | game:GetService("Debris"):AddItem(prt,5)
| |
| 990 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 991 | for i=0,1,0.05 do | |
| 992 | wait() | |
| 993 | Part.CFrame=Part.CFrame | |
| 994 | Part.Transparency=i | |
| 995 | Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1) | |
| 996 | end | |
| 997 | Part.Parent=nil | |
| 998 | end),prt,msh) | |
| 999 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
| |
| 1000 | prt.Anchored=true | |
| 1001 | prt.CFrame=ShadeCenter.CFrame*euler(0,0,1.57) | |
| 1002 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
| |
| 1003 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1004 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1005 | for i=0,1,0.05 do | |
| 1006 | wait() | |
| 1007 | Part.CFrame=Part.CFrame | |
| 1008 | Part.Transparency=i | |
| 1009 | Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1) | |
| 1010 | end | |
| 1011 | Part.Parent=nil | |
| 1012 | end),prt,msh) | |
| 1013 | Shade1.Transparency=0.05 | |
| 1014 | Shade2.Transparency=0.05 | |
| 1015 | wait(1) | |
| 1016 | sound:Stop() | |
| 1017 | wait() | |
| 1018 | sound2:Stop() | |
| 1019 | sound3:Stop() | |
| 1020 | wait(1) | |
| 1021 | ShadesClone1.Parent=nil | |
| 1022 | ShadesClone2.Parent=nil | |
| 1023 | end | |
| 1024 | wait() | |
| 1025 | print(target) | |
| 1026 | con1:disconnect() | |
| 1027 | bb.Parent=nil | |
| 1028 | gudbai.Parent=nil | |
| 1029 | wait(.5) | |
| 1030 | sound:Stop() | |
| 1031 | wait() | |
| 1032 | sound2:Stop() | |
| 1033 | sound3:Stop() | |
| 1034 | --bodypos2.Parent=nil | |
| 1035 | bodypos.Parent=nil | |
| 1036 | bodygy.Parent=nil | |
| 1037 | prop.Parent=nil | |
| 1038 | gg.Parent=nil | |
| 1039 | scale=1.5 | |
| 1040 | Torso.Neck.C0=necko | |
| 1041 | RootJoint.C0=RootCF | |
| 1042 | RootJoint.C1=RootCF | |
| 1043 | shadeweld.Part0=Head | |
| 1044 | shadeweld.C0=cf(0,0.4,-0.65) | |
| 1045 | prop.Parent=nil | |
| 1046 | gg.Parent=nil | |
| 1047 | scale=1.5 | |
| 1048 | RW.Parent=nil | |
| 1049 | LW.Parent=nil | |
| 1050 | RSH.Parent=Torso | |
| 1051 | LSH.Parent=Torso | |
| 1052 | RHP.Parent=Torso | |
| 1053 | LHP.Parent=Torso | |
| 1054 | end | |
| 1055 | ||
| 1056 | function ob1d() | |
| 1057 | if attack==true then return end | |
| 1058 | attack=true | |
| 1059 | print("DRILLBREEEEEAK")
| |
| 1060 | GIGADRILLBREAKER() | |
| 1061 | attack=false | |
| 1062 | cam.CameraType="Custom" | |
| 1063 | end | |
| 1064 | ||
| 1065 | function s(mouse) | |
| 1066 | mouse.Button1Down:connect(function() ob1d() end) | |
| 1067 | end | |
| 1068 | ||
| 1069 | Bin.Selected:connect(s) |