SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");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("running the script noob")
| |
| 141 | ||
| 142 | local asin = math.asin | |
| 143 | local atan2 = math.atan2 | |
| 144 | local rad = math.rad | |
| 145 | local sin = math.sin | |
| 146 | local abs = math.abs | |
| 147 | local ceil = math.ceil | |
| 148 | local cos = math.cos | |
| 149 | local pi = math.pi | |
| 150 | local rclcount = 0 | |
| 151 | local rcl = 0 | |
| 152 | local rclcounttime = 50 | |
| 153 | local rclcountspeed = 1 | |
| 154 | local player = game.Players.LocalPlayer | |
| 155 | local pchar = player.Character | |
| 156 | local torso = pchar.Torso | |
| 157 | local mouse = player:GetMouse() | |
| 158 | local attack = false | |
| 159 | local combo = 0 | |
| 160 | pchar.Archivable=true | |
| 161 | Cols={"Black","Really black","Royal purple","Alder","Magenta"}
| |
| 162 | ||
| 163 | ||
| 164 | function stick(x, y) | |
| 165 | weld = Instance.new("Motor")
| |
| 166 | weld.Name='mot' | |
| 167 | weld.Part0 = x | |
| 168 | weld.Part1 = y | |
| 169 | local HitPos = x.Position | |
| 170 | local CJ = CFrame.new(HitPos) | |
| 171 | local C0 = x.CFrame:inverse() *CJ | |
| 172 | local C1 = y.CFrame:inverse() * CJ | |
| 173 | weld.C0 = C0 | |
| 174 | weld.C1 = C1 | |
| 175 | weld.Parent = x | |
| 176 | end | |
| 177 | ||
| 178 | do | |
| 179 | local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end | |
| 180 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end | |
| 181 | local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end | |
| 182 | ||
| 183 | function clerp(a,b,t) | |
| 184 | local qa = {QuaternionFromCFrame(a)}
| |
| 185 | local qb = {QuaternionFromCFrame(b)}
| |
| 186 | local ax, ay, az = a.x, a.y, a.z | |
| 187 | local bx, by, bz = b.x, b.y, b.z | |
| 188 | ||
| 189 | local _t = 1-t | |
| 190 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 191 | end | |
| 192 | end | |
| 193 | ||
| 194 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 195 | local p = Instance.new('Part',parent or Weapon)
| |
| 196 | p.formFactor = 'Custom' | |
| 197 | p.Size = Vector3.new(x,y,z) | |
| 198 | p.BrickColor = BrickColor.new(color) | |
| 199 | p.CanCollide = cc | |
| 200 | p.Transparency = tr | |
| 201 | p.Anchored = an | |
| 202 | p.TopSurface,p.BottomSurface = 0,0 | |
| 203 | p.Locked=true | |
| 204 | p:BreakJoints() | |
| 205 | return p | |
| 206 | end | |
| 207 | ||
| 208 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
| 209 | local wp = Instance.new('WedgePart',parent or Weapon)
| |
| 210 | wp.formFactor = 'Custom' | |
| 211 | wp.Size = Vector3.new(x,y,z) | |
| 212 | wp.BrickColor = BrickColor.new(color) | |
| 213 | wp.CanCollide = cc | |
| 214 | wp.Transparency = tr | |
| 215 | wp.Anchored = an | |
| 216 | wp.TopSurface,wp.BottomSurface = 0,0 | |
| 217 | return wp | |
| 218 | end | |
| 219 | ||
| 220 | local function CFrameFromTopBack(at, top, back) | |
| 221 | local right = top:Cross(back) | |
| 222 | return CFrame.new(at.x, at.y, at.z, | |
| 223 | right.x, top.x, back.x, | |
| 224 | right.y, top.y, back.y, | |
| 225 | right.z, top.z, back.z) | |
| 226 | end | |
| 227 | ||
| 228 | function Triangle(a, b, c) | |
| 229 | local edg1 = (c-a):Dot((b-a).unit) | |
| 230 | local edg2 = (a-b):Dot((c-b).unit) | |
| 231 | local edg3 = (b-c):Dot((a-c).unit) | |
| 232 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 233 | a, b, c = a, b, c | |
| 234 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 235 | a, b, c = b, c, a | |
| 236 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 237 | a, b, c = c, a, b | |
| 238 | else | |
| 239 | print("unreachable")
| |
| 240 | end | |
| 241 | local len1 = (c-a):Dot((b-a).unit) | |
| 242 | local len2 = (b-a).magnitude - len1 | |
| 243 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 244 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 245 | local list = {}
| |
| 246 | if len1 > 0.01 then | |
| 247 | local w1 = wPart(0,0,0,'Really black',0.5,false,true,pchar) | |
| 248 | local sz = Vector3.new(0.2, width, len1) | |
| 249 | w1.Size = sz | |
| 250 | local sp = Mesh(w1,2,0,0,0) | |
| 251 | sp.MeshType='Wedge' | |
| 252 | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size | |
| 253 | w1:BreakJoints() | |
| 254 | w1.Anchored = true | |
| 255 | w1.Transparency = 0.7 | |
| 256 | Spawn(function() | |
| 257 | for i=0,1,0.1 do | |
| 258 | wait() | |
| 259 | w1.Transparency=w1.Transparency+0.03 | |
| 260 | end | |
| 261 | end) | |
| 262 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 263 | table.insert(list,w1) | |
| 264 | end | |
| 265 | if len2 > 0.01 then | |
| 266 | local w2 = wPart(0,0,0,'Really black',0.5,false,true,pchar) | |
| 267 | local sz = Vector3.new(0.2, width, len2) | |
| 268 | w2.Size = sz | |
| 269 | local sp = Mesh(w2,2,0,0,0) | |
| 270 | sp.MeshType='Wedge' | |
| 271 | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size | |
| 272 | w2:BreakJoints() | |
| 273 | w2.Anchored = true | |
| 274 | w2.Transparency = 0.7 | |
| 275 | Spawn(function() | |
| 276 | for i=0,1,0.1 do | |
| 277 | wait() | |
| 278 | w2.Transparency=w2.Transparency+0.03 | |
| 279 | end | |
| 280 | end) | |
| 281 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 282 | table.insert(list,w2) | |
| 283 | end | |
| 284 | return unpack(list) | |
| 285 | end | |
| 286 | ||
| 287 | function mgblock(pa,cfr,tm,col1,col2,sz,wa) | |
| 288 | local cols={col1,col2}
| |
| 289 | Spawn(function() | |
| 290 | for i=1,tm do | |
| 291 | local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar) | |
| 292 | curre=a | |
| 293 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 294 | local m= Mesh(a,3,v1,v2,v3) | |
| 295 | a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 296 | Spawn(function() | |
| 297 | while wait() do | |
| 298 | if a.Transparency >= 1 then a:Destroy() break end | |
| 299 | m.Scale=m.Scale-Vector3.new(.1,0.1,0.1) | |
| 300 | a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.1,0) | |
| 301 | a.Transparency=a.Transparency+0.05 | |
| 302 | end | |
| 303 | end) | |
| 304 | wait(wa) | |
| 305 | end | |
| 306 | end) | |
| 307 | return curre | |
| 308 | end | |
| 309 | ||
| 310 | function trail(p,t,h) | |
| 311 | Spawn(function() | |
| 312 | local blcf = p.CFrame | |
| 313 | local scfr = blcf | |
| 314 | for i=1,t do | |
| 315 | local blcf = p.CFrame | |
| 316 | if scfr and (p.Position-scfr.p).magnitude > .1 then | |
| 317 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 318 | if a then game.Debris:AddItem(a,1) end | |
| 319 | if b then game.Debris:AddItem(b,1) end | |
| 320 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 321 | if a then game.Debris:AddItem(a,1) end | |
| 322 | if b then game.Debris:AddItem(b,1) end | |
| 323 | scfr = blcf | |
| 324 | elseif not scfr then | |
| 325 | scfr = blcf | |
| 326 | end | |
| 327 | game:service'RunService'.RenderStepped:wait() | |
| 328 | end | |
| 329 | scfr=nil | |
| 330 | end) | |
| 331 | end | |
| 332 | ||
| 333 | function cloneefx() | |
| 334 | for _,v in pairs(pchar:GetChildren()) do | |
| 335 | if v.ClassName=="Part" then | |
| 336 | local efx=v:Clone() | |
| 337 | efx.CanCollide=true | |
| 338 | efx.Anchored=true | |
| 339 | efx.Parent=workspace | |
| 340 | efx.BrickColor=BrickColor.new("Really black")
| |
| 341 | efx:BreakJoints() | |
| 342 | Spawn(function() | |
| 343 | for i=1,10 do wait(.05) | |
| 344 | efx.Transparency=efx.Transparency+.1 | |
| 345 | end | |
| 346 | efx:Destroy() | |
| 347 | end) | |
| 348 | end | |
| 349 | end | |
| 350 | end | |
| 351 | ||
| 352 | so = function(id,par,lo,pi,tm) | |
| 353 | local s = Instance.new("Sound",par)
| |
| 354 | s.Looped=lo | |
| 355 | s.Pitch=pi | |
| 356 | s.SoundId = "http://roblox.com/asset/?id="..id | |
| 357 | s:play() | |
| 358 | s.Volume=10 | |
| 359 | game.Debris:AddItem(s,tm) | |
| 360 | return s | |
| 361 | end | |
| 362 | ||
| 363 | function posfix(nom) | |
| 364 | Spawn(function() | |
| 365 | local bg=Instance.new("BodyGyro",pchar.Torso)
| |
| 366 | bg.maxTorque=Vector3.new(0,math.huge,0) | |
| 367 | bg.P=5000 | |
| 368 | bg.D=100 | |
| 369 | bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0) | |
| 370 | wait(.5) | |
| 371 | bg:Destroy() | |
| 372 | end) | |
| 373 | end | |
| 374 | ||
| 375 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
| 376 | local w = Instance.new('Motor',par or p0)
| |
| 377 | w.Part0 = p0 | |
| 378 | w.Part1 = p1 | |
| 379 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
| 380 | return w | |
| 381 | end | |
| 382 | ||
| 383 | Mesh = function(par,num,x,y,z) | |
| 384 | local msh = _ | |
| 385 | if num == 1 then | |
| 386 | msh = Instance.new("CylinderMesh",par)
| |
| 387 | elseif num == 2 then | |
| 388 | msh = Instance.new("SpecialMesh",par)
| |
| 389 | msh.MeshType = 3 | |
| 390 | elseif num == 3 then | |
| 391 | msh = Instance.new("BlockMesh",par)
| |
| 392 | elseif num == 4 then | |
| 393 | msh = Instance.new("SpecialMesh",par)
| |
| 394 | msh.MeshType = "Torso" | |
| 395 | elseif type(num) == 'string' then | |
| 396 | msh = Instance.new("SpecialMesh",par)
| |
| 397 | msh.MeshId = num | |
| 398 | end | |
| 399 | msh.Scale = Vector3.new(x,y,z) | |
| 400 | return msh | |
| 401 | end | |
| 402 | ||
| 403 | anglespeed = 1 | |
| 404 | ||
| 405 | angle = 0 | |
| 406 | ||
| 407 | local function getAngles(cf) | |
| 408 | local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components() | |
| 409 | return atan2(-m12,m22),asin(m02),atan2(-m01,m00) | |
| 410 | end | |
| 411 | ||
| 412 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 413 | local a= Part(1,1,1,col1,.5,false,true,pchar) | |
| 414 | local a2= Part(1,1,1,col2,.5,false,true,pchar) | |
| 415 | local a3= Part(1,1,1,col2,.5,false,true,pchar) | |
| 416 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 417 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 418 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 419 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 420 | a.CFrame=cfr | |
| 421 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 422 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 423 | for i,v in pairs(workspace:children()) do | |
| 424 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 425 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 426 | if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
| |
| 427 | v.Humanoid.Health=v.Humanoid.Health-dmg | |
| 428 | v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2)) | |
| 429 | end | |
| 430 | end | |
| 431 | end | |
| 432 | end | |
| 433 | Spawn(function() | |
| 434 | while true do | |
| 435 | wait() | |
| 436 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 437 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 438 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 439 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 440 | a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2)) | |
| 441 | a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2)) | |
| 442 | a.Transparency=a.Transparency+0.05 | |
| 443 | a2.Transparency=a2.Transparency+0.05 | |
| 444 | a3.Transparency=a3.Transparency+0.05 | |
| 445 | end | |
| 446 | end) | |
| 447 | end | |
| 448 | ||
| 449 | function tmdmg(tm,pa,dmg,rng) | |
| 450 | Spawn(function() | |
| 451 | for i=1,tm do wait() | |
| 452 | for i,v in pairs(workspace:children()) do | |
| 453 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 454 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 455 | if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
| |
| 456 | v.Humanoid.Health=v.Humanoid.Health-dmg | |
| 457 | end | |
| 458 | end | |
| 459 | end | |
| 460 | end | |
| 461 | end | |
| 462 | end) | |
| 463 | end | |
| 464 | ||
| 465 | Lerp = {
| |
| 466 | Number = function(C1,C2,inc) | |
| 467 | return C1 + (C2 - C1) * inc | |
| 468 | end; | |
| 469 | CFrame = function(a,b,m) | |
| 470 | local c,d={a:components()},{b:components()}
| |
| 471 | table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end) | |
| 472 | return CFrame.new(unpack(c)) | |
| 473 | end; | |
| 474 | } | |
| 475 | ||
| 476 | local function genWeld(a,b) | |
| 477 | local w = Instance.new("Weld",a)
| |
| 478 | w.Part0 = a | |
| 479 | w.Part1 = b | |
| 480 | return w | |
| 481 | end | |
| 482 | ||
| 483 | local Neck = genWeld(pchar.Torso,pchar.Head) | |
| 484 | Neck.C0 = CFrame.new(0,1,0) | |
| 485 | Neck.C1 = CFrame.new(0,-0.5,0) | |
| 486 | local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm']) | |
| 487 | LeftShoulder.C0 = CFrame.new(-1,0.5,0) | |
| 488 | LeftShoulder.C1 = CFrame.new(0.5,0.5,0) | |
| 489 | local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm']) | |
| 490 | RightShoulder.C0 = CFrame.new(1,0.5,0) | |
| 491 | RightShoulder.C1 = CFrame.new(-0.5,0.5,0) | |
| 492 | local LeftHip = genWeld(pchar.Torso,pchar['Left Leg']) | |
| 493 | LeftHip.C0 = CFrame.new(-1,-1,0) | |
| 494 | LeftHip.C1 = CFrame.new(-0.5,1,0) | |
| 495 | local RightHip = genWeld(pchar.Torso,pchar['Right Leg']) | |
| 496 | RightHip.C0 = CFrame.new(1,-1,0) | |
| 497 | RightHip.C1 = CFrame.new(0.5,1,0) | |
| 498 | local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso) | |
| 499 | RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi) | |
| 500 | RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi) | |
| 501 | ||
| 502 | local m = Instance.new("Model")
| |
| 503 | m.Name = "Model" | |
| 504 | p1 = Instance.new("Part", m)
| |
| 505 | p1.BrickColor = BrickColor.new("Royal purple")
| |
| 506 | p1.FormFactor = Enum.FormFactor.Custom | |
| 507 | p1.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006) | |
| 508 | p1.CFrame = CFrame.new(-4.38250017, 5.90899992, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006) | |
| 509 | p1.Anchored = true | |
| 510 | p1.CanCollide = false | |
| 511 | b1 = Instance.new("SpecialMesh", p1)
| |
| 512 | b1.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 513 | b1.TextureId = "" | |
| 514 | b1.MeshType = Enum.MeshType.FileMesh | |
| 515 | b1.Name = "Mesh" | |
| 516 | b1.Scale = Vector3.new(0.0900000036, 1.5, 0.200000003) | |
| 517 | p2 = Instance.new("Part", m)
| |
| 518 | p2.BrickColor = BrickColor.new("Really black")
| |
| 519 | p2.FormFactor = Enum.FormFactor.Custom | |
| 520 | p2.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003) | |
| 521 | p2.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005) | |
| 522 | p2.Anchored = true | |
| 523 | p2.CanCollide = false | |
| 524 | b2 = Instance.new("SpecialMesh", p2)
| |
| 525 | b2.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 526 | b2.TextureId = "" | |
| 527 | b2.MeshType = Enum.MeshType.FileMesh | |
| 528 | b2.Name = "Mesh" | |
| 529 | b2.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001) | |
| 530 | p3 = Instance.new("Part", m)
| |
| 531 | p3.BrickColor = BrickColor.new("Royal purple")
| |
| 532 | p3.FormFactor = Enum.FormFactor.Custom | |
| 533 | p3.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006) | |
| 534 | p3.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 1.35292976e-005, 0.999994814, 2.33750106e-005, 0.499945492, -2.70082237e-005, 0.866054654, 0.866051197, -3.0624193e-008, -0.499943763) | |
| 535 | p3.Anchored = true | |
| 536 | p3.CanCollide = false | |
| 537 | b3 = Instance.new("SpecialMesh", p3)
| |
| 538 | b3.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 539 | b3.TextureId = "" | |
| 540 | b3.MeshType = Enum.MeshType.FileMesh | |
| 541 | b3.Name = "Mesh" | |
| 542 | b3.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001) | |
| 543 | p4 = Instance.new("Part", m)
| |
| 544 | p4.BrickColor = BrickColor.new("Royal purple")
| |
| 545 | p4.FormFactor = Enum.FormFactor.Custom | |
| 546 | p4.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006) | |
| 547 | p4.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 1.90376704e-005, 0.999994814, 1.91206054e-005, 0.707060516, -2.69822558e-005, 0.707149625, 0.707147956, 5.72263765e-008, -0.707058728) | |
| 548 | p4.Anchored = true | |
| 549 | p4.CanCollide = false | |
| 550 | b4 = Instance.new("SpecialMesh", p4)
| |
| 551 | b4.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 552 | b4.TextureId = "" | |
| 553 | b4.MeshType = Enum.MeshType.FileMesh | |
| 554 | b4.Name = "Mesh" | |
| 555 | b4.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001) | |
| 556 | p5 = Instance.new("Part", m)
| |
| 557 | p5.BrickColor = BrickColor.new("Really black")
| |
| 558 | p5.FormFactor = Enum.FormFactor.Custom | |
| 559 | p5.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003) | |
| 560 | p5.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005) | |
| 561 | p5.Anchored = true | |
| 562 | p5.CanCollide = false | |
| 563 | b5 = Instance.new("SpecialMesh", p5)
| |
| 564 | b5.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 565 | b5.TextureId = "" | |
| 566 | b5.MeshType = Enum.MeshType.FileMesh | |
| 567 | b5.Name = "Mesh" | |
| 568 | b5.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001) | |
| 569 | p6 = Instance.new("Part", m)
| |
| 570 | p6.BrickColor = BrickColor.new("Royal purple")
| |
| 571 | p6.Material = Enum.Material.SmoothPlastic | |
| 572 | p6.FormFactor = Enum.FormFactor.Custom | |
| 573 | p6.Size = Vector3.new(0.200000003, 0.600000143, 1) | |
| 574 | p6.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007) | |
| 575 | p6.Anchored = true | |
| 576 | p6.CanCollide = false | |
| 577 | b6 = Instance.new("CylinderMesh", p6)
| |
| 578 | b6.Name = "Mesh" | |
| 579 | b6.Scale = Vector3.new(1, 1.5, 0.100000001) | |
| 580 | p7 = Instance.new("Part", m)
| |
| 581 | p7.BrickColor = BrickColor.new("Royal purple")
| |
| 582 | p7.Material = Enum.Material.SmoothPlastic | |
| 583 | p7.FormFactor = Enum.FormFactor.Custom | |
| 584 | p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 585 | p7.CFrame = CFrame.new(-4.38347578, 0.100488186, 11.0674219, 0.999994993, 2.68598014e-005, -2.10421803e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 2.08939497e-007, 6.46425033e-005, 0.999994993) | |
| 586 | p7.Anchored = true | |
| 587 | p7.CanCollide = false | |
| 588 | b7 = Instance.new("SpecialMesh", p7)
| |
| 589 | b7.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 590 | b7.TextureId = "" | |
| 591 | b7.MeshType = Enum.MeshType.FileMesh | |
| 592 | b7.Name = "Mesh" | |
| 593 | b7.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 594 | p8 = Instance.new("Part", m)
| |
| 595 | p8.BrickColor = BrickColor.new("Really black")
| |
| 596 | p8.Material = Enum.Material.SmoothPlastic | |
| 597 | p8.FormFactor = Enum.FormFactor.Custom | |
| 598 | p8.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003) | |
| 599 | p8.CFrame = CFrame.new(-4.44335222, 6.31963682, 11.0678616, -2.03024811e-007, 2.68621734e-005, 0.999994993, 6.45878681e-005, 0.999998331, -2.68624135e-005, -0.999994993, 6.45876644e-005, -2.04505866e-007) | |
| 600 | p8.Anchored = true | |
| 601 | p8.CanCollide = false | |
| 602 | b8 = Instance.new("SpecialMesh", p8)
| |
| 603 | b8.MeshType = Enum.MeshType.Wedge | |
| 604 | b8.Name = "Mesh" | |
| 605 | b8.Scale = Vector3.new(0.400000006, 1, 0.600000024) | |
| 606 | p9 = Instance.new("Part", m)
| |
| 607 | p9.BrickColor = BrickColor.new("Really black")
| |
| 608 | p9.Material = Enum.Material.SmoothPlastic | |
| 609 | p9.FormFactor = Enum.FormFactor.Custom | |
| 610 | p9.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003) | |
| 611 | p9.CFrame = CFrame.new(-4.38343573, 1.70038664, 11.0675249, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007) | |
| 612 | p9.Anchored = true | |
| 613 | p9.CanCollide = false | |
| 614 | b9 = Instance.new("BlockMesh", p9)
| |
| 615 | b9.Name = "Mesh" | |
| 616 | b9.Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006) | |
| 617 | handl = Instance.new("Part", m)
| |
| 618 | handl.BrickColor = BrickColor.new("Really black")
| |
| 619 | handl.Material = Enum.Material.SmoothPlastic | |
| 620 | handl.Name = "handle" | |
| 621 | handl.FormFactor = Enum.FormFactor.Custom | |
| 622 | handl.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003) | |
| 623 | handl.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007) | |
| 624 | handl.Anchored = true | |
| 625 | handl.CanCollide = false | |
| 626 | b10 = Instance.new("BlockMesh", handl)
| |
| 627 | b10.Name = "Mesh" | |
| 628 | b10.Scale = Vector3.new(0.5, 1.5, 0.150000006) | |
| 629 | p11 = Instance.new("Part", m)
| |
| 630 | p11.BrickColor = BrickColor.new("Really black")
| |
| 631 | p11.Material = Enum.Material.SmoothPlastic | |
| 632 | p11.FormFactor = Enum.FormFactor.Custom | |
| 633 | p11.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003) | |
| 634 | p11.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.000361636019, 0.000304358749, -0.999994814, -0.999998271, -0.000127056977, -0.000361675629, -0.000127166844, 0.999994755, 0.000304312387) | |
| 635 | p11.Anchored = true | |
| 636 | p11.CanCollide = false | |
| 637 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
| 638 | p11.TopSurface = Enum.SurfaceType.Smooth | |
| 639 | b11 = Instance.new("SpecialMesh", p11)
| |
| 640 | b11.MeshId = "http://www.roblox.com/asset/?id=16606212" | |
| 641 | b11.TextureId = "" | |
| 642 | b11.MeshType = Enum.MeshType.FileMesh | |
| 643 | b11.Name = "Mesh" | |
| 644 | b11.Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999) | |
| 645 | p12 = Instance.new("Part", m)
| |
| 646 | p12.BrickColor = BrickColor.new("Royal purple")
| |
| 647 | p12.Material = Enum.Material.SmoothPlastic | |
| 648 | p12.FormFactor = Enum.FormFactor.Custom | |
| 649 | p12.Size = Vector3.new(0.600000024, 0.400000036, 0.400000006) | |
| 650 | p12.CFrame = CFrame.new(-4.38352394, 0.900473356, 11.0674744, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005) | |
| 651 | p12.Anchored = true | |
| 652 | p12.CanCollide = false | |
| 653 | b12 = Instance.new("SpecialMesh", p12)
| |
| 654 | b12.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 655 | b12.TextureId = "" | |
| 656 | b12.MeshType = Enum.MeshType.FileMesh | |
| 657 | b12.Name = "Mesh" | |
| 658 | b12.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006) | |
| 659 | p13 = Instance.new("Part", m)
| |
| 660 | p13.BrickColor = BrickColor.new("Really black")
| |
| 661 | p13.Material = Enum.Material.SmoothPlastic | |
| 662 | p13.FormFactor = Enum.FormFactor.Custom | |
| 663 | p13.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003) | |
| 664 | p13.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007) | |
| 665 | p13.Anchored = true | |
| 666 | p13.CanCollide = false | |
| 667 | b13 = Instance.new("BlockMesh", p13)
| |
| 668 | b13.Name = "Mesh" | |
| 669 | b13.Scale = Vector3.new(0.400000006, 2.70000005, 1.25) | |
| 670 | p14 = Instance.new("Part", m)
| |
| 671 | p14.BrickColor = BrickColor.new("Royal purple")
| |
| 672 | p14.Material = Enum.Material.SmoothPlastic | |
| 673 | p14.FormFactor = Enum.FormFactor.Custom | |
| 674 | p14.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003) | |
| 675 | p14.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005) | |
| 676 | p14.Anchored = true | |
| 677 | p14.CanCollide = false | |
| 678 | b14 = Instance.new("CylinderMesh", p14)
| |
| 679 | b14.Name = "Mesh" | |
| 680 | b14.Scale = Vector3.new(1, 0.860000014, 0.349999994) | |
| 681 | p15 = Instance.new("Part", m)
| |
| 682 | p15.BrickColor = BrickColor.new("Royal purple")
| |
| 683 | p15.Material = Enum.Material.SmoothPlastic | |
| 684 | p15.FormFactor = Enum.FormFactor.Custom | |
| 685 | p15.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003) | |
| 686 | p15.CFrame = CFrame.new(-4.38351488, 1.00045681, 11.067482, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005) | |
| 687 | p15.Anchored = true | |
| 688 | p15.CanCollide = false | |
| 689 | b15 = Instance.new("SpecialMesh", p15)
| |
| 690 | b15.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 691 | b15.TextureId = "" | |
| 692 | b15.MeshType = Enum.MeshType.FileMesh | |
| 693 | b15.Name = "Mesh" | |
| 694 | b15.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006) | |
| 695 | p16 = Instance.new("Part", m)
| |
| 696 | p16.BrickColor = BrickColor.new("Royal purple")
| |
| 697 | p16.Material = Enum.Material.SmoothPlastic | |
| 698 | p16.FormFactor = Enum.FormFactor.Custom | |
| 699 | p16.Size = Vector3.new(1, 0.200000003, 0.400000036) | |
| 700 | p16.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005) | |
| 701 | p16.Anchored = true | |
| 702 | p16.CanCollide = false | |
| 703 | b16 = Instance.new("CylinderMesh", p16)
| |
| 704 | b16.Name = "Mesh" | |
| 705 | b16.Scale = Vector3.new(1, 0.899999976, 0.899999976) | |
| 706 | p17 = Instance.new("Part", m)
| |
| 707 | p17.BrickColor = BrickColor.new("Royal purple")
| |
| 708 | p17.Material = Enum.Material.SmoothPlastic | |
| 709 | p17.FormFactor = Enum.FormFactor.Custom | |
| 710 | p17.Size = Vector3.new(0.200000033, 0.200000003, 0.400000006) | |
| 711 | p17.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 1.22376412e-006, 2.79684682e-005, -2.79687956e-005, 6.45115288e-005, 0.999998331, 1.22221331e-006, -0.999994993, 6.45113687e-005) | |
| 712 | p17.Anchored = true | |
| 713 | p17.CanCollide = false | |
| 714 | b17 = Instance.new("CylinderMesh", p17)
| |
| 715 | b17.Name = "Mesh" | |
| 716 | b17.Scale = Vector3.new(1, 1.10000002, 0.25) | |
| 717 | p18 = Instance.new("Part", m)
| |
| 718 | p18.BrickColor = BrickColor.new("Really black")
| |
| 719 | p18.Material = Enum.Material.SmoothPlastic | |
| 720 | p18.FormFactor = Enum.FormFactor.Custom | |
| 721 | p18.Size = Vector3.new(0.600000024, 0.200000003, 0.400000006) | |
| 722 | p18.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005) | |
| 723 | p18.Anchored = true | |
| 724 | p18.CanCollide = false | |
| 725 | b18 = Instance.new("CylinderMesh", p18)
| |
| 726 | b18.Name = "Mesh" | |
| 727 | b18.Scale = Vector3.new(1, 1, 0.5) | |
| 728 | p19 = Instance.new("Part", m)
| |
| 729 | p19.BrickColor = BrickColor.new("Really black")
| |
| 730 | p19.Material = Enum.Material.SmoothPlastic | |
| 731 | p19.FormFactor = Enum.FormFactor.Custom | |
| 732 | p19.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003) | |
| 733 | p19.CFrame = CFrame.new(-4.32335329, 6.31963253, 11.0678616, 1.78813934e-007, 2.67998621e-005, -0.999994993, -6.46066765e-005, 0.999998331, 2.68001022e-005, 0.999994993, 6.46064655e-005, 1.78813934e-007) | |
| 734 | p19.Anchored = true | |
| 735 | p19.CanCollide = false | |
| 736 | b19 = Instance.new("SpecialMesh", p19)
| |
| 737 | b19.MeshType = Enum.MeshType.Wedge | |
| 738 | b19.Name = "Mesh" | |
| 739 | b19.Scale = Vector3.new(0.400000006, 1, 0.600000024) | |
| 740 | blade = Instance.new("Part", m)
| |
| 741 | blade.BrickColor = BrickColor.new("Royal purple")
| |
| 742 | blade.Material = Enum.Material.SmoothPlastic | |
| 743 | blade.Name = "blade" | |
| 744 | blade.FormFactor = Enum.FormFactor.Custom | |
| 745 | blade.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003) | |
| 746 | blade.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007) | |
| 747 | blade.Anchored = true | |
| 748 | blade.CanCollide = false | |
| 749 | b20 = Instance.new("BlockMesh", blade)
| |
| 750 | b20.Name = "Mesh" | |
| 751 | b20.Scale = Vector3.new(0.419999987, 2.70000005, 0.5) | |
| 752 | p21 = Instance.new("Part", m)
| |
| 753 | p21.BrickColor = BrickColor.new("Royal purple")
| |
| 754 | p21.Material = Enum.Material.SmoothPlastic | |
| 755 | p21.FormFactor = Enum.FormFactor.Custom | |
| 756 | p21.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 757 | p21.CFrame = CFrame.new(-4.87347412, 1.20048833, 11.067421, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993) | |
| 758 | p21.Anchored = true | |
| 759 | p21.CanCollide = false | |
| 760 | b21 = Instance.new("SpecialMesh", p21)
| |
| 761 | b21.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 762 | b21.TextureId = "" | |
| 763 | b21.MeshType = Enum.MeshType.FileMesh | |
| 764 | b21.Name = "Mesh" | |
| 765 | b21.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 766 | p22 = Instance.new("Part", m)
| |
| 767 | p22.BrickColor = BrickColor.new("Really black")
| |
| 768 | p22.Material = Enum.Material.SmoothPlastic | |
| 769 | p22.FormFactor = Enum.FormFactor.Custom | |
| 770 | p22.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 771 | p22.CFrame = CFrame.new(-4.6434741, 1.36048794, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993) | |
| 772 | p22.Anchored = true | |
| 773 | p22.CanCollide = false | |
| 774 | b22 = Instance.new("SpecialMesh", p22)
| |
| 775 | b22.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 776 | b22.TextureId = "" | |
| 777 | b22.MeshType = Enum.MeshType.FileMesh | |
| 778 | b22.Name = "Mesh" | |
| 779 | b22.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 780 | p23 = Instance.new("Part", m)
| |
| 781 | p23.BrickColor = BrickColor.new("Really black")
| |
| 782 | p23.Material = Enum.Material.SmoothPlastic | |
| 783 | p23.FormFactor = Enum.FormFactor.Custom | |
| 784 | p23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 785 | p23.CFrame = CFrame.new(-4.6434741, 1.05048847, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993) | |
| 786 | p23.Anchored = true | |
| 787 | p23.CanCollide = false | |
| 788 | b23 = Instance.new("SpecialMesh", p23)
| |
| 789 | b23.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 790 | b23.TextureId = "" | |
| 791 | b23.MeshType = Enum.MeshType.FileMesh | |
| 792 | b23.Name = "Mesh" | |
| 793 | b23.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 794 | p24 = Instance.new("Part", m)
| |
| 795 | p24.BrickColor = BrickColor.new("Really black")
| |
| 796 | p24.FormFactor = Enum.FormFactor.Custom | |
| 797 | p24.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006) | |
| 798 | p24.CFrame = CFrame.new(-4.38800001, 3.43899989, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006) | |
| 799 | p24.Anchored = true | |
| 800 | p24.CanCollide = false | |
| 801 | b24 = Instance.new("SpecialMesh", p24)
| |
| 802 | b24.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 803 | b24.TextureId = "" | |
| 804 | b24.MeshType = Enum.MeshType.FileMesh | |
| 805 | b24.Name = "Mesh" | |
| 806 | b24.Scale = Vector3.new(0.100000001, 1.5, 0.100000001) | |
| 807 | p25 = Instance.new("Part", m)
| |
| 808 | p25.BrickColor = BrickColor.new("Really black")
| |
| 809 | p25.Material = Enum.Material.SmoothPlastic | |
| 810 | p25.FormFactor = Enum.FormFactor.Custom | |
| 811 | p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 812 | p25.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993) | |
| 813 | p25.Anchored = true | |
| 814 | p25.CanCollide = false | |
| 815 | b25 = Instance.new("SpecialMesh", p25)
| |
| 816 | b25.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 817 | b25.TextureId = "" | |
| 818 | b25.MeshType = Enum.MeshType.FileMesh | |
| 819 | b25.Name = "Mesh" | |
| 820 | b25.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 821 | p26 = Instance.new("Part", m)
| |
| 822 | p26.BrickColor = BrickColor.new("Royal purple")
| |
| 823 | p26.Material = Enum.Material.SmoothPlastic | |
| 824 | p26.FormFactor = Enum.FormFactor.Custom | |
| 825 | p26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 826 | p26.CFrame = CFrame.new(-3.89346814, 1.20048833, 11.0674229, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993) | |
| 827 | p26.Anchored = true | |
| 828 | p26.CanCollide = false | |
| 829 | b26 = Instance.new("SpecialMesh", p26)
| |
| 830 | b26.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 831 | b26.TextureId = "" | |
| 832 | b26.MeshType = Enum.MeshType.FileMesh | |
| 833 | b26.Name = "Mesh" | |
| 834 | b26.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 835 | p27 = Instance.new("Part", m)
| |
| 836 | p27.BrickColor = BrickColor.new("Really black")
| |
| 837 | p27.Material = Enum.Material.SmoothPlastic | |
| 838 | p27.FormFactor = Enum.FormFactor.Custom | |
| 839 | p27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 840 | p27.CFrame = CFrame.new(-4.12346935, 1.05048847, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993) | |
| 841 | p27.Anchored = true | |
| 842 | p27.CanCollide = false | |
| 843 | b27 = Instance.new("SpecialMesh", p27)
| |
| 844 | b27.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 845 | b27.TextureId = "" | |
| 846 | b27.MeshType = Enum.MeshType.FileMesh | |
| 847 | b27.Name = "Mesh" | |
| 848 | b27.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 849 | p28 = Instance.new("Part", m)
| |
| 850 | p28.BrickColor = BrickColor.new("Really black")
| |
| 851 | p28.Material = Enum.Material.SmoothPlastic | |
| 852 | p28.FormFactor = Enum.FormFactor.Custom | |
| 853 | p28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 854 | p28.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993) | |
| 855 | p28.Anchored = true | |
| 856 | p28.CanCollide = false | |
| 857 | b28 = Instance.new("SpecialMesh", p28)
| |
| 858 | b28.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 859 | b28.TextureId = "" | |
| 860 | b28.MeshType = Enum.MeshType.FileMesh | |
| 861 | b28.Name = "Mesh" | |
| 862 | b28.Scale = Vector3.new(0.280000001, 0.280000001, 0.5) | |
| 863 | c = m:children() | |
| 864 | for n = 1, #c do | |
| 865 | if (c[n].className == "Part") then | |
| 866 | if (c[n].Name ~= "handle") then | |
| 867 | stick(c[n], m.handle) | |
| 868 | wait() | |
| 869 | c[n].Anchored = false | |
| 870 | end | |
| 871 | end | |
| 872 | end | |
| 873 | for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end | |
| 874 | handl.Anchored=false | |
| 875 | mwl= Weld(handl,pchar.Torso,-1,0,-1,rad(120),0,0,m) | |
| 876 | m.Parent = pchar | |
| 877 | hp=Instance.new('HopperBin',player.Backpack)
| |
| 878 | hp.Name='Despira' | |
| 879 | ||
| 880 | local hat=Part(.5,1,1.02,'Really black',0,false,false,pchar) | |
| 881 | Mesh(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05) | |
| 882 | Weld(pchar.Head,hat,0,-.25,0,0,0,0,p) | |
| 883 | -- cape mesh cause lazy :p | |
| 884 | local cpw=Part(.2,.2,.2,'White',1,false,false,pchar) | |
| 885 | Weld(torso,cpw,0,-1,-.5,0,0,0,p) | |
| 886 | local cp=Part(.1,.1,.1,'Really black',0,false,false,pchar) | |
| 887 | Mesh(cp,'http://www.roblox.com/asset/?id=114046169',1.3,1.3,1.3) | |
| 888 | cape = Weld(cpw,cp,0,1.2,0,0,0,0,p) | |
| 889 | ||
| 890 | local function newLerpTo(weld) | |
| 891 | return {
| |
| 892 | Weld = weld; | |
| 893 | To = weld.C0; | |
| 894 | Cache = weld.C0; | |
| 895 | Speed = 0.2; | |
| 896 | } | |
| 897 | end | |
| 898 | ||
| 899 | Used={Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false}
| |
| 900 | ||
| 901 | function SetAnimData(IF_DATA_IS_USED) | |
| 902 | Used = IF_DATA_IS_USED | |
| 903 | end | |
| 904 | ||
| 905 | function CheckAnimData(ANIM_TAB,DO_ANIM) | |
| 906 | anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1 | |
| 907 | if Used.Head == true then | |
| 908 | LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head | |
| 909 | end | |
| 910 | if Used.RightArm == true then | |
| 911 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm | |
| 912 | end | |
| 913 | if Used.LeftArm == true then | |
| 914 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm | |
| 915 | end | |
| 916 | if Used.RightLeg == true then | |
| 917 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg | |
| 918 | end | |
| 919 | if Used.LeftLeg == true then | |
| 920 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg | |
| 921 | end | |
| 922 | if Used.Torso == true then | |
| 923 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso | |
| 924 | end | |
| 925 | LerpTo.cape.To = LerpTo.cape.Cache * Anims[ANIM_TAB][DO_ANIM].Cape | |
| 926 | end | |
| 927 | ||
| 928 | ||
| 929 | function UpdateAnims() | |
| 930 | Anims = {
| |
| 931 | ["Idle"] = {
| |
| 932 | ["Stance"] = {
| |
| 933 | speed=.25, | |
| 934 | Head = CFrame.Angles(cos(angle)*0.01,0,0), | |
| 935 | RightArm = CFrame.Angles(cos(angle)*0.1,0,0), | |
| 936 | LeftArm = CFrame.Angles(-cos(angle)*0.1,0,0), | |
| 937 | RightLeg = CFrame.Angles(cos(angle)*0.1,0,0), | |
| 938 | LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0), | |
| 939 | Torso = CFrame.Angles(0,0,0), | |
| 940 | Cape = CFrame.Angles(0,0,0) | |
| 941 | }, | |
| 942 | ["Walk"] = {
| |
| 943 | speed=2, | |
| 944 | Head = CFrame.Angles(0,0,cos(angle)*0.05), | |
| 945 | RightArm = CFrame.Angles(-cos(angle)*1,0,0), | |
| 946 | LeftArm = CFrame.Angles(cos(angle)*1,0,0), | |
| 947 | RightLeg = CFrame.Angles(cos(angle)*1,0,0), | |
| 948 | LeftLeg = CFrame.Angles(-cos(angle)*1,0,0), | |
| 949 | Torso = CFrame.Angles(0,0,0), | |
| 950 | Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0) | |
| 951 | }, | |
| 952 | ["Jump"] = {
| |
| 953 | speed=2, | |
| 954 | Head = CFrame.Angles(0,0,0), | |
| 955 | RightArm = CFrame.Angles(rad(-20),0,0), | |
| 956 | LeftArm = CFrame.Angles(rad(-20),0,0), | |
| 957 | RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0), | |
| 958 | LeftLeg = CFrame.Angles(0,0,0), | |
| 959 | Torso = CFrame.Angles(rad(10),0,0), | |
| 960 | Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0) | |
| 961 | } | |
| 962 | }, | |
| 963 | ["Holding"] = {
| |
| 964 | ["Stance"] = {
| |
| 965 | speed=.25, | |
| 966 | Head = CFrame.Angles(cos(angle)*0.01,0,0), | |
| 967 | RightArm = CFrame.Angles(cos(angle)*0.1,0,rad(10)), | |
| 968 | LeftArm = CFrame.Angles(-cos(angle)*0.1,0,-rad(10)), | |
| 969 | RightLeg = CFrame.Angles(cos(angle)*0.1,0,0), | |
| 970 | LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0), | |
| 971 | Torso = CFrame.Angles(0,0,0), | |
| 972 | Cape = CFrame.Angles(0,0,0) | |
| 973 | }, | |
| 974 | ["Walk"] = {
| |
| 975 | speed=2, | |
| 976 | Head = CFrame.Angles(0,0,cos(angle)*0.05), | |
| 977 | RightArm = CFrame.Angles(-cos(angle)*.3,0,rad(10)), | |
| 978 | LeftArm = CFrame.Angles(cos(angle)*.3,0,-rad(10)), | |
| 979 | RightLeg = CFrame.Angles(cos(angle)*1,0,0), | |
| 980 | LeftLeg = CFrame.Angles(-cos(angle)*1,0,0), | |
| 981 | Torso = CFrame.Angles(0,0,0), | |
| 982 | Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0) | |
| 983 | }, | |
| 984 | ["Jump"] = {
| |
| 985 | speed=2, | |
| 986 | Head = CFrame.Angles(0,0,0), | |
| 987 | RightArm = CFrame.Angles(rad(-20),0,0), | |
| 988 | LeftArm = CFrame.Angles(rad(-20),0,0), | |
| 989 | RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0), | |
| 990 | LeftLeg = CFrame.Angles(0,0,0), | |
| 991 | Torso = CFrame.Angles(rad(10),0,0), | |
| 992 | Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0) | |
| 993 | } | |
| 994 | } | |
| 995 | } | |
| 996 | end | |
| 997 | ||
| 998 | ||
| 999 | ||
| 1000 | ||
| 1001 | LerpTo = {
| |
| 1002 | Neck = newLerpTo(Neck); | |
| 1003 | LeftArm = newLerpTo(LeftShoulder); | |
| 1004 | RightArm = newLerpTo(RightShoulder); | |
| 1005 | LeftLeg = newLerpTo(LeftHip); | |
| 1006 | RightLeg = newLerpTo(RightHip); | |
| 1007 | RootJoint = newLerpTo(RootJoint); | |
| 1008 | hndl = newLerpTo(mwl); | |
| 1009 | cape = newLerpTo(cape); | |
| 1010 | } | |
| 1011 | LerpTo.hndl.Cache=CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,rad(90)) | |
| 1012 | hitdeb=false | |
| 1013 | hp.Selected:connect(function(mouse) | |
| 1014 | local jmptimer = 0 | |
| 1015 | mouse.Button1Down:connect(function() | |
| 1016 | if attack == true then return end | |
| 1017 | if combo==0 then | |
| 1018 | attack=true | |
| 1019 | tmdmg(10,blade,5,3) | |
| 1020 | SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1021 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0) | |
| 1022 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30)) | |
| 1023 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0) | |
| 1024 | wait(.1) | |
| 1025 | trail(blade,10,5) | |
| 1026 | so('161006212',torso,false,1)
| |
| 1027 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0) | |
| 1028 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1029 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1030 | wait(.2) | |
| 1031 | attack=false | |
| 1032 | combo=1 | |
| 1033 | elseif combo==1 then | |
| 1034 | attack=true | |
| 1035 | tmdmg(10,blade,5,3) | |
| 1036 | SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1037 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0) | |
| 1038 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1039 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1040 | wait(.1) | |
| 1041 | trail(blade,10,5) | |
| 1042 | so('161006212',torso,false,.8)
| |
| 1043 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0) | |
| 1044 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70)) | |
| 1045 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0) | |
| 1046 | wait(.2) | |
| 1047 | attack=false | |
| 1048 | combo=2 | |
| 1049 | elseif combo==2 then | |
| 1050 | attack=true | |
| 1051 | trail(blade,35,5) | |
| 1052 | tmdmg(10,blade,5,3) | |
| 1053 | so('160069154',torso,false,1)
| |
| 1054 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1055 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0) | |
| 1056 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0) | |
| 1057 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0) | |
| 1058 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,0) | |
| 1059 | local spn=0 | |
| 1060 | for i=1,15 do | |
| 1061 | spn=spn+30 | |
| 1062 | wait(i/1000) | |
| 1063 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)+rad(70)) | |
| 1064 | end | |
| 1065 | attack=false | |
| 1066 | combo=3 | |
| 1067 | end | |
| 1068 | Spawn(function() | |
| 1069 | wait(0.6) | |
| 1070 | if attack==false then | |
| 1071 | attack=true | |
| 1072 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1073 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1074 | wait(.2) | |
| 1075 | attack=false | |
| 1076 | combo=0 | |
| 1077 | end | |
| 1078 | end) | |
| 1079 | end) | |
| 1080 | mouse.KeyDown:connect(function(ke) | |
| 1081 | if attack==true then return end | |
| 1082 | key=ke:lower() | |
| 1083 | if key=="e" then attack=true | |
| 1084 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1085 | posfix(-rad(90)) | |
| 1086 | LerpTo.hndl.To = CFrame.new(0,-0.3,0) | |
| 1087 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30)) | |
| 1088 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0) | |
| 1089 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90)) | |
| 1090 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0) | |
| 1091 | wait(.3) | |
| 1092 | mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1) | |
| 1093 | so('28257433',pchar.Torso,false,.8)
| |
| 1094 | local efx= Part(1,1,1,'Black',0,false,true,pchar) | |
| 1095 | local m= Mesh(efx,'http://www.roblox.com/asset/?id=51177741',2,2,2) | |
| 1096 | efx.CFrame=pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90)) | |
| 1097 | local cb=Part(1,1,1,'Black',0,false,true,pchar) | |
| 1098 | Mesh(cb,1,1,1,1) | |
| 1099 | for i=1,20 do wait() | |
| 1100 | efx.CFrame=clerp(efx.CFrame,efx.CFrame*CFrame.new(0,0,-50),.1) | |
| 1101 | local p=Part(1,1,1,Cols[math.random(1,#Cols)],0,false,true,pchar) | |
| 1102 | Mesh(p,3,1.5,1.5,1.5) | |
| 1103 | p.CFrame=efx.CFrame | |
| 1104 | cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5) | |
| 1105 | cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0) | |
| 1106 | coroutine.resume(coroutine.create(function(part,spin) | |
| 1107 | for i=1, 15 do | |
| 1108 | part.Mesh.Scale=part.Mesh.Scale+Vector3.new(.3,.3,.3) | |
| 1109 | part.Transparency=i/15 | |
| 1110 | part.CFrame=part.CFrame*CFrame.new(math.random(-10,10)/3,math.random(-10,10)/3,math.random(-10,10)/3)*spin | |
| 1111 | wait() | |
| 1112 | end | |
| 1113 | part.Parent=nil | |
| 1114 | end),p,CFrame.fromEulerAnglesXYZ(math.random(-50,50)/500,math.random(-50,50)/500,math.random(-50,50)/500)) | |
| 1115 | if hitdeb==false then | |
| 1116 | for i,v in pairs(workspace:children()) do | |
| 1117 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 1118 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 1119 | if (v:findFirstChild("Torso").Position - efx.Position).magnitude < 7 and v.Name ~= pchar.Name then
| |
| 1120 | damg=math.random(5,10) | |
| 1121 | v.Humanoid:TakeDamage(damg) | |
| 1122 | v.Humanoid.PlatformStand=true | |
| 1123 | local lock=Weld(efx,v.Torso,0,0,0,0,0,0,v) | |
| 1124 | local asd=true | |
| 1125 | Spawn(function() | |
| 1126 | while asd do wait() | |
| 1127 | efx.CFrame=clerp(efx.CFrame,pchar.HumanoidRootPart.CFrame*CFrame.new(0,0,-7),.2) | |
| 1128 | cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5) | |
| 1129 | cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0) | |
| 1130 | end | |
| 1131 | end) | |
| 1132 | wait(.1) | |
| 1133 | for i=1,10 do wait() | |
| 1134 | efx.Transparency=efx.Transparency+.1 | |
| 1135 | end | |
| 1136 | trail(blade,35,5) | |
| 1137 | tmdmg(10,blade,5,3) | |
| 1138 | so('160069154',torso,false,1.1)
| |
| 1139 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45)) | |
| 1140 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90)) | |
| 1141 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0) | |
| 1142 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0) | |
| 1143 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90)) | |
| 1144 | wait(.05) | |
| 1145 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0) | |
| 1146 | mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1) | |
| 1147 | local spn=0 | |
| 1148 | for i=1,12 do | |
| 1149 | spn=spn+30 | |
| 1150 | wait() | |
| 1151 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)-rad(90)) | |
| 1152 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn)+rad(90),0) | |
| 1153 | end | |
| 1154 | wait(.3) | |
| 1155 | asd=false | |
| 1156 | so('28144425',torso,false,.265)
| |
| 1157 | so('2697431',torso,false,.2)
| |
| 1158 | local splos= Part(1,1,1,'Really black',.5,false,true,pchar) | |
| 1159 | local m= Mesh(splos,'http://www.roblox.com/asset/?id=20329976',3,1,3) | |
| 1160 | splos.CFrame=torso.CFrame*CFrame.new(-3,0,0)*CFrame.Angles(0,0,-pi/2) | |
| 1161 | Spawn(function() | |
| 1162 | for i=1,10 do wait(.01) | |
| 1163 | m.Scale=m.Scale+Vector3.new(1,.2,1) | |
| 1164 | splos.Transparency=splos.Transparency+.1 | |
| 1165 | end | |
| 1166 | splos:Destroy() | |
| 1167 | end) | |
| 1168 | for i=1,3 do | |
| 1169 | for i=1,3 do | |
| 1170 | mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),2,'Really black','Royal purple',Vector3.new(.1,.1,.1),0) | |
| 1171 | end | |
| 1172 | end | |
| 1173 | efx:Destroy() | |
| 1174 | cb:Destroy() | |
| 1175 | lock:Destroy() | |
| 1176 | mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),20,'Really black','Royal purple',Vector3.new(.1,.1,.1),0) | |
| 1177 | local vs = Instance.new("BodyVelocity",v.Torso)
| |
| 1178 | vs.maxForce = Vector3.new(1,1,1)*9e9 | |
| 1179 | vs.P = 2000 | |
| 1180 | vs.velocity = pchar.HumanoidRootPart.CFrame.lookVector*60+Vector3.new(0,150,0) | |
| 1181 | wait(.05) | |
| 1182 | vs:Destroy() | |
| 1183 | Spawn(function() | |
| 1184 | wait(2) | |
| 1185 | v.Humanoid.PlatformStand=false | |
| 1186 | end) | |
| 1187 | v.Humanoid.Health=v.Humanoid.Health-30 | |
| 1188 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1189 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1190 | attack=false | |
| 1191 | return | |
| 1192 | end | |
| 1193 | end | |
| 1194 | end | |
| 1195 | end | |
| 1196 | end | |
| 1197 | end | |
| 1198 | for i=1,10 do wait() | |
| 1199 | efx.CFrame=clerp(efx.CFrame,pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90)),.2) | |
| 1200 | cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5) | |
| 1201 | cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0) | |
| 1202 | end | |
| 1203 | efx:Destroy() | |
| 1204 | cb:Destroy() | |
| 1205 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1206 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1207 | attack=false | |
| 1208 | elseif key=="z" then | |
| 1209 | elseif key=="x" then | |
| 1210 | attack=true | |
| 1211 | local tapdeb=false | |
| 1212 | for i,x in pairs(workspace:children()) do | |
| 1213 | if x:IsA("Model") and x:findFirstChild("Humanoid") then
| |
| 1214 | if x:findFirstChild("Head") and x:findFirstChild("Torso") then
| |
| 1215 | if (x:findFirstChild("Torso").Position - mouse.Hit.p).magnitude < 4 and x.Name ~= pchar.Name then
| |
| 1216 | if tapdeb==false then | |
| 1217 | SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1218 | cloneefx() | |
| 1219 | pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,pi/1,0) | |
| 1220 | tmdmg(10,blade,3,3) | |
| 1221 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0) | |
| 1222 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30)) | |
| 1223 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0) | |
| 1224 | wait(.1) | |
| 1225 | trail(blade,3,5) | |
| 1226 | so('161006212',torso,false,1)
| |
| 1227 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0) | |
| 1228 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1229 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1230 | wait(.2) | |
| 1231 | cloneefx() | |
| 1232 | pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(-4,0,0)*CFrame.Angles(0,-pi/2,0) | |
| 1233 | tmdmg(10,blade,4,3) | |
| 1234 | SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1235 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0) | |
| 1236 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1237 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1238 | wait(.1) | |
| 1239 | trail(blade,3,5) | |
| 1240 | so('161006212',torso,false,.8)
| |
| 1241 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0) | |
| 1242 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70)) | |
| 1243 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0) | |
| 1244 | wait(.2) | |
| 1245 | cloneefx() | |
| 1246 | pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,4)*CFrame.Angles(0,0,0) | |
| 1247 | tmdmg(10,blade,4,3) | |
| 1248 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0) | |
| 1249 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30)) | |
| 1250 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0) | |
| 1251 | wait(.1) | |
| 1252 | trail(blade,3,5) | |
| 1253 | so('161006212',torso,false,1)
| |
| 1254 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0) | |
| 1255 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1256 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1257 | wait(.2) | |
| 1258 | cloneefx() | |
| 1259 | pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(4,0,0)*CFrame.Angles(0,pi/2,0) | |
| 1260 | tmdmg(10,blade,4,3) | |
| 1261 | SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1262 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0) | |
| 1263 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1264 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0) | |
| 1265 | wait(.1) | |
| 1266 | trail(blade,3,5) | |
| 1267 | so('161006212',torso,false,.8)
| |
| 1268 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0) | |
| 1269 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70)) | |
| 1270 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0) | |
| 1271 | wait(.2) | |
| 1272 | so('161006212',torso,false,.5)
| |
| 1273 | cloneefx() | |
| 1274 | tmdmg(10,blade,5,3) | |
| 1275 | trail(blade,3,7) | |
| 1276 | pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-6)*CFrame.Angles(0,pi/1,0) | |
| 1277 | LerpTo.hndl.To = CFrame.new(0,-0.3,0) | |
| 1278 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30)) | |
| 1279 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0) | |
| 1280 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90)) | |
| 1281 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0) | |
| 1282 | wait(.1) | |
| 1283 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) | |
| 1284 | wait(.1) | |
| 1285 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90)) | |
| 1286 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90)) | |
| 1287 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-.5,-.5,0) | |
| 1288 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0) | |
| 1289 | wait(.4) | |
| 1290 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1291 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1292 | attack=false | |
| 1293 | return | |
| 1294 | end | |
| 1295 | end | |
| 1296 | end | |
| 1297 | end | |
| 1298 | end | |
| 1299 | attack=false | |
| 1300 | elseif key=="c" then | |
| 1301 | attack=true | |
| 1302 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1303 | posfix(-rad(90)) | |
| 1304 | LerpTo.hndl.To = CFrame.new(0,-0.3,0) | |
| 1305 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30)) | |
| 1306 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0) | |
| 1307 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90)) | |
| 1308 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0) | |
| 1309 | wait(.1) | |
| 1310 | so('62339698',torso,false,.35)
| |
| 1311 | Spawn(function() | |
| 1312 | for i=1,3 do wait() | |
| 1313 | local efx= Part(1,1,1,'Really black',.5,false,true,m) | |
| 1314 | local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3) | |
| 1315 | efx.CFrame=torso.CFrame*CFrame.Angles(pi/2,0,-rad(90)) | |
| 1316 | Spawn(function() | |
| 1317 | for i=1,7 do wait() | |
| 1318 | m.Scale=m.Scale+Vector3.new(1,.1,1) | |
| 1319 | end | |
| 1320 | efx:Destroy() | |
| 1321 | end) | |
| 1322 | end | |
| 1323 | end) | |
| 1324 | Spawn(function() | |
| 1325 | for i=1,4 do wait() | |
| 1326 | mgblock(torso,CFrame.new(0,0,0),4,'Really black','Really black',Vector3.new(2,2,2),.1) | |
| 1327 | end | |
| 1328 | end) | |
| 1329 | local v = Instance.new("BodyVelocity",torso)
| |
| 1330 | v.maxForce = Vector3.new(1,1,1)*9e9 | |
| 1331 | v.P = 2000 | |
| 1332 | local cfx=torso.CFrame*CFrame.Angles(0,rad(90),0) | |
| 1333 | v.velocity = cfx.lookVector*60 | |
| 1334 | local tapdeb=false | |
| 1335 | for i=1,10 do wait() | |
| 1336 | for i,x in pairs(workspace:children()) do | |
| 1337 | if x:IsA("Model") and x:findFirstChild("Humanoid") then
| |
| 1338 | if x:findFirstChild("Head") and x:findFirstChild("Torso") then
| |
| 1339 | if (x:findFirstChild("Torso").Position - torso.Position).magnitude < 7 and x.Name ~= pchar.Name then
| |
| 1340 | if tapdeb==false then | |
| 1341 | tmdmg(15,blade,3,5) | |
| 1342 | v:Destroy() | |
| 1343 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(40))*CFrame.new(0.5,-.5,0) | |
| 1344 | so('10209645',torso,false,.8)
| |
| 1345 | for i=1,3 do wait() | |
| 1346 | x.Humanoid.PlatformStand=true | |
| 1347 | x.Torso.CFrame=pchar['Left Arm'].CFrame*CFrame.new(0,-1,0)*CFrame.Angles(rad(90),0,0) | |
| 1348 | end | |
| 1349 | so('46153268',torso,false,.5)
| |
| 1350 | wait(.4) | |
| 1351 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
| |
| 1352 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0) | |
| 1353 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0) | |
| 1354 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0) | |
| 1355 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1) | |
| 1356 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1) | |
| 1357 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0) | |
| 1358 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0) | |
| 1359 | so('169310515',torso,false,.6)
| |
| 1360 | wait(.4) | |
| 1361 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(150),0,0) | |
| 1362 | mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),30,'Really black','Really black',Vector3.new(2,2,2),.1) | |
| 1363 | mgblock(x.Torso,CFrame.new(0,0,0),30,'Really black','Really black',Vector3.new(2,2,2),.1) | |
| 1364 | local vs = Instance.new("BodyVelocity",x.Torso)
| |
| 1365 | vs.maxForce = Vector3.new(1,1,1)*9e9 | |
| 1366 | vs.P = 2000 | |
| 1367 | vs.velocity = Vector3.new(0,6,0) | |
| 1368 | local efx= Part(1,1,1,'Really black',1,false,true,m) | |
| 1369 | local m= Mesh(efx,'http://www.roblox.com/asset/?id=1185246',10,10,10) | |
| 1370 | Spawn(function() | |
| 1371 | for i=1,7 do wait() | |
| 1372 | efx.Transparency=efx.Transparency-.1 | |
| 1373 | end | |
| 1374 | end) | |
| 1375 | for i=1,100 do | |
| 1376 | efx.CFrame=x.Torso.CFrame | |
| 1377 | wait() | |
| 1378 | end | |
| 1379 | vs:Destroy() | |
| 1380 | x.Torso.Anchored=true | |
| 1381 | local bp=Instance.new("BodyPosition",torso)
| |
| 1382 | bp.maxForce=Vector3.new(10000,10000,10000) | |
| 1383 | bp.position=x.Torso.Position+Vector3.new(5,0,0) | |
| 1384 | so('160069154',torso,false,1.1)
| |
| 1385 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45)) | |
| 1386 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90)) | |
| 1387 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0) | |
| 1388 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0) | |
| 1389 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90)) | |
| 1390 | trail(blade,35,5) | |
| 1391 | local spn=0 | |
| 1392 | for i=1,12 do | |
| 1393 | spn=spn+30 | |
| 1394 | wait() | |
| 1395 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)) | |
| 1396 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn),0) | |
| 1397 | end | |
| 1398 | bp:Destroy() | |
| 1399 | efx:Destroy() | |
| 1400 | so('138122923',torso,false,.8)
| |
| 1401 | x.Humanoid.Health=x.Humanoid.Health-20 | |
| 1402 | for i=1,14 do | |
| 1403 | local efx= Part(1,1,1,'Really black',0,false,false,pchar) | |
| 1404 | local m= Mesh(efx,3,math.random(1,10)/10,math.random(1,10)/10,math.random(1,10)/10) | |
| 1405 | efx.CFrame=x.Torso.CFrame | |
| 1406 | efx.Velocity=Vector3.new(math.random(-20,20),0,math.random(-20,20)) | |
| 1407 | Spawn(function() | |
| 1408 | for i=1,10 do wait(.1) | |
| 1409 | efx.Transparency=efx.Transparency+.1 | |
| 1410 | end | |
| 1411 | end) | |
| 1412 | end | |
| 1413 | x.Torso.Anchored=false | |
| 1414 | x.Humanoid.PlatformStand=false | |
| 1415 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1416 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1417 | attack=false | |
| 1418 | return | |
| 1419 | end | |
| 1420 | end | |
| 1421 | end | |
| 1422 | end | |
| 1423 | end | |
| 1424 | end | |
| 1425 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1426 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1427 | v:Destroy() | |
| 1428 | attack=false | |
| 1429 | elseif key=="v" then | |
| 1430 | elseif key==" " then | |
| 1431 | tim = game:service'RunService'.Stepped:wait() | |
| 1432 | if (tim - jmptimer < .2) then | |
| 1433 | attack=true | |
| 1434 | Spawn(function() | |
| 1435 | for i=1,3 do wait() | |
| 1436 | local efx= Part(1,1,1,'Really black',.5,false,true,m) | |
| 1437 | local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3) | |
| 1438 | efx.CFrame=torso.CFrame | |
| 1439 | Spawn(function() | |
| 1440 | for i=1,7 do wait() | |
| 1441 | m.Scale=m.Scale+Vector3.new(1,.2,1) | |
| 1442 | efx.Transparency=efx.Transparency+.12 | |
| 1443 | end | |
| 1444 | efx:Destroy() | |
| 1445 | end) | |
| 1446 | end | |
| 1447 | end) | |
| 1448 | local vs = Instance.new("BodyVelocity",pchar.Torso)
| |
| 1449 | vs.maxForce = Vector3.new(1,1,1)*9e9 | |
| 1450 | vs.P = 2000 | |
| 1451 | vs.velocity = pchar.Torso.CFrame.lookVector*60+Vector3.new(0,150,0) | |
| 1452 | wait(.025) | |
| 1453 | vs:Destroy() | |
| 1454 | trail(blade,35,5) | |
| 1455 | so('160069154',torso,false,.8)
| |
| 1456 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
| |
| 1457 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0) | |
| 1458 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0) | |
| 1459 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0) | |
| 1460 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,rad(90),0)*CFrame.Angles(rad(130),0,0) | |
| 1461 | local spn=0 | |
| 1462 | for i=1,14 do | |
| 1463 | spn=spn+30 | |
| 1464 | wait(i/1000) | |
| 1465 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(spn),0,0) | |
| 1466 | end | |
| 1467 | SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
| |
| 1468 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0) | |
| 1469 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0) | |
| 1470 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1) | |
| 1471 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1) | |
| 1472 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0) | |
| 1473 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0) | |
| 1474 | hitted=false | |
| 1475 | local hp=blade.Touched:connect(function(hit) | |
| 1476 | if hitted == true or hit.Parent.Name==pchar.Name then return end | |
| 1477 | so('157878578',torso,false,1)
| |
| 1478 | hitted=true | |
| 1479 | explosion('Really black','Royal purple',torso.CFrame,Vector3.new(40,40,40),30,40)
| |
| 1480 | for i=1, 30 do | |
| 1481 | local p= Part(math.random(2,7),math.random(2,7),math.random(2,7),workspace.Base.BrickColor.Color,0,false,false,m) | |
| 1482 | p.Material=workspace.Base.Material | |
| 1483 | p.CFrame=CFrame.new(torso.CFrame.x+math.random(-i,i),0,torso.CFrame.z+math.random(-i,i))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0) | |
| 1484 | p.Velocity=Vector3.new(math.random(-100,100),math.random(30,100),math.random(-100,100)) | |
| 1485 | game.Debris:AddItem(p,2) | |
| 1486 | Spawn(function() | |
| 1487 | for i=1,10 do wait(.01) | |
| 1488 | p.Transparency=p.Transparency+.1 | |
| 1489 | end | |
| 1490 | end) | |
| 1491 | end | |
| 1492 | end) | |
| 1493 | repeat wait() until hitted | |
| 1494 | hp:disconnect() | |
| 1495 | wait(.5) | |
| 1496 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1497 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1498 | attack=false | |
| 1499 | end | |
| 1500 | else | |
| 1501 | wait(.2) | |
| 1502 | end | |
| 1503 | jmptimer = tim | |
| 1504 | end) | |
| 1505 | SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1506 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0) | |
| 1507 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1508 | wait(.01) | |
| 1509 | mwl.Part1=pchar['Right Arm'] | |
| 1510 | mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90)) | |
| 1511 | wait(.2) | |
| 1512 | CurrentActiveAnim="Holding" | |
| 1513 | LerpTo.hndl.To = LerpTo.hndl.Cache | |
| 1514 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1515 | end) | |
| 1516 | ||
| 1517 | hp.Deselected:connect(function() | |
| 1518 | SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1519 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0) | |
| 1520 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30)) | |
| 1521 | LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,0) | |
| 1522 | wait(.1) | |
| 1523 | mwl.Part1=pchar.Torso | |
| 1524 | mwl.C1=CFrame.new(-1,0,-1)*CFrame.Angles(rad(120),0,0) | |
| 1525 | wait(.1) | |
| 1526 | CurrentActiveAnim="Idle" | |
| 1527 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1528 | end) | |
| 1529 | ||
| 1530 | UpdateAnims() | |
| 1531 | SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
| |
| 1532 | ||
| 1533 | CurrentActiveAnim="Idle" | |
| 1534 | ||
| 1535 | game:service'RunService'.RenderStepped:connect(function() | |
| 1536 | UpdateAnims(angle) | |
| 1537 | for _,v in pairs(LerpTo) do | |
| 1538 | v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed) | |
| 1539 | end | |
| 1540 | rclcount = (rclcount%rclcounttime)+rclcountspeed | |
| 1541 | rcl = math.pi*math.sin((math.pi*2)/rclcounttime*rclcount) | |
| 1542 | angle = (angle % 100) + anglespeed/10 | |
| 1543 | if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then | |
| 1544 | CheckAnimData(CurrentActiveAnim,"Jump") | |
| 1545 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
| 1546 | CheckAnimData(CurrentActiveAnim,"Stance") | |
| 1547 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
| 1548 | CheckAnimData(CurrentActiveAnim,"Walk") | |
| 1549 | end | |
| 1550 | end) |