SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 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 Mouse = Player:GetMouse() | |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 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 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return self[s] | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | g.RunService = FakeService({
| |
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | BindToRenderStep = function(self,name,_,fun) | |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | end, | |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | self._btrs[name]:Disconnect() | |
| 130 | end, | |
| 131 | },"RunService") | |
| 132 | ||
| 133 | setmetatable(g,{
| |
| 134 | __index=function(self,s) | |
| 135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | end, | |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | __call = fsmt.__call | |
| 140 | }) | |
| 141 | --Changing owner to fake player object to support owner:GetMouse() | |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | ||
| 145 | ||
| 146 | warn'Controls:Q Strong punch|E Normal punch|R Long range|T Up-Dash|X Front dash|' | |
| 147 | plr = game.Players.LocalPlayer | |
| 148 | char = plr.Character | |
| 149 | hum = char.Humanoid | |
| 150 | local cam = game.Workspace.CurrentCamera | |
| 151 | t = char.Torso | |
| 152 | h = char.Head | |
| 153 | ra = char["Right Arm"] | |
| 154 | la = char["Left Arm"] | |
| 155 | rl = char["Right Leg"] | |
| 156 | ll = char["Left Leg"] | |
| 157 | tors = char.Torso | |
| 158 | lleg = char["Left Leg"] | |
| 159 | root = char.HumanoidRootPart | |
| 160 | char.Humanoid.MaxHealth = 250000 | |
| 161 | wait() | |
| 162 | char.Humanoid.Health = 250000 | |
| 163 | hed = char.Head | |
| 164 | rleg = char["Right Leg"] | |
| 165 | rarm = char["Right Arm"] | |
| 166 | larm = char["Left Arm"] | |
| 167 | vt = Vector3.new | |
| 168 | bc = BrickColor.new | |
| 169 | br = BrickColor.random | |
| 170 | it = Instance.new | |
| 171 | cf = CFrame.new | |
| 172 | ||
| 173 | ----------------------------------- | |
| 174 | function chatfunc(text) | |
| 175 | local chat = coroutine.wrap(function() | |
| 176 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 177 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 178 | end | |
| 179 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 180 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 181 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 182 | naeeym2.Adornee = Character.Head | |
| 183 | naeeym2.Name = "TalkingBillBoard" | |
| 184 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 185 | tecks2.BackgroundTransparency = 1 | |
| 186 | tecks2.BorderSizePixel = 0 | |
| 187 | tecks2.Text = "" | |
| 188 | tecks2.Font = "ArialBold" | |
| 189 | tecks2.TextSize = 30 | |
| 190 | tecks2.TextStrokeTransparency = 0 | |
| 191 | tecks2.TextColor3 = Color3.new(255,255,0) | |
| 192 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 193 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 194 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 195 | tecks3.BackgroundTransparency = 1 | |
| 196 | tecks3.BorderSizePixel = 0 | |
| 197 | tecks3.Text = "" | |
| 198 | tecks3.Font = "ArialBold" | |
| 199 | tecks3.TextSize = 30 | |
| 200 | tecks3.TextStrokeTransparency = 0 | |
| 201 | tecks3.TextColor3 = Color3.new(255,255,0) | |
| 202 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
| 203 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 204 | for i = 1,string.len(text),1 do | |
| 205 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=138089340", Character, .6, .8)
| |
| 206 | tecks2.Text = string.sub(text,1,i) | |
| 207 | tecks3.Text = string.sub(text,1,i) | |
| 208 | wait(0.01) | |
| 209 | end | |
| 210 | wait(2) | |
| 211 | for i = 1, 50 do | |
| 212 | swait() | |
| 213 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 214 | tecks2.Rotation = tecks2.Rotation - .8 | |
| 215 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 216 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 217 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 218 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 219 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 220 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 221 | end | |
| 222 | naeeym2:Destroy() | |
| 223 | end) | |
| 224 | chat() | |
| 225 | end | |
| 226 | function onChatted(msg) | |
| 227 | chatfunc(msg) | |
| 228 | end | |
| 229 | ||
| 230 | ----------------------------------- | |
| 231 | ||
| 232 | local Create = LoadLibrary("RbxUtility").Create
| |
| 233 | ||
| 234 | CFuncs = {
| |
| 235 | ["Part"] = {
| |
| 236 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 237 | local Part = Create("Part"){
| |
| 238 | Parent = Parent, | |
| 239 | Reflectance = Reflectance, | |
| 240 | Transparency = Transparency, | |
| 241 | CanCollide = false, | |
| 242 | Locked = true, | |
| 243 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 244 | Name = Name, | |
| 245 | Size = Size, | |
| 246 | Material = Material, | |
| 247 | } | |
| 248 | RemoveOutlines(Part) | |
| 249 | return Part | |
| 250 | end; | |
| 251 | }; | |
| 252 | ||
| 253 | ["Mesh"] = {
| |
| 254 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 255 | local Msh = Create(Mesh){
| |
| 256 | Parent = Part, | |
| 257 | Offset = OffSet, | |
| 258 | Scale = Scale, | |
| 259 | } | |
| 260 | if Mesh == "SpecialMesh" then | |
| 261 | Msh.MeshType = MeshType | |
| 262 | Msh.MeshId = MeshId | |
| 263 | end | |
| 264 | return Msh | |
| 265 | end; | |
| 266 | }; | |
| 267 | ||
| 268 | ["Mesh"] = {
| |
| 269 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 270 | local Msh = Create(Mesh){
| |
| 271 | Parent = Part, | |
| 272 | Offset = OffSet, | |
| 273 | Scale = Scale, | |
| 274 | } | |
| 275 | if Mesh == "SpecialMesh" then | |
| 276 | Msh.MeshType = MeshType | |
| 277 | Msh.MeshId = MeshId | |
| 278 | end | |
| 279 | return Msh | |
| 280 | end; | |
| 281 | }; | |
| 282 | ||
| 283 | ["Weld"] = {
| |
| 284 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 285 | local Weld = Create("Weld"){
| |
| 286 | Parent = Parent, | |
| 287 | Part0 = Part0, | |
| 288 | Part1 = Part1, | |
| 289 | C0 = C0, | |
| 290 | C1 = C1, | |
| 291 | } | |
| 292 | return Weld | |
| 293 | end; | |
| 294 | }; | |
| 295 | ||
| 296 | ["Sound"] = {
| |
| 297 | Create = function(id, par, vol, pit) | |
| 298 | coroutine.resume(coroutine.create(function() | |
| 299 | local S = Create("Sound"){
| |
| 300 | Volume = vol, | |
| 301 | Pitch = pit or 1, | |
| 302 | SoundId = id, | |
| 303 | Parent = par or workspace, | |
| 304 | } | |
| 305 | wait() | |
| 306 | S:play() | |
| 307 | game:GetService("Debris"):AddItem(S, 10)
| |
| 308 | end)) | |
| 309 | end; | |
| 310 | }; | |
| 311 | ||
| 312 | ["ParticleEmitter"] = {
| |
| 313 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 314 | local fp = Create("ParticleEmitter"){
| |
| 315 | Parent = Parent, | |
| 316 | Color = ColorSequence.new(Color1, Color2), | |
| 317 | LightEmission = LightEmission, | |
| 318 | Size = Size, | |
| 319 | Texture = Texture, | |
| 320 | Transparency = Transparency, | |
| 321 | ZOffset = ZOffset, | |
| 322 | Acceleration = Accel, | |
| 323 | Drag = Drag, | |
| 324 | LockedToPart = LockedToPart, | |
| 325 | VelocityInheritance = VelocityInheritance, | |
| 326 | EmissionDirection = EmissionDirection, | |
| 327 | Enabled = Enabled, | |
| 328 | Lifetime = LifeTime, | |
| 329 | Rate = Rate, | |
| 330 | Rotation = Rotation, | |
| 331 | RotSpeed = RotSpeed, | |
| 332 | Speed = Speed, | |
| 333 | VelocitySpread = VelocitySpread, | |
| 334 | } | |
| 335 | return fp | |
| 336 | end; | |
| 337 | }; | |
| 338 | ||
| 339 | CreateTemplate = {
| |
| 340 | ||
| 341 | }; | |
| 342 | } | |
| 343 | ||
| 344 | ||
| 345 | ||
| 346 | New = function(Object, Parent, Name, Data) | |
| 347 | local Object = Instance.new(Object) | |
| 348 | for Index, Value in pairs(Data or {}) do
| |
| 349 | Object[Index] = Value | |
| 350 | end | |
| 351 | Object.Parent = Parent | |
| 352 | Object.Name = Name | |
| 353 | return Object | |
| 354 | end | |
| 355 | local m = Instance.new("Model",char)
| |
| 356 | ||
| 357 | function CreatePart(parent,transparency,reflectance,material,brickcolor) | |
| 358 | local p = Instance.new("Part")
| |
| 359 | p.Parent = parent | |
| 360 | p.Size = Vector3.new(1,1,1) | |
| 361 | p.Transparency = transparency | |
| 362 | p.Reflectance = reflectance | |
| 363 | p.CanCollide = false | |
| 364 | p.Locked = true | |
| 365 | p.BrickColor = brickcolor | |
| 366 | p.Material = material | |
| 367 | return p | |
| 368 | end | |
| 369 | ||
| 370 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 371 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 372 | mesh.MeshType = meshtype | |
| 373 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 374 | return mesh | |
| 375 | end | |
| 376 | ||
| 377 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 378 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 379 | mesh.MeshType = "FileMesh" | |
| 380 | mesh.MeshId = meshid | |
| 381 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 382 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 383 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 384 | return mesh | |
| 385 | end | |
| 386 | ||
| 387 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 388 | local weld = Instance.new("Weld")
| |
| 389 | weld.Parent = parent | |
| 390 | weld.Part0 = part0 | |
| 391 | weld.Part1 = part1 | |
| 392 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 393 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 394 | return weld | |
| 395 | end | |
| 396 | ||
| 397 | ||
| 398 | function ApplyTrig(Num,Func) | |
| 399 | local Min,Max = Func(0),Func(1) | |
| 400 | local i = Func(Num) | |
| 401 | return (i-Min)/(Max-Min) | |
| 402 | --[[if Func == "sin" then | |
| 403 | return (math.sin((1-Num)*math.pi)+1)/2 | |
| 404 | elseif Func == "cos" then | |
| 405 | return (math.cos((1-Num)*math.pi)+1)/2 | |
| 406 | end]] | |
| 407 | end | |
| 408 | ||
| 409 | local acos = math.acos | |
| 410 | local sqrt = math.sqrt | |
| 411 | local Vec3 = Vector3.new | |
| 412 | ||
| 413 | local function toAxisAngle(CFr) | |
| 414 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 415 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 416 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 417 | A = A == 0 and 0.00001 or A | |
| 418 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 419 | B = B == 0 and 0.00001 or B | |
| 420 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 421 | C = C == 0 and 0.00001 or C | |
| 422 | local x = (R21-R12)/sqrt(A) | |
| 423 | local y = (R02-R20)/sqrt(B) | |
| 424 | local z = (R10-R01)/sqrt(C) | |
| 425 | return Vec3(x,y,z),Angle | |
| 426 | end | |
| 427 | ||
| 428 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 429 | ||
| 430 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 431 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 432 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 433 | end | |
| 434 | ||
| 435 | ||
| 436 | ||
| 437 | ||
| 438 | ||
| 439 | local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 440 | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 441 | local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 442 | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 443 | ||
| 444 | Player=game:GetService("Players").LocalPlayer
| |
| 445 | Character=Player.Character | |
| 446 | PlayerGui=Player.PlayerGui | |
| 447 | Backpack=Player.Backpack | |
| 448 | Torso=Character.Torso | |
| 449 | Head=Character.Head | |
| 450 | Humanoid=Character.Humanoid | |
| 451 | m=Instance.new('Model',Character)
| |
| 452 | LeftArm=Character["Left Arm"] | |
| 453 | LeftLeg=Character["Left Leg"] | |
| 454 | RightArm=Character["Right Arm"] | |
| 455 | RightLeg=Character["Right Leg"] | |
| 456 | LS=Torso["Left Shoulder"] | |
| 457 | LH=Torso["Left Hip"] | |
| 458 | RS=Torso["Right Shoulder"] | |
| 459 | RH=Torso["Right Hip"] | |
| 460 | Face = Head.face | |
| 461 | Neck=Torso.Neck | |
| 462 | it=Instance.new | |
| 463 | attacktype=1 | |
| 464 | vt=Vector3.new | |
| 465 | cf=CFrame.new | |
| 466 | euler=CFrame.fromEulerAnglesXYZ | |
| 467 | angles=CFrame.Angles | |
| 468 | cloaked=false | |
| 469 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 470 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 471 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 472 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 473 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 474 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 475 | RootPart=Character.HumanoidRootPart | |
| 476 | RootJoint=RootPart.RootJoint | |
| 477 | RootCF=euler(-1.57,0,3.14) | |
| 478 | attack = false | |
| 479 | attackdebounce = false | |
| 480 | deb=false | |
| 481 | equipped=true | |
| 482 | hand=false | |
| 483 | MMouse=nil | |
| 484 | combo=0 | |
| 485 | mana=0 | |
| 486 | trispeed=.2 | |
| 487 | attackmode='none' | |
| 488 | local idle=0 | |
| 489 | local Anim="Idle" | |
| 490 | local Effects={}
| |
| 491 | local gun=false | |
| 492 | local shoot=false | |
| 493 | local sine = 0 | |
| 494 | local change = 1 | |
| 495 | player=nil | |
| 496 | shirt = Instance.new("Shirt", char)
| |
| 497 | shirt.Name = "Shirt" | |
| 498 | pants = Instance.new("Pants", char)
| |
| 499 | pants.Name = "Pants" | |
| 500 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=940848256" | |
| 501 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=968126598" | |
| 502 | hum.WalkSpeed = 20 | |
| 503 | ||
| 504 | asd = Instance.new("Sound",char)
| |
| 505 | asd.SoundId = "http://www.roblox.com/asset/?id = 969947758" | |
| 506 | asd.Volume = 3 | |
| 507 | asd.Looped = true | |
| 508 | ||
| 509 | ||
| 510 | Hair7 = Instance.new("Part")
| |
| 511 | Hair7.Parent = char | |
| 512 | Hair7.Name = "Hair" | |
| 513 | Hair7.CanCollide = false | |
| 514 | Hair7.Locked = true | |
| 515 | Hair7.TopSurface = "Smooth" | |
| 516 | Hair7.BottomSurface = "Smooth" | |
| 517 | Hair7.formFactor = "Symmetric" | |
| 518 | Hair7.Material = "Neon" | |
| 519 | Hair7.BrickColor = BrickColor.new("Daisy orange")
| |
| 520 | Hair7.CFrame = char.Torso.CFrame | |
| 521 | Hair7.Size = Vector3.new(1, 1, 1) | |
| 522 | Hair7.Transparency = 0 | |
| 523 | ||
| 524 | ||
| 525 | Weld1 = Instance.new("Weld")
| |
| 526 | Weld1.Parent = char.Head | |
| 527 | Weld1.Part0 = char.Head | |
| 528 | Weld1.Part1 = Hair7 | |
| 529 | Weld1.C0 = CFrame.new(0, 1, 0) | |
| 530 | ||
| 531 | Mesh = Instance.new("SpecialMesh")
| |
| 532 | Mesh.Offset = Vector3.new(0,-0.4,0.1) | |
| 533 | Mesh.Parent = Hair7 | |
| 534 | Mesh.Scale = Vector3.new(1.2, 1.2, 1.2) | |
| 535 | Mesh.MeshType = "FileMesh" | |
| 536 | Mesh.MeshId = "http://www.roblox.com/asset/?id=19326912" | |
| 537 | Mesh.TextureId = "" | |
| 538 | ||
| 539 | ||
| 540 | local txt = Instance.new("BillboardGui", char)
| |
| 541 | CV="Lime green" | |
| 542 | txt.Adornee = char .Head | |
| 543 | txt.Name = "_status" | |
| 544 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 545 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 546 | local text = Instance.new("TextLabel", txt)
| |
| 547 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 548 | text.FontSize = "Size24" | |
| 549 | text.TextScaled = true | |
| 550 | text.TextTransparency = 0 | |
| 551 | text.BackgroundTransparency = 1 | |
| 552 | text.TextTransparency = 0 | |
| 553 | text.TextStrokeTransparency = 0 | |
| 554 | text.Font = "Bodoni" | |
| 555 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 556 | text.TextColor3 = Color3.fromRGB(255,255,0) | |
| 557 | text.Text = " " | |
| 558 | v=Instance.new("Part")
| |
| 559 | v.Name = "ColorBrick" | |
| 560 | v.Parent= plr.Character | |
| 561 | v.FormFactor="Symmetric" | |
| 562 | v.Anchored=true | |
| 563 | v.CanCollide=false | |
| 564 | v.BottomSurface="Smooth" | |
| 565 | v.TopSurface="Smooth" | |
| 566 | v.Size=Vector3.new(10,5,3) | |
| 567 | v.Transparency=0 | |
| 568 | v.CFrame=char.Torso.CFrame | |
| 569 | v.BrickColor=BrickColor.new("Lime green")
| |
| 570 | v.Transparency=1 | |
| 571 | v.Shape="Block" | |
| 572 | ||
| 573 | mouse=Player:GetMouse() | |
| 574 | --save shoulders | |
| 575 | RSH, LSH=nil, nil | |
| 576 | --welds | |
| 577 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 578 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 579 | LH=Torso["Left Hip"] | |
| 580 | RH=Torso["Right Hip"] | |
| 581 | TorsoColor=Torso.BrickColor | |
| 582 | function NoOutline(Part) | |
| 583 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 584 | end | |
| 585 | player=Player | |
| 586 | ch=Character | |
| 587 | RSH=ch.Torso["Right Shoulder"] | |
| 588 | LSH=ch.Torso["Left Shoulder"] | |
| 589 | -- | |
| 590 | RSH.Parent=nil | |
| 591 | LSH.Parent=nil | |
| 592 | -- | |
| 593 | RW.Name="Right Shoulder" | |
| 594 | RW.Part0=ch.Torso | |
| 595 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 596 | RW.C1=cf(0, 0.5, 0) | |
| 597 | RW.Part1=ch["Right Arm"] | |
| 598 | RW.Parent=ch.Torso | |
| 599 | -- | |
| 600 | LW.Name="Left Shoulder" | |
| 601 | LW.Part0=ch.Torso | |
| 602 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 603 | LW.C1=cf(0, 0.5, 0) | |
| 604 | LW.Part1=ch["Left Arm"] | |
| 605 | LW.Parent=ch.Torso | |
| 606 | ||
| 607 | local Stats=Instance.new("BoolValue")
| |
| 608 | Stats.Name="Stats" | |
| 609 | Stats.Parent=Character | |
| 610 | local Atk=Instance.new("NumberValue")
| |
| 611 | Atk.Name="Damage" | |
| 612 | Atk.Parent=Stats | |
| 613 | Atk.Value=1 | |
| 614 | local Def=Instance.new("NumberValue")
| |
| 615 | Def.Name="Defense" | |
| 616 | Def.Parent=Stats | |
| 617 | Def.Value=1 | |
| 618 | local Speed=Instance.new("NumberValue")
| |
| 619 | Speed.Name="Speed" | |
| 620 | Speed.Parent=Stats | |
| 621 | Speed.Value=1 | |
| 622 | local Mvmt=Instance.new("NumberValue")
| |
| 623 | Mvmt.Name="Movement" | |
| 624 | Mvmt.Parent=Stats | |
| 625 | Mvmt.Value=1 | |
| 626 | ||
| 627 | local donum=0 | |
| 628 | ||
| 629 | ||
| 630 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 631 | local fp=it("Part")
| |
| 632 | fp.formFactor=formfactor | |
| 633 | fp.Parent=parent | |
| 634 | fp.Reflectance=reflectance | |
| 635 | fp.Transparency=transparency | |
| 636 | fp.CanCollide=false | |
| 637 | fp.Locked=true | |
| 638 | fp.BrickColor=brickcolor | |
| 639 | fp.Name=name | |
| 640 | fp.Size=size | |
| 641 | fp.Position=Torso.Position | |
| 642 | NoOutline(fp) | |
| 643 | fp.Material="SmoothPlastic" | |
| 644 | fp:BreakJoints() | |
| 645 | return fp | |
| 646 | end | |
| 647 | ||
| 648 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 649 | local mesh=it(Mesh) | |
| 650 | mesh.Parent=part | |
| 651 | if Mesh=="SpecialMesh" then | |
| 652 | mesh.MeshType=meshtype | |
| 653 | if meshid~="nil" then | |
| 654 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 655 | end | |
| 656 | end | |
| 657 | mesh.Offset=offset | |
| 658 | mesh.Scale=scale | |
| 659 | return mesh | |
| 660 | end | |
| 661 | ||
| 662 | function weld(parent,part0,part1,c0) | |
| 663 | local weld=it("Weld")
| |
| 664 | weld.Parent=parent | |
| 665 | weld.Part0=part0 | |
| 666 | weld.Part1=part1 | |
| 667 | weld.C0=c0 | |
| 668 | return weld | |
| 669 | end | |
| 670 | ||
| 671 | local Color1=Torso.BrickColor | |
| 672 | ||
| 673 | local bodvel=Instance.new("BodyVelocity")
| |
| 674 | local bg=Instance.new("BodyGyro")
| |
| 675 | ||
| 676 | function swait(num) | |
| 677 | if num==0 or num==nil then | |
| 678 | game:service'RunService'.Stepped:wait(0) | |
| 679 | else | |
| 680 | for i=0,num do | |
| 681 | game:service'RunService'.Stepped:wait(0) | |
| 682 | end | |
| 683 | end | |
| 684 | end | |
| 685 | ||
| 686 | ||
| 687 | so = function(id,par,vol,pit) | |
| 688 | coroutine.resume(coroutine.create(function() | |
| 689 | local sou = Instance.new("Sound",par or workspace)
| |
| 690 | sou.Volume=vol | |
| 691 | sou.Pitch=pit or 1 | |
| 692 | sou.SoundId=id | |
| 693 | swait() | |
| 694 | sou:play() | |
| 695 | game:GetService("Debris"):AddItem(sou,6)
| |
| 696 | end)) | |
| 697 | end | |
| 698 | ||
| 699 | function clerp(a,b,t) | |
| 700 | local qa = {QuaternionFromCFrame(a)}
| |
| 701 | local qb = {QuaternionFromCFrame(b)}
| |
| 702 | local ax, ay, az = a.x, a.y, a.z | |
| 703 | local bx, by, bz = b.x, b.y, b.z | |
| 704 | local _t = 1-t | |
| 705 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 706 | end | |
| 707 | ||
| 708 | function QuaternionFromCFrame(cf) | |
| 709 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 710 | local trace = m00 + m11 + m22 | |
| 711 | if trace > 0 then | |
| 712 | local s = math.sqrt(1 + trace) | |
| 713 | local recip = 0.5/s | |
| 714 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 715 | else | |
| 716 | local i = 0 | |
| 717 | if m11 > m00 then | |
| 718 | i = 1 | |
| 719 | end | |
| 720 | if m22 > (i == 0 and m00 or m11) then | |
| 721 | i = 2 | |
| 722 | end | |
| 723 | if i == 0 then | |
| 724 | local s = math.sqrt(m00-m11-m22+1) | |
| 725 | local recip = 0.5/s | |
| 726 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 727 | elseif i == 1 then | |
| 728 | local s = math.sqrt(m11-m22-m00+1) | |
| 729 | local recip = 0.5/s | |
| 730 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 731 | elseif i == 2 then | |
| 732 | local s = math.sqrt(m22-m00-m11+1) | |
| 733 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 734 | end | |
| 735 | end | |
| 736 | end | |
| 737 | ||
| 738 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 739 | local xs, ys, zs = x + x, y + y, z + z | |
| 740 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 741 | local xx = x*xs | |
| 742 | local xy = x*ys | |
| 743 | local xz = x*zs | |
| 744 | local yy = y*ys | |
| 745 | local yz = y*zs | |
| 746 | local zz = z*zs | |
| 747 | 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)) | |
| 748 | end | |
| 749 | ||
| 750 | function QuaternionSlerp(a, b, t) | |
| 751 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 752 | local startInterp, finishInterp; | |
| 753 | if cosTheta >= 0.0001 then | |
| 754 | if (1 - cosTheta) > 0.0001 then | |
| 755 | local theta = math.acos(cosTheta) | |
| 756 | local invSinTheta = 1/math.sin(theta) | |
| 757 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 758 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 759 | else | |
| 760 | startInterp = 1-t | |
| 761 | finishInterp = t | |
| 762 | end | |
| 763 | else | |
| 764 | if (1+cosTheta) > 0.0001 then | |
| 765 | local theta = math.acos(-cosTheta) | |
| 766 | local invSinTheta = 1/math.sin(theta) | |
| 767 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 768 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 769 | else | |
| 770 | startInterp = t-1 | |
| 771 | finishInterp = t | |
| 772 | end | |
| 773 | end | |
| 774 | 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 | |
| 775 | end | |
| 776 | ||
| 777 | local function CFrameFromTopBack(at, top, back) | |
| 778 | local right = top:Cross(back) | |
| 779 | return CFrame.new(at.x, at.y, at.z, | |
| 780 | right.x, top.x, back.x, | |
| 781 | right.y, top.y, back.y, | |
| 782 | right.z, top.z, back.z) | |
| 783 | end | |
| 784 | ||
| 785 | function Triangle(a, b, c) | |
| 786 | local edg1 = (c-a):Dot((b-a).unit) | |
| 787 | local edg2 = (a-b):Dot((c-b).unit) | |
| 788 | local edg3 = (b-c):Dot((a-c).unit) | |
| 789 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 790 | a, b, c = a, b, c | |
| 791 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 792 | a, b, c = b, c, a | |
| 793 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 794 | a, b, c = c, a, b | |
| 795 | else | |
| 796 | assert(false, "unreachable") | |
| 797 | end | |
| 798 | ||
| 799 | local len1 = (c-a):Dot((b-a).unit) | |
| 800 | local len2 = (b-a).magnitude - len1 | |
| 801 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 802 | ||
| 803 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 804 | ||
| 805 | local list = {}
| |
| 806 | ||
| 807 | if len1 > 0.01 then | |
| 808 | local w1 = Instance.new('WedgePart', m)
| |
| 809 | game:GetService("Debris"):AddItem(w1,5)
| |
| 810 | w1.Material = "SmoothPlastic" | |
| 811 | w1.FormFactor = 'Custom' | |
| 812 | w1.BrickColor = BrickColor.new("Really red")
| |
| 813 | w1.Transparency = 0 | |
| 814 | w1.Reflectance = 0 | |
| 815 | w1.Material = "SmoothPlastic" | |
| 816 | w1.CanCollide = false | |
| 817 | local l1 = Instance.new("PointLight",w1)
| |
| 818 | l1.Color = Color3.new(170,0,0) | |
| 819 | NoOutline(w1) | |
| 820 | local sz = Vector3.new(0.2, width, len1) | |
| 821 | w1.Size = sz | |
| 822 | local sp = Instance.new("SpecialMesh",w1)
| |
| 823 | sp.MeshType = "Wedge" | |
| 824 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 825 | w1:BreakJoints() | |
| 826 | w1.Anchored = true | |
| 827 | w1.Parent = workspace | |
| 828 | w1.Transparency = 0.7 | |
| 829 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 830 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 831 | table.insert(list,w1) | |
| 832 | end | |
| 833 | ||
| 834 | if len2 > 0.01 then | |
| 835 | local w2 = Instance.new('WedgePart', m)
| |
| 836 | game:GetService("Debris"):AddItem(w2,5)
| |
| 837 | w2.Material = "SmoothPlastic" | |
| 838 | w2.FormFactor = 'Custom' | |
| 839 | w2.BrickColor = BrickColor.new("Really red")
| |
| 840 | w2.Transparency = 0 | |
| 841 | w2.Reflectance = 0 | |
| 842 | w2.Material = "SmoothPlastic" | |
| 843 | w2.CanCollide = false | |
| 844 | local l2 = Instance.new("PointLight",w2)
| |
| 845 | l2.Color = Color3.new(170,0,0) | |
| 846 | NoOutline(w2) | |
| 847 | local sz = Vector3.new(0.2, width, len2) | |
| 848 | w2.Size = sz | |
| 849 | local sp = Instance.new("SpecialMesh",w2)
| |
| 850 | sp.MeshType = "Wedge" | |
| 851 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 852 | w2:BreakJoints() | |
| 853 | w2.Anchored = true | |
| 854 | w2.Parent = workspace | |
| 855 | w2.Transparency = 0.7 | |
| 856 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 857 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 858 | table.insert(list,w2) | |
| 859 | end | |
| 860 | return unpack(list) | |
| 861 | end | |
| 862 | ||
| 863 | ||
| 864 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 865 | if hit.Parent==nil then | |
| 866 | return | |
| 867 | end | |
| 868 | h=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 869 | for _,v in pairs(hit.Parent:children()) do | |
| 870 | if v:IsA("Humanoid") then
| |
| 871 | h=v | |
| 872 | end | |
| 873 | end | |
| 874 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 875 | h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 876 | end | |
| 877 | if hit.Parent.className=="Hat" then | |
| 878 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 879 | end | |
| 880 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 881 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 882 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 883 | return | |
| 884 | end]] | |
| 885 | -- hs(hit,1.2) | |
| 886 | c=Instance.new("ObjectValue")
| |
| 887 | c.Name="creator" | |
| 888 | c.Value=game:service("Players").LocalPlayer
| |
| 889 | c.Parent=h | |
| 890 | game:GetService("Debris"):AddItem(c,.5)
| |
| 891 | Damage=math.random(minim,maxim) | |
| 892 | -- h:TakeDamage(Damage) | |
| 893 | blocked=false | |
| 894 | block=hit.Parent:findFirstChild("Block")
| |
| 895 | if block~=nil then | |
| 896 | print(block.className) | |
| 897 | if block.className=="NumberValue" then | |
| 898 | if block.Value>0 then | |
| 899 | blocked=true | |
| 900 | if decreaseblock==nil then | |
| 901 | block.Value=block.Value-1 | |
| 902 | end | |
| 903 | end | |
| 904 | end | |
| 905 | if block.className=="IntValue" then | |
| 906 | if block.Value>0 then | |
| 907 | blocked=true | |
| 908 | if decreaseblock~=nil then | |
| 909 | block.Value=block.Value-1 | |
| 910 | end | |
| 911 | end | |
| 912 | end | |
| 913 | end | |
| 914 | if blocked==false then | |
| 915 | -- h:TakeDamage(Damage) | |
| 916 | h.Health=h.Health-Damage | |
| 917 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
| |
| 918 | else | |
| 919 | h.Health=h.Health-(Damage/2) | |
| 920 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 921 | end | |
| 922 | if Type=="Knockdown" then | |
| 923 | hum=hit.Parent.Humanoid | |
| 924 | hum.PlatformStand=true | |
| 925 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 926 | swait(1) | |
| 927 | HHumanoid.PlatformStand=false | |
| 928 | end),hum) | |
| 929 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 930 | hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 931 | local bodvol=Instance.new("BodyVelocity")
| |
| 932 | bodvol.velocity=angle*knockback | |
| 933 | bodvol.P=5000 | |
| 934 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 935 | bodvol.Parent=hit | |
| 936 | rl=Instance.new("BodyAngularVelocity")
| |
| 937 | rl.P=3000 | |
| 938 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 939 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 940 | rl.Parent=hit | |
| 941 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 942 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 943 | elseif Type=="Normal" then | |
| 944 | bp=Instance.new("BodyVelocity")
| |
| 945 | bp.P=100000 | |
| 946 | bp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 947 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 948 | if KnockbackType==1 then | |
| 949 | bp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 950 | elseif KnockbackType==2 then | |
| 951 | bp.velocity=Property.CFrame.lookVector*knockback | |
| 952 | end | |
| 953 | if knockback>0 then | |
| 954 | bp.Parent=hit.Parent.Torso | |
| 955 | ||
| 956 | end | |
| 957 | game:GetService("Debris"):AddItem(bp,.5)
| |
| 958 | elseif Type=="Up" then | |
| 959 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 960 | bodyVelocity.velocity=vt(0,60,0) | |
| 961 | bodyVelocity.P=5000 | |
| 962 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 963 | bodyVelocity.Parent=hit | |
| 964 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 965 | rl=Instance.new("BodyAngularVelocity")
| |
| 966 | rl.P=3000 | |
| 967 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 968 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 969 | rl.Parent=hit | |
| 970 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 971 | elseif Type=="Snare" then | |
| 972 | bp=Instance.new("BodyPosition")
| |
| 973 | bp.P=2000 | |
| 974 | bp.D=100 | |
| 975 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 976 | bp.position=hit.Parent.Torso.Position | |
| 977 | bp.Parent=hit.Parent.Torso | |
| 978 | game:GetService("Debris"):AddItem(bp,1)
| |
| 979 | elseif Type=="Target" then | |
| 980 | if Targetting==false then | |
| 981 | ZTarget=hit.Parent.Torso | |
| 982 | coroutine.resume(coroutine.create(function(Part) | |
| 983 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 984 | swait(1) | |
| 985 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 986 | end),ZTarget) | |
| 987 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 988 | targetgui=Instance.new("BillboardGui")
| |
| 989 | targetgui.Parent=ZTarget | |
| 990 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 991 | targ=Instance.new("ImageLabel")
| |
| 992 | targ.Parent=targetgui | |
| 993 | targ.BackgroundTransparency=1 | |
| 994 | targ.Image="rbxassetid://4834067" | |
| 995 | targ.Size=UDim2.new(1,0,1,0) | |
| 996 | cam.CameraType="Scriptable" | |
| 997 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 998 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 999 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1000 | Targetting=true | |
| 1001 | RocketTarget=ZTarget | |
| 1002 | for i=1,Property do | |
| 1003 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 1004 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 1005 | swait() | |
| 1006 | end | |
| 1007 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 1008 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1009 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 1010 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 1011 | end | |
| 1012 | Targetting=true | |
| 1013 | RocketTarget=true | |
| 1014 | targetgui.Parent=true | |
| 1015 | cam.CameraType="Custom" | |
| 1016 | end | |
| 1017 | end | |
| 1018 | debounce=Instance.new("BoolValue")
| |
| 1019 | debounce.Name="DebounceHit" | |
| 1020 | debounce.Parent=hit.Parent | |
| 1021 | debounce.Value=true | |
| 1022 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 1023 | c=Instance.new("ObjectValue")
| |
| 1024 | c.Name="creator" | |
| 1025 | c.Value=Player | |
| 1026 | c.Parent=h | |
| 1027 | game:GetService("Debris"):AddItem(c,.5)
| |
| 1028 | CRIT=true | |
| 1029 | hitDeb=true | |
| 1030 | AttackPos=6 | |
| 1031 | end | |
| 1032 | end | |
| 1033 | ||
| 1034 | showDamage=function(Char,Dealt,du,Color) | |
| 1035 | m=Instance.new("Model")
| |
| 1036 | m.Name=tostring(Dealt) | |
| 1037 | h=Instance.new("Humanoid")
| |
| 1038 | h.Health=0 | |
| 1039 | h.MaxHealth=0 | |
| 1040 | h.Parent=m | |
| 1041 | c=Instance.new("Part")
| |
| 1042 | c.Transparency=0 | |
| 1043 | c.BrickColor=Color | |
| 1044 | c.Transparency = 1 | |
| 1045 | c.Name="Head" | |
| 1046 | c.TopSurface=0 | |
| 1047 | c.BottomSurface=0 | |
| 1048 | c.formFactor="Plate" | |
| 1049 | c.Size=Vector3.new(1,.4,1) | |
| 1050 | ||
| 1051 | local txt = Instance.new("BillboardGui", c)
| |
| 1052 | txt.Adornee = c | |
| 1053 | txt.Name = "_status" | |
| 1054 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1055 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 1056 | local text = Instance.new("TextLabel", txt)
| |
| 1057 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 1058 | text.FontSize = "Size12" | |
| 1059 | text.TextScaled = true | |
| 1060 | text.TextTransparency = 0.5 | |
| 1061 | text.BackgroundTransparency = 1 | |
| 1062 | text.TextTransparency = 0.5 | |
| 1063 | text.TextStrokeTransparency = 0.5 | |
| 1064 | text.Font = "SciFi" | |
| 1065 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1066 | v=Instance.new("Part")
| |
| 1067 | v.Name = "ColorBrick" | |
| 1068 | v.Parent=c | |
| 1069 | v.FormFactor="Symmetric" | |
| 1070 | v.Anchored=true | |
| 1071 | v.CanCollide=false | |
| 1072 | v.BottomSurface="Smooth" | |
| 1073 | v.TopSurface="Smooth" | |
| 1074 | v.Size=Vector3.new(10,5,3) | |
| 1075 | v.Transparency=1 | |
| 1076 | v.CFrame=c.CFrame | |
| 1077 | v.BrickColor=BrickColor.random() | |
| 1078 | v.Transparency=1 | |
| 1079 | text.TextColor3 = t.BrickColor.Color | |
| 1080 | v.Shape="Block" | |
| 1081 | text.Text = tostring(Dealt) | |
| 1082 | ms=Instance.new("CylinderMesh")
| |
| 1083 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 1084 | --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1085 | local rndm=math.random(1,#hitsounds) | |
| 1086 | local r=rndm | |
| 1087 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
| |
| 1088 | if CRIT==true then | |
| 1089 | ms.Scale=Vector3.new(1,1.25,1) | |
| 1090 | end | |
| 1091 | ms.Parent=c | |
| 1092 | c.Reflectance=0 | |
| 1093 | Instance.new("BodyGyro").Parent=c
| |
| 1094 | c.Parent=m | |
| 1095 | if Char:findFirstChild("Head")~=nil then
| |
| 1096 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 1097 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 1098 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 1099 | end | |
| 1100 | f=Instance.new("BodyPosition")
| |
| 1101 | f.P=200000 | |
| 1102 | f.D=100 | |
| 1103 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1104 | f.position=c.Position+Vector3.new(0,3,0) | |
| 1105 | f.Parent=c | |
| 1106 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 1107 | c.CanCollide=false | |
| 1108 | m.Parent=workspace | |
| 1109 | c.CanCollide=false | |
| 1110 | end | |
| 1111 | ||
| 1112 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1113 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1114 | end | |
| 1115 | ||
| 1116 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1117 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1118 | prt.Anchored=true | |
| 1119 | prt.CFrame=cframe | |
| 1120 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1121 | --http://www.roblox.com/asset/?id=4770560 | |
| 1122 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1123 | CF=prt.CFrame | |
| 1124 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1125 | for i=0,1,0.2 do | |
| 1126 | wait() | |
| 1127 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1128 | end | |
| 1129 | for i=0,1,delay do | |
| 1130 | wait() | |
| 1131 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 1132 | Mesh.Scale=Mesh.Scale | |
| 1133 | end | |
| 1134 | for i=0,1,0.1 do | |
| 1135 | wait() | |
| 1136 | Part.Transparency=i | |
| 1137 | end | |
| 1138 | Part.Parent=nil | |
| 1139 | end),prt,msh,CF) | |
| 1140 | end | |
| 1141 | ||
| 1142 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1143 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1144 | prt.Anchored=true | |
| 1145 | prt.Material = "Plastic" | |
| 1146 | prt.CFrame=cframe | |
| 1147 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1148 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1149 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1150 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1151 | for i=0,1,delay do | |
| 1152 | swait() | |
| 1153 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1154 | Part.Transparency=i | |
| 1155 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1156 | end | |
| 1157 | Part.Parent=nil | |
| 1158 | end),prt,msh) | |
| 1159 | end | |
| 1160 | ||
| 1161 | ||
| 1162 | ||
| 1163 | ||
| 1164 | function MagicBlockDash(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1165 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.3,0.3,0.3)) | |
| 1166 | prt.Anchored=true | |
| 1167 | prt.Material = "Neon" | |
| 1168 | prt.CFrame=cframe | |
| 1169 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1170 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1171 | game:GetService("Debris"):AddItem(prt,1)
| |
| 1172 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1173 | for i=0,1,delay do | |
| 1174 | swait() | |
| 1175 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1176 | Part.Transparency=i | |
| 1177 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1178 | end | |
| 1179 | Part.Parent=nil | |
| 1180 | end),prt,msh) | |
| 1181 | end | |
| 1182 | ||
| 1183 | ||
| 1184 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1185 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1186 | prt.Anchored=true | |
| 1187 | prt.Material = "Neon" | |
| 1188 | prt.CFrame=cframe | |
| 1189 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1190 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1191 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1192 | local rtype = rottype | |
| 1193 | for i=0,1,delay do | |
| 1194 | swait() | |
| 1195 | if rtype == 1 then | |
| 1196 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1197 | elseif rtype == 2 then | |
| 1198 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1199 | end | |
| 1200 | Part.Transparency=i | |
| 1201 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1202 | end | |
| 1203 | Part.Parent=nil | |
| 1204 | end),prt,msh) | |
| 1205 | end | |
| 1206 | ||
| 1207 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1208 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1209 | prt.Anchored=true | |
| 1210 | prt.CFrame=cframe | |
| 1211 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1212 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1213 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1214 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1215 | for i=0,1,delay do | |
| 1216 | wait() | |
| 1217 | Part.Transparency=i | |
| 1218 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1219 | end | |
| 1220 | Part.Parent=nil | |
| 1221 | end),prt,msh) | |
| 1222 | end | |
| 1223 | ||
| 1224 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1225 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1226 | prt.Anchored=true | |
| 1227 | prt.Material = "Neon" | |
| 1228 | prt.CFrame=cframe | |
| 1229 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1230 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1231 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1232 | local rtype = rottype | |
| 1233 | for i=0,1,delay do | |
| 1234 | swait() | |
| 1235 | if rtype == 1 then | |
| 1236 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1237 | elseif rtype == 2 then | |
| 1238 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1239 | end | |
| 1240 | Part.Transparency=i | |
| 1241 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1242 | end | |
| 1243 | Part.Parent=nil | |
| 1244 | end),prt,msh) | |
| 1245 | end | |
| 1246 | ||
| 1247 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1248 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1249 | prt.Anchored=true | |
| 1250 | prt.Material = "Neon" | |
| 1251 | prt.CFrame=cframe | |
| 1252 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1253 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1254 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1255 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1256 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1257 | local rtype = rottype | |
| 1258 | for i=0,1,delay do | |
| 1259 | swait() | |
| 1260 | if rtype == 1 then | |
| 1261 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1262 | elseif rtype == 2 then | |
| 1263 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1264 | end | |
| 1265 | dec.Transparency=i | |
| 1266 | dec2.Transparency=i | |
| 1267 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1268 | end | |
| 1269 | Part.Parent=nil | |
| 1270 | end),prt,msh) | |
| 1271 | end | |
| 1272 | ||
| 1273 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1274 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1275 | prt.Anchored=true | |
| 1276 | prt.Material = "Neon" | |
| 1277 | prt.CFrame=cframe | |
| 1278 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1279 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1280 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1281 | local rtype = rottype | |
| 1282 | for i=0,1,delay do | |
| 1283 | swait() | |
| 1284 | if rtype == 1 then | |
| 1285 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1286 | elseif rtype == 2 then | |
| 1287 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1288 | end | |
| 1289 | prt.Transparency=i | |
| 1290 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1291 | end | |
| 1292 | Part.Parent=nil | |
| 1293 | end),prt,msh) | |
| 1294 | end | |
| 1295 | ||
| 1296 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
| 1297 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1298 | prt.Anchored=true | |
| 1299 | prt.Material = "Neon" | |
| 1300 | prt.CFrame=cframe | |
| 1301 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
| |
| 1302 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1303 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1304 | local rtype = rottype | |
| 1305 | for i=0,1,delay do | |
| 1306 | swait() | |
| 1307 | if rtype == 1 then | |
| 1308 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
| 1309 | elseif rtype == 2 then | |
| 1310 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
| 1311 | end | |
| 1312 | prt.Transparency=i | |
| 1313 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
| 1314 | end | |
| 1315 | Part.Parent=nil | |
| 1316 | end),prt,msh) | |
| 1317 | end | |
| 1318 | ||
| 1319 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
| 1320 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1321 | prt.Anchored=true | |
| 1322 | prt.Material = "Neon" | |
| 1323 | prt.CFrame=cframe | |
| 1324 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1325 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1326 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1327 | local rtype = rottype | |
| 1328 | for i=0,1,delay do | |
| 1329 | swait() | |
| 1330 | if rtype == 1 then | |
| 1331 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1332 | elseif rtype == 2 then | |
| 1333 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1334 | end | |
| 1335 | prt.Transparency=i | |
| 1336 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1337 | end | |
| 1338 | Part.Parent=nil | |
| 1339 | end),prt,msh) | |
| 1340 | end | |
| 1341 | ||
| 1342 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1343 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1344 | prt.Material = "Neon" | |
| 1345 | prt.Anchored=true | |
| 1346 | prt.CFrame=cframe | |
| 1347 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 1348 | local wld=weld(prt,prt,Parent,cframe) | |
| 1349 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1350 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1351 | for i=0,1,delay do | |
| 1352 | wait() | |
| 1353 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 1354 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1355 | Part.Transparency=i | |
| 1356 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1357 | end | |
| 1358 | Part.Parent=nil | |
| 1359 | end),prt,msh,wld) | |
| 1360 | end | |
| 1361 | ||
| 1362 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1363 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1364 | prt.Anchored=false | |
| 1365 | prt.CFrame=cframe | |
| 1366 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1367 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 1368 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1369 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1370 | for i=0,1,delay do | |
| 1371 | wait() | |
| 1372 | Weld.C0=euler(i*20,0,0) | |
| 1373 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1374 | Part.Transparency=i | |
| 1375 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1376 | end | |
| 1377 | Part.Parent=nil | |
| 1378 | end),prt,msh,wld) | |
| 1379 | end | |
| 1380 | ||
| 1381 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1382 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1383 | prt.Anchored=true | |
| 1384 | prt.CFrame=cframe | |
| 1385 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1386 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1387 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1388 | for i=0,1,delay do | |
| 1389 | wait() | |
| 1390 | Part.CFrame=Part.CFrame | |
| 1391 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1392 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1393 | prt2.Anchored=true | |
| 1394 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1395 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 1396 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 1397 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1398 | for i=0,1,0.1 do | |
| 1399 | wait() | |
| 1400 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 1401 | end | |
| 1402 | Part.Parent=nil | |
| 1403 | end),prt2,msh2) | |
| 1404 | end | |
| 1405 | for i=0,1,delay*2 do | |
| 1406 | wait() | |
| 1407 | Part.CFrame=Part.CFrame | |
| 1408 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 1409 | end | |
| 1410 | Part.Parent=nil | |
| 1411 | end),prt,msh) | |
| 1412 | end | |
| 1413 | ||
| 1414 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1415 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1416 | prt.Anchored=true | |
| 1417 | prt.CFrame=cframe | |
| 1418 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1419 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1420 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1421 | for i=0,1,delay do | |
| 1422 | wait() | |
| 1423 | Part.CFrame=Part.CFrame | |
| 1424 | Part.Transparency=i | |
| 1425 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1426 | end | |
| 1427 | Part.Parent=nil | |
| 1428 | end),prt,msh) | |
| 1429 | end | |
| 1430 | ||
| 1431 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 1432 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1433 | prt.Anchored=true | |
| 1434 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1435 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1436 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1437 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 1438 | CF=Part.CFrame | |
| 1439 | Numbb=0 | |
| 1440 | randnumb=math.random()/10 | |
| 1441 | rand1=math.random()/10 | |
| 1442 | for i=0,1,rand1 do | |
| 1443 | wait() | |
| 1444 | CF=CF*cf(0,math.random()/2,0) | |
| 1445 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 1446 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 1447 | Part.Transparency=i | |
| 1448 | Numbb=Numbb+randnumb | |
| 1449 | end | |
| 1450 | Part.Parent=nil | |
| 1451 | end),prt,CF,Numbb,randnumb) | |
| 1452 | end | |
| 1453 | ||
| 1454 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1455 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1456 | prt.Anchored=true | |
| 1457 | prt.CFrame=cframe | |
| 1458 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 1459 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1460 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1461 | for i=0,1,delay do | |
| 1462 | wait() | |
| 1463 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 1464 | Part.Transparency=i | |
| 1465 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1466 | end | |
| 1467 | Part.Parent=nil | |
| 1468 | end),prt,msh) | |
| 1469 | end | |
| 1470 | ||
| 1471 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1472 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1473 | prt.Anchored=true | |
| 1474 | prt.CFrame=cframe | |
| 1475 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 1476 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1477 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1478 | for i=0,1,delay do | |
| 1479 | wait() | |
| 1480 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 1481 | Part.Transparency=i | |
| 1482 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1483 | end | |
| 1484 | Part.Parent=nil | |
| 1485 | end),prt,msh) | |
| 1486 | end | |
| 1487 | ||
| 1488 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 1489 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1490 | prt.Anchored=true | |
| 1491 | prt.CFrame=cframe*cf(x,y,z) | |
| 1492 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 1493 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1494 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 1495 | local num=math.random() | |
| 1496 | local num2=math.random(-3,2)+math.random() | |
| 1497 | local numm=0 | |
| 1498 | for i=0,1,delay*2 do | |
| 1499 | swait() | |
| 1500 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 1501 | Part.Transparency=i | |
| 1502 | numm=numm+0.01 | |
| 1503 | end | |
| 1504 | Part.Parent=nil | |
| 1505 | Mesh.Parent=nil | |
| 1506 | end),prt,msh,x,y,z) | |
| 1507 | end | |
| 1508 | ||
| 1509 | function dmgstart(dmg,what) | |
| 1510 | hitcon = what.Touched:connect(function(hit) | |
| 1511 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 1512 | if hum and not hum:IsDescendantOf(Character) then | |
| 1513 | hum:TakeDamage(dmg) | |
| 1514 | end | |
| 1515 | end) | |
| 1516 | end | |
| 1517 | ||
| 1518 | function dmgstop() | |
| 1519 | hitcon:disconnect() | |
| 1520 | end | |
| 1521 | ||
| 1522 | function Cloak() | |
| 1523 | Face.Parent=nil | |
| 1524 | cloaked=true | |
| 1525 | for _,v in pairs(Torso.Parent:children()) do | |
| 1526 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1527 | coroutine.resume(coroutine.create(function() | |
| 1528 | for i=0,1,0.2 do | |
| 1529 | wait() | |
| 1530 | v.Transparency=i | |
| 1531 | end | |
| 1532 | v.Transparency=1 | |
| 1533 | end)) | |
| 1534 | end | |
| 1535 | if v.className=="Hat" then | |
| 1536 | hatp=v.Handle | |
| 1537 | coroutine.resume(coroutine.create(function(derp) | |
| 1538 | for i=0,1,0.2 do | |
| 1539 | wait() | |
| 1540 | derp.Transparency=i | |
| 1541 | end | |
| 1542 | derp.Transparency=1 | |
| 1543 | end),hatp) | |
| 1544 | end | |
| 1545 | end | |
| 1546 | for _,v in pairs(m:children()) do | |
| 1547 | if v.className=="Part" then | |
| 1548 | coroutine.resume(coroutine.create(function() | |
| 1549 | for i=0,1,0.2 do | |
| 1550 | wait() | |
| 1551 | v.Transparency=i | |
| 1552 | end | |
| 1553 | v.Transparency=1 | |
| 1554 | end)) | |
| 1555 | end | |
| 1556 | end | |
| 1557 | end | |
| 1558 | ||
| 1559 | function UnCloak() | |
| 1560 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 1561 | Face.Parent=Head | |
| 1562 | cloaked=false | |
| 1563 | for _,v in pairs(Torso.Parent:children()) do | |
| 1564 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1565 | coroutine.resume(coroutine.create(function() | |
| 1566 | for i=0,1,0.1 do | |
| 1567 | wait() | |
| 1568 | v.Transparency=v.Transparency-0.1 | |
| 1569 | end | |
| 1570 | v.Transparency=0 | |
| 1571 | end)) | |
| 1572 | end | |
| 1573 | if v.className=="Hat" then | |
| 1574 | hatp=v.Handle | |
| 1575 | coroutine.resume(coroutine.create(function(derp) | |
| 1576 | for i=0,1,0.1 do | |
| 1577 | wait() | |
| 1578 | derp.Transparency=derp.Transparency-0.1 | |
| 1579 | end | |
| 1580 | derp.Transparency=0 | |
| 1581 | end),hatp) | |
| 1582 | end | |
| 1583 | end | |
| 1584 | for _,v in pairs(m:children()) do | |
| 1585 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 1586 | coroutine.resume(coroutine.create(function() | |
| 1587 | for i=0,1,0.1 do | |
| 1588 | wait() | |
| 1589 | v.Transparency=v.Transparency-0.1 | |
| 1590 | end | |
| 1591 | v.Transparency=0 | |
| 1592 | end)) | |
| 1593 | v.Transparency=0 | |
| 1594 | end | |
| 1595 | end | |
| 1596 | end | |
| 1597 | ||
| 1598 | local jumped = false | |
| 1599 | function jump() | |
| 1600 | attack = true | |
| 1601 | jumped = true | |
| 1602 | hum.WalkSpeed = 0 | |
| 1603 | MagicBlock(bc("White"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
| |
| 1604 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 0.7, 0.7)
| |
| 1605 | CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
| |
| 1606 | for i = 0,15,0.1 do | |
| 1607 | swait() | |
| 1608 | MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1609 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1610 | RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05) | |
| 1611 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05) | |
| 1612 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05) | |
| 1613 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05) | |
| 1614 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
| 1615 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
| 1616 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 1617 | lig.Color=Color3.new(255,0,0) | |
| 1618 | lig.Range = 10 | |
| 1619 | end | |
| 1620 | local bv = Instance.new("BodyVelocity")
| |
| 1621 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1622 | bv.velocity = Vector3.new(0,500,0) | |
| 1623 | bv.Parent = root | |
| 1624 | game:GetService("Debris"):AddItem(bv, 0.5)
| |
| 1625 | local rng = Instance.new("Part", char)
| |
| 1626 | rng.Anchored = true | |
| 1627 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 1628 | rng.CanCollide = false | |
| 1629 | rng.FormFactor = 3 | |
| 1630 | rng.Name = "Ring" | |
| 1631 | rng.Size = Vector3.new(1, 1, 1) | |
| 1632 | rng.Transparency = 0 | |
| 1633 | rng.TopSurface = 0 | |
| 1634 | rng.BottomSurface = 0 | |
| 1635 | rng.Position = root.Position | |
| 1636 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1637 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1638 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1639 | local rng2 = rng:Clone() | |
| 1640 | rng2.Parent = char | |
| 1641 | local rng2m = rng2.Mesh | |
| 1642 | local rng3 = rng:Clone() | |
| 1643 | rng3.Parent = char | |
| 1644 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1645 | local rng3m = rng3.Mesh | |
| 1646 | local rng4 = rng:Clone() | |
| 1647 | rng4.Parent = char | |
| 1648 | local rng4m = rng4.Mesh | |
| 1649 | local rng5 = rng:Clone() | |
| 1650 | rng5.Parent = char | |
| 1651 | rng5.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1652 | local rng5m = rng5.Mesh | |
| 1653 | CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
| |
| 1654 | wait() | |
| 1655 | local scaler = 10 | |
| 1656 | local scaler2 = 10 | |
| 1657 | game:GetService("Debris"):AddItem(bv, 2.4)
| |
| 1658 | hum.WalkSpeed = 50 | |
| 1659 | MagicBlock(bc("White"),root.CFrame,15,15,15,10,10,10,0.015)
| |
| 1660 | for i = 0,10,0.1 do | |
| 1661 | swait() | |
| 1662 | rng.Transparency = rng.Transparency + 0.01 | |
| 1663 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 1664 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 1665 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 1666 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 1667 | scaler = scaler - 0.125 | |
| 1668 | scaler2 = scaler2 - 0.1 | |
| 1669 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20) | |
| 1670 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30) | |
| 1671 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40) | |
| 1672 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50) | |
| 1673 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 1674 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5) | |
| 1675 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5) | |
| 1676 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5) | |
| 1677 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5) | |
| 1678 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5) | |
| 1679 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5) | |
| 1680 | end | |
| 1681 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 1682 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 1683 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 1684 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 1685 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 1686 | hum.WalkSpeed = 16 | |
| 1687 | attack = false | |
| 1688 | jumped = false | |
| 1689 | end | |
| 1690 | ||
| 1691 | function dash() | |
| 1692 | attack = true | |
| 1693 | jumped = true | |
| 1694 | hum.WalkSpeed = 16 | |
| 1695 | killbrick = Instance.new("Part",char)
| |
| 1696 | killbrick.Size = Vector3.new(1,1,1) | |
| 1697 | killbrick.Transparency = 1 | |
| 1698 | killbrick:BreakJoints() | |
| 1699 | killbrick.CanCollide = false | |
| 1700 | local wel = Instance.new("Weld",killbrick)
| |
| 1701 | wel.Part0 = killbrick | |
| 1702 | wel.Part1 = char["Left Arm"] | |
| 1703 | wel.C0 = CFrame.new(0,1,0) | |
| 1704 | local bv = Instance.new("BodyVelocity")
| |
| 1705 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1706 | bv.velocity = root.CFrame.lookVector*150 | |
| 1707 | bv.Parent = root | |
| 1708 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 1709 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 1710 | local rng = Instance.new("Part", char)
| |
| 1711 | rng.Anchored = true | |
| 1712 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 1713 | rng.CanCollide = false | |
| 1714 | rng.FormFactor = 3 | |
| 1715 | rng.Name = "Ring" | |
| 1716 | rng.Size = Vector3.new(1, 1, 1) | |
| 1717 | rng.Transparency = 0 | |
| 1718 | rng.TopSurface = 0 | |
| 1719 | rng.BottomSurface = 0 | |
| 1720 | rng.CFrame = root.CFrame | |
| 1721 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1722 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1723 | local rng2 = rng:Clone() | |
| 1724 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1725 | rng2.Parent = char | |
| 1726 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 1727 | local rng2m = rng2.Mesh | |
| 1728 | local rng3 = rng:Clone() | |
| 1729 | rng3.Parent = char | |
| 1730 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1731 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
| 1732 | local rng3m = rng3.Mesh | |
| 1733 | local rng4 = rng:Clone() | |
| 1734 | rng4.Parent = char | |
| 1735 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
| 1736 | local rng4m = rng4.Mesh | |
| 1737 | local rng5 = rng:Clone() | |
| 1738 | rng5.Parent = char | |
| 1739 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
| 1740 | local rng5m = rng5.Mesh | |
| 1741 | local rng6 = rng:Clone() | |
| 1742 | rng6.Material = "Neon" | |
| 1743 | rng6.CanCollide = false | |
| 1744 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 1745 | rng6.Parent = LeftLeg | |
| 1746 | local rng6m = rng6.Mesh | |
| 1747 | rng6m.Scale = vt(1,1,1) | |
| 1748 | rng6m.MeshType = "Sphere" | |
| 1749 | local rng7 = rng:Clone() | |
| 1750 | rng7.Material = "Plastic" | |
| 1751 | rng7.CanCollide = false | |
| 1752 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 1753 | rng7.Parent = LeftLeg | |
| 1754 | local rng7m = rng7.Mesh | |
| 1755 | rng7m.Scale = vt(1,1,1) | |
| 1756 | rng7m.MeshType = "Sphere" | |
| 1757 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 1758 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
| |
| 1759 | wait() | |
| 1760 | local scaler = 10/5 | |
| 1761 | local scaler2 = 10/5 | |
| 1762 | local hit = rng6.Touched:connect(function(hit) | |
| 1763 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
| 1764 | end) | |
| 1765 | for i = 0,10,0.1 do | |
| 1766 | swait() | |
| 1767 | rng.Transparency = rng.Transparency + 0.01 | |
| 1768 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 1769 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 1770 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 1771 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 1772 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 1773 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 1774 | scaler = scaler - 0.125/5 | |
| 1775 | scaler2 = scaler2 - 0.1/5 | |
| 1776 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 1777 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
| 1778 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
| 1779 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 1780 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
| 1781 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 1782 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 1783 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 1784 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 1785 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 1786 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 1787 | rng6.CFrame = rng3.CFrame | |
| 1788 | rng7.CFrame = rng3.CFrame | |
| 1789 | end | |
| 1790 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 1791 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 1792 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 1793 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 1794 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 1795 | hum.WalkSpeed = 16 | |
| 1796 | hit:disconnect() | |
| 1797 | attack = false | |
| 1798 | killbrick:Destroy() | |
| 1799 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 1800 | jumped = false | |
| 1801 | end | |
| 1802 | ||
| 1803 | ||
| 1804 | ||
| 1805 | function daash() | |
| 1806 | attack = false | |
| 1807 | jumped = false | |
| 1808 | hum.WalkSpeed = 16 | |
| 1809 | local bv = Instance.new("BodyVelocity")
| |
| 1810 | bv.maxForce = Vector3.new(6000,6000,6000) | |
| 1811 | bv.velocity = root.CFrame.lookVector*150 | |
| 1812 | bv.Parent = root | |
| 1813 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 1814 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 1815 | local rng = Instance.new("Part", char)
| |
| 1816 | rng.Anchored = true | |
| 1817 | rng.BrickColor = BrickColor.new("White")
| |
| 1818 | rng.CanCollide = false | |
| 1819 | rng.FormFactor = 3 | |
| 1820 | rng.Name = "Ring" | |
| 1821 | rng.Size = Vector3.new(1, 1, 1) | |
| 1822 | rng.Transparency = 0 | |
| 1823 | rng.TopSurface = 0 | |
| 1824 | rng.BottomSurface = 0 | |
| 1825 | rng.CFrame = root.CFrame | |
| 1826 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1827 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1828 | local rng2 = rng:Clone() | |
| 1829 | rng2.BrickColor = BrickColor.new("White")
| |
| 1830 | rng2.Parent = char | |
| 1831 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 1832 | local rng2m = rng2.Mesh | |
| 1833 | ||
| 1834 | local rng5m = rng.Mesh | |
| 1835 | CFuncs["Sound"].Create("rbxassetid://262562442", root, 1, 1)
| |
| 1836 | wait() | |
| 1837 | local scaler = 10/5 | |
| 1838 | local scaler2 = 10/5 | |
| 1839 | local hit = rng.Touched:connect(function(hit) | |
| 1840 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
| 1841 | end) | |
| 1842 | for i = 0,10,0.1 do | |
| 1843 | swait() | |
| 1844 | MagicBlockDash(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1845 | MagicBlockDash(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1846 | rng.Transparency = rng.Transparency + 0.01 | |
| 1847 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 1848 | ||
| 1849 | ||
| 1850 | scaler = scaler - 0.125/5 | |
| 1851 | scaler2 = scaler2 - 0.125/5 | |
| 1852 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1, scaler2/1, 0) | |
| 1853 | ||
| 1854 | ||
| 1855 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 1856 | ||
| 1857 | end | |
| 1858 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 1859 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 1860 | hum.WalkSpeed = 16 | |
| 1861 | hit:disconnect() | |
| 1862 | attack = false | |
| 1863 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 1864 | jumped = false | |
| 1865 | end | |
| 1866 | ||
| 1867 | ||
| 1868 | ||
| 1869 | function dashh() | |
| 1870 | attack = true | |
| 1871 | jumped = true | |
| 1872 | hum.WalkSpeed = 16 | |
| 1873 | local BV = Instance.new("BodyVelocity")
| |
| 1874 | BV = Instance.new("BodyVelocity", tors)
| |
| 1875 | BV.maxForce = Vector3.new(0,10000,0) | |
| 1876 | BV.P = 1000 | |
| 1877 | BV.velocity = Vector3.new(0,800,0) | |
| 1878 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 1879 | game:GetService("Debris"):AddItem(BV, 1)
| |
| 1880 | local rng = Instance.new("Part", char)
| |
| 1881 | rng.Anchored = true | |
| 1882 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 1883 | rng.CanCollide = false | |
| 1884 | rng.FormFactor = 3 | |
| 1885 | rng.Name = "Ring" | |
| 1886 | rng.Size = Vector3.new(1, 1, 1) | |
| 1887 | rng.Transparency = 0 | |
| 1888 | rng.TopSurface = 0 | |
| 1889 | rng.BottomSurface = 0 | |
| 1890 | rng.CFrame = root.CFrame | |
| 1891 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1892 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1893 | local rng2 = rng:Clone() | |
| 1894 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1895 | rng2.Parent = char | |
| 1896 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 1897 | local rng2m = rng2.Mesh | |
| 1898 | local rng3 = rng:Clone() | |
| 1899 | rng3.Parent = char | |
| 1900 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1901 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
| 1902 | local rng3m = rng3.Mesh | |
| 1903 | local rng4 = rng:Clone() | |
| 1904 | rng4.Parent = char | |
| 1905 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
| 1906 | local rng4m = rng4.Mesh | |
| 1907 | local rng5 = rng:Clone() | |
| 1908 | rng5.Parent = char | |
| 1909 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
| 1910 | local rng5m = rng5.Mesh | |
| 1911 | local rng6 = rng:Clone() | |
| 1912 | rng6.Material = "Neon" | |
| 1913 | rng6.CanCollide = false | |
| 1914 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 1915 | rng6.Parent = LeftLeg | |
| 1916 | local rng6m = rng6.Mesh | |
| 1917 | rng6m.Scale = vt(1,1,1) | |
| 1918 | rng6m.MeshType = "Sphere" | |
| 1919 | local rng7 = rng:Clone() | |
| 1920 | rng7.Material = "Plastic" | |
| 1921 | rng7.CanCollide = false | |
| 1922 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 1923 | rng7.Parent = LeftLeg | |
| 1924 | local rng7m = rng7.Mesh | |
| 1925 | rng7m.Scale = vt(1,1,1) | |
| 1926 | rng7m.MeshType = "Sphere" | |
| 1927 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 1928 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
| |
| 1929 | wait() | |
| 1930 | local scaler = 10/5 | |
| 1931 | local scaler2 = 10/5 | |
| 1932 | local hit = rng6.Touched:connect(function(hit) | |
| 1933 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
| 1934 | end) | |
| 1935 | for i = 0,10,0.1 do | |
| 1936 | swait() | |
| 1937 | MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1938 | MagicBlock(bc("Dark stone grey"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 1939 | rng.Transparency = rng.Transparency + 0.01 | |
| 1940 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 1941 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 1942 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 1943 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 1944 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 1945 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 1946 | scaler = scaler - 0.125/5 | |
| 1947 | scaler2 = scaler2 - 0.1/5 | |
| 1948 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 1949 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
| 1950 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
| 1951 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 1952 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
| 1953 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 1954 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 1955 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 1956 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 1957 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 1958 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 1959 | rng6.CFrame = rng3.CFrame | |
| 1960 | rng7.CFrame = rng3.CFrame | |
| 1961 | end | |
| 1962 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 1963 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 1964 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 1965 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 1966 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 1967 | hum.WalkSpeed = 16 | |
| 1968 | hit:disconnect() | |
| 1969 | attack = false | |
| 1970 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 1971 | jumped = false | |
| 1972 | end | |
| 1973 | ||
| 1974 | ||
| 1975 | function dashs() | |
| 1976 | attack = true | |
| 1977 | jumped = true | |
| 1978 | hum.WalkSpeed = 16 | |
| 1979 | local bv = Instance.new("BodyVelocity")
| |
| 1980 | bv.maxForce = Vector3.new(0, 0, 0) | |
| 1981 | bv.velocity = root.CFrame.lookVector*150 | |
| 1982 | bv.Parent = root | |
| 1983 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 1984 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 1985 | local rng = Instance.new("Part", char)
| |
| 1986 | rng.Anchored = true | |
| 1987 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 1988 | rng.CanCollide = false | |
| 1989 | rng.FormFactor = 3 | |
| 1990 | rng.Name = "Ring" | |
| 1991 | rng.Size = Vector3.new(1, 1, 1) | |
| 1992 | rng.Transparency = 0 | |
| 1993 | rng.TopSurface = 0 | |
| 1994 | rng.BottomSurface = 0 | |
| 1995 | rng.CFrame = root.CFrame | |
| 1996 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1997 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1998 | local rng2 = rng:Clone() | |
| 1999 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2000 | rng2.Parent = char | |
| 2001 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 2002 | local rng2m = rng2.Mesh | |
| 2003 | local rng3 = rng:Clone() | |
| 2004 | rng3.Parent = char | |
| 2005 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2006 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
| 2007 | local rng3m = rng3.Mesh | |
| 2008 | local rng4 = rng:Clone() | |
| 2009 | rng4.Parent = char | |
| 2010 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
| 2011 | local rng4m = rng4.Mesh | |
| 2012 | local rng5 = rng:Clone() | |
| 2013 | rng5.Parent = char | |
| 2014 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
| 2015 | local rng5m = rng5.Mesh | |
| 2016 | local rng6 = rng:Clone() | |
| 2017 | rng6.Material = "Neon" | |
| 2018 | rng6.CanCollide = false | |
| 2019 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2020 | rng6.Parent = LeftLeg | |
| 2021 | local rng6m = rng6.Mesh | |
| 2022 | rng6m.Scale = vt(1,1,1) | |
| 2023 | rng6m.MeshType = "Sphere" | |
| 2024 | local rng7 = rng:Clone() | |
| 2025 | rng7.Material = "Plastic" | |
| 2026 | rng7.CanCollide = false | |
| 2027 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2028 | rng7.Parent = LeftLeg | |
| 2029 | local rng7m = rng7.Mesh | |
| 2030 | rng7m.Scale = vt(1,1,1) | |
| 2031 | rng7m.MeshType = "Sphere" | |
| 2032 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 2033 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
| |
| 2034 | wait() | |
| 2035 | local scaler = 10/5 | |
| 2036 | local scaler2 = 10/5 | |
| 2037 | local hit = rng6.Touched:connect(function(hit) | |
| 2038 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
| 2039 | end) | |
| 2040 | for i = 0,10,0.1 do | |
| 2041 | swait() | |
| 2042 | rng.Transparency = rng.Transparency + 0.01 | |
| 2043 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2044 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2045 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2046 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2047 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2048 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2049 | scaler = scaler - 0.125/5 | |
| 2050 | scaler2 = scaler2 - 0.1/5 | |
| 2051 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 2052 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 2053 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 2054 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
| 2055 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/0.5) | |
| 2056 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/0.3) | |
| 2057 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2058 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
| 2059 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
| 2060 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
| 2061 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
| 2062 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
| 2063 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
| 2064 | rng6.CFrame = rng3.CFrame | |
| 2065 | rng7.CFrame = rng3.CFrame | |
| 2066 | end | |
| 2067 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2068 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2069 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2070 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2071 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2072 | hum.WalkSpeed = 16 | |
| 2073 | hit:disconnect() | |
| 2074 | attack = false | |
| 2075 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2076 | jumped = false | |
| 2077 | end | |
| 2078 | ||
| 2079 | ||
| 2080 | ||
| 2081 | ||
| 2082 | ||
| 2083 | function punch() | |
| 2084 | attack = true | |
| 2085 | jumped = true | |
| 2086 | hum.WalkSpeed = 30 | |
| 2087 | killbrick = Instance.new("Part",rarm)
| |
| 2088 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
| 2089 | killbrick.Transparency = 1 | |
| 2090 | killbrick:BreakJoints() | |
| 2091 | killbrick.CanCollide = false | |
| 2092 | killbrick.Anchored = true | |
| 2093 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
| 2094 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 2095 | lig.Color=Color3.new(255,0,0) | |
| 2096 | lig.Range = 20 | |
| 2097 | local bv = Instance.new("BodyVelocity")
| |
| 2098 | bv.maxForce = Vector3.new(1,1,1) | |
| 2099 | bv.velocity = root.CFrame.lookVector*150 | |
| 2100 | bv.Parent = root | |
| 2101 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2102 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 2103 | local rng = Instance.new("Part", char)
| |
| 2104 | rng.Anchored = true | |
| 2105 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2106 | rng.CanCollide = false | |
| 2107 | rng.FormFactor = 3 | |
| 2108 | rng.Name = "Ring" | |
| 2109 | rng.Size = Vector3.new(1, 1, 1) | |
| 2110 | rng.Transparency = 0 | |
| 2111 | rng.TopSurface = 0 | |
| 2112 | rng.BottomSurface = 0 | |
| 2113 | rng.CFrame = root.CFrame | |
| 2114 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2115 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2116 | local rng2 = rng:Clone() | |
| 2117 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2118 | rng2.Parent = char | |
| 2119 | rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 2120 | local rng2m = rng2.Mesh | |
| 2121 | local rng3 = rng:Clone() | |
| 2122 | rng3.Parent = char | |
| 2123 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2124 | rng3.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 2125 | local rng3m = Instance.new("SpecialMesh", rng3)
| |
| 2126 | rng3m.MeshId = "http://www.roblox.com/asset/?id=665769722" | |
| 2127 | local rng4 = rng:Clone() | |
| 2128 | rng4.Parent = char | |
| 2129 | rng4.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2130 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*12 | |
| 2131 | local rng4m = rng4.Mesh | |
| 2132 | local rng5 = rng:Clone() | |
| 2133 | rng5.Parent = char | |
| 2134 | rng5.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2135 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
| 2136 | local rng5m = rng5.Mesh | |
| 2137 | local rng6 = rng:Clone() | |
| 2138 | rng6.Material = "Neon" | |
| 2139 | rng6.CanCollide = false | |
| 2140 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2141 | rng6.Parent = LeftLeg | |
| 2142 | local rng6m = rng6.Mesh | |
| 2143 | rng6m.Scale = vt(1,1,1) | |
| 2144 | rng6m.MeshType = "Sphere" | |
| 2145 | local rng7 = rng:Clone() | |
| 2146 | rng7.Material = "Plastic" | |
| 2147 | rng7.CanCollide = false | |
| 2148 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2149 | rng7.Parent = LeftLeg | |
| 2150 | local rng7m = rng7.Mesh | |
| 2151 | rng7m.Scale = vt(1,1,1) | |
| 2152 | rng7m.MeshType = "Sphere" | |
| 2153 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
| |
| 2154 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
| |
| 2155 | wait() | |
| 2156 | local scaler = 10/5 | |
| 2157 | local scaler2 = 10/5 | |
| 2158 | local hit = rng6.Touched:connect(function(hit) | |
| 2159 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
| 2160 | CRIT=true | |
| 2161 | end) | |
| 2162 | for i = 0,10,0.1 do | |
| 2163 | swait() | |
| 2164 | rng.Transparency = rng.Transparency + 0.01 | |
| 2165 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2166 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2167 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2168 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2169 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2170 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2171 | scaler = scaler - 0.125/5 | |
| 2172 | scaler2 = scaler2 - 0.1/5 | |
| 2173 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
| 2174 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/7.5, scaler2/7.5, 0) | |
| 2175 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
| 2176 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 2177 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.2, scaler2/1.2, scaler2/1.2) | |
| 2178 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 2179 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2180 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 2181 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2182 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 2183 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 2184 | rng6.CFrame = killbrick.CFrame | |
| 2185 | rng7.CFrame = killbrick.CFrame | |
| 2186 | end | |
| 2187 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2188 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2189 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2190 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2191 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2192 | hum.WalkSpeed = 16 | |
| 2193 | hit:disconnect() | |
| 2194 | attack = false | |
| 2195 | killbrick:Destroy() | |
| 2196 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2197 | jumped = false | |
| 2198 | lig:Remove() | |
| 2199 | end | |
| 2200 | ||
| 2201 | ||
| 2202 | ||
| 2203 | ||
| 2204 | function punchd() | |
| 2205 | attack = true | |
| 2206 | jumped = true | |
| 2207 | hum.WalkSpeed = 30 | |
| 2208 | killbrick = Instance.new("Part",rarm)
| |
| 2209 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
| 2210 | killbrick.Transparency = 1 | |
| 2211 | killbrick:BreakJoints() | |
| 2212 | killbrick.CanCollide = false | |
| 2213 | killbrick.Anchored = true | |
| 2214 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
| 2215 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 2216 | lig.Color=Color3.new(255,0,0) | |
| 2217 | lig.Range = 20 | |
| 2218 | local bv = Instance.new("BodyVelocity")
| |
| 2219 | bv.maxForce = Vector3.new(1,1,1) | |
| 2220 | bv.velocity = root.CFrame.lookVector*150 | |
| 2221 | bv.Parent = root | |
| 2222 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2223 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 2224 | local rng = Instance.new("Part", char)
| |
| 2225 | rng.Anchored = true | |
| 2226 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2227 | rng.CanCollide = false | |
| 2228 | rng.FormFactor = 3 | |
| 2229 | rng.Name = "Ring" | |
| 2230 | rng.Size = Vector3.new(1, 1, 1) | |
| 2231 | rng.Transparency = 0 | |
| 2232 | rng.TopSurface = 0 | |
| 2233 | rng.BottomSurface = 0 | |
| 2234 | rng.CFrame = root.CFrame | |
| 2235 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2236 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2237 | local rng2 = rng:Clone() | |
| 2238 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2239 | rng2.Parent = char | |
| 2240 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 2241 | local rng2m = rng2.Mesh | |
| 2242 | local rng3 = rng:Clone() | |
| 2243 | rng3.Parent = char | |
| 2244 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2245 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
| 2246 | local rng3m = rng3.Mesh | |
| 2247 | local rng4 = rng:Clone() | |
| 2248 | rng4.Parent = char | |
| 2249 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
| 2250 | local rng4m = rng4.Mesh | |
| 2251 | local rng5 = rng:Clone() | |
| 2252 | rng5.Parent = char | |
| 2253 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
| 2254 | local rng5m = rng5.Mesh | |
| 2255 | local rng6 = rng:Clone() | |
| 2256 | rng6.Material = "Neon" | |
| 2257 | rng6.CanCollide = false | |
| 2258 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2259 | rng6.Parent = LeftLeg | |
| 2260 | local rng6m = rng6.Mesh | |
| 2261 | rng6m.Scale = vt(1,1,1) | |
| 2262 | rng6m.MeshType = "Sphere" | |
| 2263 | local rng7 = rng:Clone() | |
| 2264 | rng7.Material = "Plastic" | |
| 2265 | rng7.CanCollide = false | |
| 2266 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2267 | rng7.Parent = LeftLeg | |
| 2268 | local rng7m = rng7.Mesh | |
| 2269 | rng7m.Scale = vt(1,1,1) | |
| 2270 | rng7m.MeshType = "Sphere" | |
| 2271 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
| |
| 2272 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
| |
| 2273 | wait() | |
| 2274 | local scaler = 10/5 | |
| 2275 | local scaler2 = 10/5 | |
| 2276 | local hit = rng6.Touched:connect(function(hit) | |
| 2277 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
| 2278 | CRIT=true | |
| 2279 | end) | |
| 2280 | for i = 0,10,0.1 do | |
| 2281 | swait() | |
| 2282 | rng.Transparency = rng.Transparency + 0.01 | |
| 2283 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2284 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2285 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2286 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2287 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2288 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2289 | scaler = scaler - 0.125/5 | |
| 2290 | scaler2 = scaler2 - 0.1/5 | |
| 2291 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0) | |
| 2292 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
| 2293 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
| 2294 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 2295 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
| 2296 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 2297 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2298 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 2299 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2300 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 2301 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 2302 | rng6.CFrame = killbrick.CFrame | |
| 2303 | rng7.CFrame = killbrick.CFrame | |
| 2304 | end | |
| 2305 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2306 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2307 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2308 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2309 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2310 | hum.WalkSpeed = 16 | |
| 2311 | hit:disconnect() | |
| 2312 | attack = false | |
| 2313 | killbrick:Destroy() | |
| 2314 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2315 | jumped = false | |
| 2316 | lig:Remove() | |
| 2317 | end | |
| 2318 | ||
| 2319 | ||
| 2320 | ||
| 2321 | ||
| 2322 | function punch2() | |
| 2323 | attack = true | |
| 2324 | jumped = true | |
| 2325 | hum.WalkSpeed = 16 | |
| 2326 | killbrick = Instance.new("Part",rarm)
| |
| 2327 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
| 2328 | killbrick.Transparency = 1 | |
| 2329 | killbrick:BreakJoints() | |
| 2330 | killbrick.CanCollide = false | |
| 2331 | killbrick.Anchored = true | |
| 2332 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
| 2333 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 2334 | lig.Color=Color3.new(255,0,0) | |
| 2335 | lig.Range = 20 | |
| 2336 | local bv = Instance.new("BodyVelocity")
| |
| 2337 | bv.maxForce = Vector3.new(1,1,1) | |
| 2338 | bv.velocity = root.CFrame.lookVector*150 | |
| 2339 | bv.Parent = root | |
| 2340 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2341 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 2342 | local rng = Instance.new("Part", char)
| |
| 2343 | rng.Anchored = true | |
| 2344 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2345 | rng.CanCollide = false | |
| 2346 | rng.FormFactor = 3 | |
| 2347 | rng.Name = "Ring" | |
| 2348 | rng.Size = Vector3.new(1, 1, 1) | |
| 2349 | rng.Transparency = 0 | |
| 2350 | rng.TopSurface = 0 | |
| 2351 | rng.BottomSurface = 0 | |
| 2352 | rng.CFrame = root.CFrame | |
| 2353 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2354 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2355 | local rng2 = rng:Clone() | |
| 2356 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2357 | rng2.Parent = char | |
| 2358 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 2359 | local rng2m = rng2.Mesh | |
| 2360 | local rng3 = rng:Clone() | |
| 2361 | rng3.Parent = char | |
| 2362 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2363 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
| 2364 | local rng3m = rng3.Mesh | |
| 2365 | local rng4 = rng:Clone() | |
| 2366 | rng4.Parent = char | |
| 2367 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
| 2368 | local rng4m = rng4.Mesh | |
| 2369 | local rng5 = rng:Clone() | |
| 2370 | rng5.Parent = char | |
| 2371 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
| 2372 | local rng5m = rng5.Mesh | |
| 2373 | local rng6 = rng:Clone() | |
| 2374 | rng6.Material = "Neon" | |
| 2375 | rng6.CanCollide = false | |
| 2376 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2377 | rng6.Parent = LeftLeg | |
| 2378 | local rng6m = rng6.Mesh | |
| 2379 | rng6m.Scale = vt(1,1,1) | |
| 2380 | rng6m.MeshType = "Sphere" | |
| 2381 | local rng7 = rng:Clone() | |
| 2382 | rng7.Material = "Plastic" | |
| 2383 | rng7.CanCollide = false | |
| 2384 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2385 | rng7.Parent = LeftLeg | |
| 2386 | local rng7m = rng7.Mesh | |
| 2387 | rng7m.Scale = vt(1,1,1) | |
| 2388 | rng7m.MeshType = "Sphere" | |
| 2389 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
| |
| 2390 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
| |
| 2391 | wait() | |
| 2392 | local scaler = 10/5 | |
| 2393 | local scaler2 = 10/5 | |
| 2394 | local hit = rng6.Touched:connect(function(hit) | |
| 2395 | Damagefunc(hit,67,75,math.random(60,70),"Normal",root,.2,1) | |
| 2396 | end) | |
| 2397 | for i = 0,10,0.1 do | |
| 2398 | swait() | |
| 2399 | rng.Transparency = rng.Transparency + 0.01 | |
| 2400 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2401 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2402 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2403 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2404 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2405 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2406 | scaler = scaler - 0.125/5 | |
| 2407 | scaler2 = scaler2 - 0.1/5 | |
| 2408 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0) | |
| 2409 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0) | |
| 2410 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0) | |
| 2411 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 2412 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
| 2413 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 2414 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2415 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 2416 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
| 2417 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
| 2418 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2419 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
| 2420 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
| 2421 | rng6.CFrame = killbrick.CFrame | |
| 2422 | rng7.CFrame = killbrick.CFrame | |
| 2423 | ||
| 2424 | end | |
| 2425 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2426 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2427 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2428 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2429 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2430 | hum.WalkSpeed = 16 | |
| 2431 | hit:disconnect() | |
| 2432 | attack = false | |
| 2433 | killbrick:Destroy() | |
| 2434 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2435 | jumped = false | |
| 2436 | lig:Remove() | |
| 2437 | end | |
| 2438 | ||
| 2439 | ||
| 2440 | function Crater(hed,Radius) | |
| 2441 | spawn(function() | |
| 2442 | local Ray = Ray.new(hed.Position,Vector3.new(0,-1,0)*10) | |
| 2443 | local Ignore = {}
| |
| 2444 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 2445 | if v.Character ~= nil then | |
| 2446 | Ignore[#Ignore+1] = v.Character | |
| 2447 | end | |
| 2448 | end | |
| 2449 | local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 2450 | if Hit == nil then return end | |
| 2451 | local Parts = {}
| |
| 2452 | for i = 1,360,10 do | |
| 2453 | local P = Instance.new("Part",hed.Parent)
| |
| 2454 | P.Anchored = true | |
| 2455 | P.FormFactor = "Custom" | |
| 2456 | P.BrickColor = Hit.BrickColor | |
| 2457 | P.Material = Hit.Material | |
| 2458 | P.TopSurface = "Smooth" | |
| 2459 | P.BottomSurface = "Smooth" | |
| 2460 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
| 2461 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 2462 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
| |
| 2463 | if math.random(0,5) == 0 then -- rubble | |
| 2464 | local P = Instance.new("Part",hed.Parent)
| |
| 2465 | P.Anchored = true | |
| 2466 | P.FormFactor = "Custom" | |
| 2467 | P.BrickColor = Hit.BrickColor | |
| 2468 | P.Material = Hit.Material | |
| 2469 | P.TopSurface = "Smooth" | |
| 2470 | P.BottomSurface = "Smooth" | |
| 2471 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
| 2472 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 2473 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
| |
| 2474 | end | |
| 2475 | end | |
| 2476 | for i = 0,1,0.05 do | |
| 2477 | for i2,v in pairs(Parts) do | |
| 2478 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 2479 | end | |
| 2480 | wait(0) | |
| 2481 | end | |
| 2482 | for i,v in pairs(Parts) do | |
| 2483 | if v[1].Size.X > 2.1 then | |
| 2484 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 2485 | end | |
| 2486 | v[1].Anchored = false | |
| 2487 | end | |
| 2488 | for i = 0,1,0.05 do | |
| 2489 | for i2,v in pairs(Parts) do | |
| 2490 | v[1].Transparency = i | |
| 2491 | if i == 1 then | |
| 2492 | v[1]:Destroy() | |
| 2493 | elseif i >= 0.25 then | |
| 2494 | v[1].CanCollide = false | |
| 2495 | end | |
| 2496 | end | |
| 2497 | wait(0.02) | |
| 2498 | end | |
| 2499 | Parts = nil | |
| 2500 | end) | |
| 2501 | end | |
| 2502 | ||
| 2503 | ||
| 2504 | function shock() | |
| 2505 | attack = true | |
| 2506 | jumped = true | |
| 2507 | hum.WalkSpeed = 16 | |
| 2508 | killbrick = Instance.new("Part",rarm)
| |
| 2509 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
| 2510 | killbrick.Transparency = 1 | |
| 2511 | killbrick:BreakJoints() | |
| 2512 | killbrick.CanCollide = false | |
| 2513 | killbrick.Anchored = true | |
| 2514 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
| 2515 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 2516 | lig.Color=Color3.new(255,0,0) | |
| 2517 | lig.Range = 20 | |
| 2518 | local bv = Instance.new("BodyVelocity")
| |
| 2519 | bv.maxForce = Vector3.new(1,1,1) | |
| 2520 | bv.velocity = root.CFrame.lookVector*150 | |
| 2521 | bv.Parent = root | |
| 2522 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2523 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 2524 | local rng = Instance.new("Part", char)
| |
| 2525 | rng.Anchored = true | |
| 2526 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2527 | rng.CanCollide = false | |
| 2528 | rng.FormFactor = 3 | |
| 2529 | rng.Name = "Ring" | |
| 2530 | rng.Size = Vector3.new(1, 1, 1) | |
| 2531 | rng.Transparency = 0 | |
| 2532 | rng.TopSurface = 0 | |
| 2533 | rng.BottomSurface = 0 | |
| 2534 | rng.CFrame = root.CFrame | |
| 2535 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2536 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2537 | local rng2 = rng:Clone() | |
| 2538 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2539 | rng2.Parent = char | |
| 2540 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 2541 | local rng2m = rng2.Mesh | |
| 2542 | local rng3 = rng:Clone() | |
| 2543 | rng3.Parent = char | |
| 2544 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2545 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
| 2546 | local rng3m = rng3.Mesh | |
| 2547 | local rng4 = rng:Clone() | |
| 2548 | rng4.Parent = char | |
| 2549 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
| 2550 | local rng4m = rng4.Mesh | |
| 2551 | local rng5 = rng:Clone() | |
| 2552 | rng5.Parent = char | |
| 2553 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
| 2554 | local rng5m = rng5.Mesh | |
| 2555 | local rng6 = rng:Clone() | |
| 2556 | rng6.Material = "Neon" | |
| 2557 | rng6.CanCollide = false | |
| 2558 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2559 | rng6.Parent = LeftLeg | |
| 2560 | local rng6m = rng6.Mesh | |
| 2561 | rng6m.Scale = vt(1,1,1) | |
| 2562 | rng6m.MeshType = "Sphere" | |
| 2563 | local rng7 = rng:Clone() | |
| 2564 | rng7.Material = "Plastic" | |
| 2565 | rng7.CanCollide = false | |
| 2566 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2567 | rng7.Parent = LeftLeg | |
| 2568 | local rng7m = rng7.Mesh | |
| 2569 | rng7m.Scale = vt(1,1,1) | |
| 2570 | rng7m.MeshType = "Sphere" | |
| 2571 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 2572 | wait() | |
| 2573 | local scaler = 10/5 | |
| 2574 | local scaler2 = 10/5 | |
| 2575 | local hit = rng6.Touched:connect(function(hit) | |
| 2576 | Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1) | |
| 2577 | end) | |
| 2578 | for i = 0,10,0.1 do | |
| 2579 | swait() | |
| 2580 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 2581 | rng.Transparency = rng.Transparency + 0.01 | |
| 2582 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2583 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2584 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2585 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2586 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2587 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2588 | scaler = scaler - 0.125/5 | |
| 2589 | scaler2 = scaler2 - 0.1/5 | |
| 2590 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/0.25, scaler2/0.45, 0) | |
| 2591 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/0.5, scaler2/0.7, 0) | |
| 2592 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/0.75, scaler2/0.95, 0) | |
| 2593 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/0.9, scaler2/0.9, 0) | |
| 2594 | rng6.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6) | |
| 2595 | rng7.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6) | |
| 2596 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2597 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 2598 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
| 2599 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
| 2600 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2601 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
| 2602 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
| 2603 | rng6.CFrame = killbrick.CFrame | |
| 2604 | rng7.CFrame = killbrick.CFrame | |
| 2605 | end | |
| 2606 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2607 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2608 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2609 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2610 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2611 | hum.WalkSpeed = 16 | |
| 2612 | hit:disconnect() | |
| 2613 | attack = false | |
| 2614 | killbrick:Destroy() | |
| 2615 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2616 | jumped = false | |
| 2617 | lig:Remove() | |
| 2618 | end | |
| 2619 | ||
| 2620 | ||
| 2621 | function punch3() | |
| 2622 | attack = true | |
| 2623 | jumped = true | |
| 2624 | hum.WalkSpeed = 16 | |
| 2625 | killbrick = Instance.new("Part",rarm)
| |
| 2626 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
| 2627 | killbrick.Transparency = 1 | |
| 2628 | killbrick:BreakJoints() | |
| 2629 | killbrick.CanCollide = false | |
| 2630 | killbrick.Anchored = true | |
| 2631 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
| 2632 | ||
| 2633 | killbrick2 = Instance.new("Part",rarm)
| |
| 2634 | killbrick2.Size = Vector3.new(0.1,0.1,0.1) | |
| 2635 | killbrick2.Transparency = 1 | |
| 2636 | killbrick2:BreakJoints() | |
| 2637 | killbrick2.CanCollide = false | |
| 2638 | killbrick2.Anchored = true | |
| 2639 | killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-30) | |
| 2640 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 2641 | lig.Color=Color3.new(255,0,0) | |
| 2642 | lig.Range = 20 | |
| 2643 | local bv = Instance.new("BodyVelocity")
| |
| 2644 | bv.maxForce = Vector3.new(1,1,1) | |
| 2645 | bv.velocity = root.CFrame.lookVector*150 | |
| 2646 | bv.Parent = root | |
| 2647 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2648 | game:GetService("Debris"):AddItem(bv, 1)
| |
| 2649 | local rng = Instance.new("Part", char)
| |
| 2650 | rng.Anchored = true | |
| 2651 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2652 | rng.CanCollide = false | |
| 2653 | rng.FormFactor = 3 | |
| 2654 | rng.Name = "Ring" | |
| 2655 | rng.Size = Vector3.new(1, 1, 1) | |
| 2656 | rng.Transparency = 0 | |
| 2657 | rng.TopSurface = 0 | |
| 2658 | rng.BottomSurface = 0 | |
| 2659 | rng.CFrame = root.CFrame | |
| 2660 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2661 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2662 | local rng2 = rng:Clone() | |
| 2663 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2664 | rng2.Parent = char | |
| 2665 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
| 2666 | local rng2m = rng2.Mesh | |
| 2667 | local rng3 = rng:Clone() | |
| 2668 | rng3.Parent = char | |
| 2669 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2670 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
| 2671 | local rng3m = rng3.Mesh | |
| 2672 | local rng4 = rng:Clone() | |
| 2673 | rng4.Parent = char | |
| 2674 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
| 2675 | local rng4m = rng4.Mesh | |
| 2676 | local rng5 = rng:Clone() | |
| 2677 | rng5.Parent = char | |
| 2678 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
| 2679 | local rng5m = rng5.Mesh | |
| 2680 | local rng6 = rng:Clone() | |
| 2681 | rng6.Material = "Neon" | |
| 2682 | rng6.CanCollide = false | |
| 2683 | rng6.BrickColor = BrickColor.new("Neon orange")
| |
| 2684 | rng6.Parent = LeftLeg | |
| 2685 | local rng6m = rng6.Mesh | |
| 2686 | rng6m.Scale = vt(1,1,1) | |
| 2687 | rng6m.MeshType = "Sphere" | |
| 2688 | local rng7 = rng:Clone() | |
| 2689 | rng7.Material = "Plastic" | |
| 2690 | rng7.CanCollide = false | |
| 2691 | rng7.BrickColor = BrickColor.new("Bright red")
| |
| 2692 | rng7.Parent = LeftLeg | |
| 2693 | local rng7m = rng7.Mesh | |
| 2694 | rng7m.Scale = vt(1,1,1) | |
| 2695 | rng7m.MeshType = "Sphere" | |
| 2696 | local rng8 = rng6:Clone() | |
| 2697 | rng8.Material = "Neon" | |
| 2698 | rng8.CanCollide = false | |
| 2699 | rng8.BrickColor = BrickColor.new("Neon orange")
| |
| 2700 | rng8.Parent = LeftLeg | |
| 2701 | local rng8m = rng7.Mesh | |
| 2702 | rng8m.Scale = vt(1,1,1) | |
| 2703 | rng8m.MeshType = "Sphere" | |
| 2704 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 2705 | wait() | |
| 2706 | local scaler = 10/5 | |
| 2707 | local scaler2 = 10/5 | |
| 2708 | local hit = rng8.Touched:connect(function(hit) | |
| 2709 | Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1) | |
| 2710 | end) | |
| 2711 | for i = 0,10,0.1 do | |
| 2712 | swait() | |
| 2713 | rng.Transparency = rng.Transparency + 0.01 | |
| 2714 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2715 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2716 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2717 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2718 | rng6.Transparency = rng5.Transparency + 0.001 | |
| 2719 | rng7.Transparency = rng5.Transparency + 0.001 | |
| 2720 | rng8.Transparency = rng5.Transparency + 0.001 | |
| 2721 | scaler = scaler - 0.125/5 | |
| 2722 | scaler2 = scaler2 - 0.1/5 | |
| 2723 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0) | |
| 2724 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0) | |
| 2725 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0) | |
| 2726 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 2727 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
| 2728 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 2729 | rng8.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
| 2730 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2731 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
| 2732 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
| 2733 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
| 2734 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
| 2735 | rng6.CFrame = killbrick.CFrame | |
| 2736 | rng7.CFrame = killbrick.CFrame | |
| 2737 | rng8.CFrame = killbrick2.CFrame | |
| 2738 | end | |
| 2739 | game:GetService("Debris"):AddItem(rng, 0.1)
| |
| 2740 | game:GetService("Debris"):AddItem(rng2, 0.1)
| |
| 2741 | game:GetService("Debris"):AddItem(rng3, 0.1)
| |
| 2742 | game:GetService("Debris"):AddItem(rng4, 0.1)
| |
| 2743 | game:GetService("Debris"):AddItem(rng5, 0.1)
| |
| 2744 | hum.WalkSpeed = 16 | |
| 2745 | hit:disconnect() | |
| 2746 | attack = false | |
| 2747 | killbrick:Destroy() | |
| 2748 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2749 | jumped = false | |
| 2750 | lig:Remove() | |
| 2751 | end | |
| 2752 | ||
| 2753 | ||
| 2754 | ||
| 2755 | function boom() | |
| 2756 | attack = true | |
| 2757 | jumped = true | |
| 2758 | hum.WalkSpeed = 0 | |
| 2759 | MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
| |
| 2760 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
| |
| 2761 | CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
| |
| 2762 | for i = 0,15,0.1 do | |
| 2763 | swait() | |
| 2764 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 2765 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 2766 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
| 2767 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
| 2768 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2769 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
| 2770 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
| 2771 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2772 | end | |
| 2773 | local rng = Instance.new("Part", char)
| |
| 2774 | rng.Anchored = true | |
| 2775 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2776 | rng.CanCollide = false | |
| 2777 | rng.FormFactor = 3 | |
| 2778 | rng.Name = "Ring" | |
| 2779 | rng.Size = Vector3.new(1, 1, 1) | |
| 2780 | rng.Transparency = 0 | |
| 2781 | rng.TopSurface = 0 | |
| 2782 | rng.BottomSurface = 0 | |
| 2783 | rng.Position = root.Position | |
| 2784 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 2785 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2786 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2787 | local rng2 = rng:Clone() | |
| 2788 | rng2.Parent = char | |
| 2789 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2790 | local rng2m = rng2.Mesh | |
| 2791 | local rng3 = rng:Clone() | |
| 2792 | rng3.Parent = char | |
| 2793 | local rng3m = rng3.Mesh | |
| 2794 | local rng4 = rng:Clone() | |
| 2795 | rng4.Parent = char | |
| 2796 | local rng4m = rng4.Mesh | |
| 2797 | local rng5 = rng:Clone() | |
| 2798 | rng5.Parent = char | |
| 2799 | rng5.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2800 | local rng5m = rng5.Mesh | |
| 2801 | local hit = rng5.Touched:connect(function(hit) | |
| 2802 | Damagefunc(hit,120,175,math.random(100,100),"Normal",root,.2,1) | |
| 2803 | end) | |
| 2804 | MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
| |
| 2805 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
| |
| 2806 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.85)
| |
| 2807 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 10, 1)
| |
| 2808 | wait() | |
| 2809 | local scaler = 10 | |
| 2810 | local scaler2 = 10 | |
| 2811 | for i = 0,10,0.1 do | |
| 2812 | swait() | |
| 2813 | rng.Transparency = rng.Transparency + 0.01 | |
| 2814 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 2815 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 2816 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 2817 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 2818 | scaler = scaler - 0.125 | |
| 2819 | scaler2 = scaler2 - 0.1 | |
| 2820 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4) | |
| 2821 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3) | |
| 2822 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2) | |
| 2823 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1) | |
| 2824 | rng5.Size = rng5m.Scale | |
| 2825 | rng5.CFrame = rng.CFrame | |
| 2826 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5) | |
| 2827 | text.Text = " DIE! " | |
| 2828 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 2829 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
| 2830 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
| 2831 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2832 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
| 2833 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
| 2834 | end | |
| 2835 | hit:disconnect() | |
| 2836 | game:GetService("Debris"):AddItem(rng, 1)
| |
| 2837 | game:GetService("Debris"):AddItem(rng2, 1)
| |
| 2838 | game:GetService("Debris"):AddItem(rng3, 1)
| |
| 2839 | game:GetService("Debris"):AddItem(rng4, 1)
| |
| 2840 | game:GetService("Debris"):AddItem(rng5, 1)
| |
| 2841 | hum.WalkSpeed = 16 | |
| 2842 | attack = false | |
| 2843 | text.Text = " " | |
| 2844 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 2845 | jumped = false | |
| 2846 | end | |
| 2847 | ||
| 2848 | function shooty() | |
| 2849 | attack = true | |
| 2850 | MagicBlock(bc("Neon orange"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
| |
| 2851 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
| |
| 2852 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7)
| |
| 2853 | for i = 0,15,0.1 do | |
| 2854 | swait() | |
| 2855 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 2856 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
| 2857 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
| 2858 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
| 2859 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
| 2860 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 2861 | end | |
| 2862 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
| |
| 2863 | local a = Instance.new("Part",Character)
| |
| 2864 | a.Name = "Direction" | |
| 2865 | a.Anchored = true | |
| 2866 | a.BrickColor = bc("Neon orange")
| |
| 2867 | a.Material = "Neon" | |
| 2868 | a.Transparency = 1 | |
| 2869 | a.CanCollide = false | |
| 2870 | local ray = Ray.new( | |
| 2871 | root.CFrame.p, -- origin | |
| 2872 | (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction | |
| 2873 | ) | |
| 2874 | local ignore = Character | |
| 2875 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2876 | a.BottomSurface = 10 | |
| 2877 | a.TopSurface = 10 | |
| 2878 | local distance = (root.CFrame.p - position).magnitude | |
| 2879 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 2880 | a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 2881 | local lb = Instance.new("Part")
| |
| 2882 | lb.Parent = char | |
| 2883 | lb.BrickColor = bc("Neon orange")
| |
| 2884 | local pie22 = Instance.new("ParticleEmitter")
| |
| 2885 | pie22.Parent = char.Torso | |
| 2886 | pie22.Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color)
| |
| 2887 | pie22.LightEmission = 0 | |
| 2888 | pie22.Size = NumberSequence.new(10,5) | |
| 2889 | pie22.Texture = "http://www.roblox.com/asset/?id=254959503" | |
| 2890 | pie22.Transparency = NumberSequence.new(0, 1) | |
| 2891 | pie22.EmissionDirection = "Top" | |
| 2892 | pie22.Enabled = true | |
| 2893 | pie22.Lifetime = NumberRange.new(1) | |
| 2894 | pie22.Rotation = NumberRange.new(-17, 17) | |
| 2895 | pie22.Rate = 200 | |
| 2896 | pie22.Speed = NumberRange.new(3) | |
| 2897 | pie22.LockedToPart = false | |
| 2898 | pie22.VelocitySpread = 3 | |
| 2899 | pie22.Name = "Haa" | |
| 2900 | pie22.Parent = lb | |
| 2901 | lb.CanCollide = false | |
| 2902 | lb.Material = "Neon" | |
| 2903 | lb.Anchored = true | |
| 2904 | lb.TopSurface = 0 | |
| 2905 | lb.BottomSurface = 0 | |
| 2906 | lb.Transparency = 0 | |
| 2907 | lb.Size = vt(0.5,0.5,0.5) | |
| 2908 | lb.CFrame = sorb.CFrame | |
| 2909 | lb.Anchored = false | |
| 2910 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 2911 | thingery.MeshType = "Sphere" | |
| 2912 | thingery.Scale = vt(25,25,25) | |
| 2913 | game:GetService("Debris"):AddItem(lb, 10)
| |
| 2914 | local bv = Instance.new("BodyVelocity")
| |
| 2915 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2916 | bv.velocity = a.CFrame.lookVector*150 | |
| 2917 | bv.Parent = lb | |
| 2918 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 2919 | wait(0.05) | |
| 2920 | local hitted = false | |
| 2921 | lb.Touched:connect(function(hit) | |
| 2922 | if hitted == false then | |
| 2923 | hitted = true | |
| 2924 | lb.Anchored = true | |
| 2925 | lb.Transparency = 1 | |
| 2926 | local rng = Instance.new("Part", char)
| |
| 2927 | rng.Anchored = true | |
| 2928 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 2929 | rng.CanCollide = false | |
| 2930 | rng.FormFactor = 3 | |
| 2931 | rng.Name = "Ring" | |
| 2932 | rng.Size = Vector3.new(1, 1, 1) | |
| 2933 | rng.Transparency = 0 | |
| 2934 | rng.TopSurface = 0 | |
| 2935 | rng.BottomSurface = 0 | |
| 2936 | rng.CFrame = lb.CFrame | |
| 2937 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
| 2938 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2939 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2940 | local rng2 = rng:Clone() | |
| 2941 | rng2.Parent = char | |
| 2942 | local rng2m = rng2.Mesh | |
| 2943 | local rng3 = rng:Clone() | |
| 2944 | rng3.Parent = char | |
| 2945 | rng3.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2946 | local rng3m = rng3.Mesh | |
| 2947 | local rng4 = rng:Clone() | |
| 2948 | rng4.Parent = char | |
| 2949 | local rng4m = rng4.Mesh | |
| 2950 | local rng5 = rng:Clone() | |
| 2951 | rng5.Parent = char | |
| 2952 | rng5.BrickColor = BrickColor.new("Dark stone grey")
| |
| 2953 | rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
| 2954 | local rng5m = rng5.Mesh | |
| 2955 | rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
| 2956 | rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
| 2957 | rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
| 2958 | MagicBlock(bc("White"),lb.CFrame,15,15,15,5,5,5,0.015)
| |
| 2959 | local rng6 = rng:Clone() | |
| 2960 | rng6.Material = "Neon" | |
| 2961 | rng6.Parent = char | |
| 2962 | local rng6m = rng6.Mesh | |
| 2963 | rng6m.Scale = vt(1,1,1) | |
| 2964 | rng6m.MeshType = "Sphere" | |
| 2965 | local hita = rng6.Touched:connect(function(hit) | |
| 2966 | Damagefunc(hit,72,78,math.random(70,70),"Normal",root,.2,1) | |
| 2967 | end) | |
| 2968 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1)
| |
| 2969 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.75)
| |
| 2970 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
| |
| 2971 | local scaler = 5 | |
| 2972 | local scaler2 = 5 | |
| 2973 | for i = 0,20,0.1 do | |
| 2974 | swait() | |
| 2975 | rng.Transparency = rng.Transparency + 0.005 | |
| 2976 | rng2.Transparency = rng2.Transparency + 0.005 | |
| 2977 | rng3.Transparency = rng3.Transparency + 0.005 | |
| 2978 | rng4.Transparency = rng4.Transparency + 0.005 | |
| 2979 | rng5.Transparency = rng5.Transparency + 0.005 | |
| 2980 | rng6.Transparency = rng6.Transparency + 0.005 | |
| 2981 | scaler = scaler - 0.005/2 | |
| 2982 | scaler2 = scaler2 - 0.05/2 | |
| 2983 | rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3) | |
| 2984 | rng6.CFrame = rng.CFrame | |
| 2985 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
| 2986 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
| 2987 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
| 2988 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2989 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2990 | end | |
| 2991 | hita:disconnect() | |
| 2992 | game:GetService("Debris"):AddItem(rng, 1)
| |
| 2993 | game:GetService("Debris"):AddItem(rng2, 1)
| |
| 2994 | game:GetService("Debris"):AddItem(rng3, 1)
| |
| 2995 | game:GetService("Debris"):AddItem(rng4, 1)
| |
| 2996 | game:GetService("Debris"):AddItem(rng5, 1)
| |
| 2997 | game:GetService("Debris"):AddItem(rng6, 1)
| |
| 2998 | end | |
| 2999 | end) | |
| 3000 | for i = 0,2,0.1 do | |
| 3001 | swait() | |
| 3002 | MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 3003 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 3004 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 3005 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 3006 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 3007 | text.Text = " DIE! " | |
| 3008 | end | |
| 3009 | attack = false | |
| 3010 | text.Text = " " | |
| 3011 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 3012 | end | |
| 3013 | ||
| 3014 | function superpunch() | |
| 3015 | attack = true | |
| 3016 | jumped = true | |
| 3017 | hum.WalkSpeed = 16 | |
| 3018 | chatfunc("You'll be fine as long as you dodge!")
| |
| 3019 | wait(1.5) | |
| 3020 | text.Text = " " | |
| 3021 | wait(0.5) | |
| 3022 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
| |
| 3023 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7)
| |
| 3024 | wait(0.7) | |
| 3025 | chatfunc("Explosion Grenade!")
| |
| 3026 | for i = 0,15,0.1 do | |
| 3027 | swait() | |
| 3028 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
| 3029 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
| 3030 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
| 3031 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
| 3032 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
| 3033 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
| 3034 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 3035 | end | |
| 3036 | local rng = Instance.new("Part", char)
| |
| 3037 | rng.Anchored = true | |
| 3038 | rng.BrickColor = BrickColor.new("Neon orange")
| |
| 3039 | rng.CanCollide = false | |
| 3040 | rng.FormFactor = 3 | |
| 3041 | rng.Name = "Ring" | |
| 3042 | rng.Size = Vector3.new(1, 1, 1) | |
| 3043 | rng.Transparency = 0 | |
| 3044 | rng.TopSurface = 0 | |
| 3045 | rng.BottomSurface = 0 | |
| 3046 | rng.CFrame = root.CFrame | |
| 3047 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3048 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 3049 | local rng2 = rng:Clone() | |
| 3050 | rng2.Parent = char | |
| 3051 | rng2.BrickColor = BrickColor.new("Dark stone grey")
| |
| 3052 | local rng2m = rng2.Mesh | |
| 3053 | local rng3 = rng:Clone() | |
| 3054 | rng3.Parent = char | |
| 3055 | local rng3m = rng3.Mesh | |
| 3056 | local rng4 = rng:Clone() | |
| 3057 | rng4.Parent = char | |
| 3058 | rng4.BrickColor = BrickColor.new("Dark stone grey")
| |
| 3059 | local rng4m = rng4.Mesh | |
| 3060 | local rng5 = rng:Clone() | |
| 3061 | rng5.Parent = char | |
| 3062 | local rng5m = rng5.Mesh | |
| 3063 | local rng6 = rng:Clone() | |
| 3064 | rng6.Material = "Neon" | |
| 3065 | rng6.Parent = char | |
| 3066 | local rng6m = rng6.Mesh | |
| 3067 | rng6m.Scale = vt(1,1,1) | |
| 3068 | rng6m.MeshType = "Sphere" | |
| 3069 | local hita = rng6.Touched:connect(function(hit) | |
| 3070 | Damagefunc(hit,30000,44000,math.random(30000,40000),"Normal",root,.2,1) | |
| 3071 | end) | |
| 3072 | rng2.CFrame = root.CFrame | |
| 3073 | rng3.CFrame = root.CFrame | |
| 3074 | rng4.CFrame = root.CFrame | |
| 3075 | rng5.CFrame = root.CFrame | |
| 3076 | rng6.CFrame = root.CFrame | |
| 3077 | CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1)
| |
| 3078 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85)
| |
| 3079 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
| |
| 3080 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
| |
| 3081 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
| |
| 3082 | wait() | |
| 3083 | local scaler = 10/5 | |
| 3084 | local scaler2 = 10/5 | |
| 3085 | MagicBlock(bc("Dark stone grey"),root.CFrame,30,30,30,5,5,5,0.015)
| |
| 3086 | for i = 0,10,0.1 do | |
| 3087 | swait() | |
| 3088 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2 | |
| 3089 | rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/0.25 | |
| 3090 | rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/0.5 | |
| 3091 | rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/0.75 | |
| 3092 | rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2 | |
| 3093 | rng6.Size = rng6.Size + Vector3.new(scaler2/0.9, scaler2/0.9, scaler2/0.4) | |
| 3094 | rng6.CFrame = rng.CFrame | |
| 3095 | rng.Transparency = rng.Transparency + 0.01 | |
| 3096 | rng2.Transparency = rng2.Transparency + 0.01 | |
| 3097 | rng3.Transparency = rng3.Transparency + 0.01 | |
| 3098 | rng4.Transparency = rng4.Transparency + 0.01 | |
| 3099 | rng5.Transparency = rng5.Transparency + 0.01 | |
| 3100 | rng6.Transparency = rng6.Transparency + 0.01 | |
| 3101 | scaler = scaler - 0.125/5 | |
| 3102 | scaler2 = scaler2 - 0.1/5 | |
| 3103 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5) | |
| 3104 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1) | |
| 3105 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5) | |
| 3106 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 3107 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2) | |
| 3108 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 3109 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 3110 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
| 3111 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
| 3112 | end | |
| 3113 | hita:disconnect() | |
| 3114 | game:GetService("Debris"):AddItem(rng, 1)
| |
| 3115 | game:GetService("Debris"):AddItem(rng2, 1)
| |
| 3116 | game:GetService("Debris"):AddItem(rng3, 1)
| |
| 3117 | game:GetService("Debris"):AddItem(rng4, 1)
| |
| 3118 | game:GetService("Debris"):AddItem(rng5, 1)
| |
| 3119 | hum.WalkSpeed = 16 | |
| 3120 | attack = false | |
| 3121 | char.Head.face.Texture = "rbxassetid://29291814" | |
| 3122 | jumped = false | |
| 3123 | end | |
| 3124 | ||
| 3125 | ||
| 3126 | ||
| 3127 | ||
| 3128 | ||
| 3129 | ||
| 3130 | ||
| 3131 | mouse.KeyDown:connect(function(k) | |
| 3132 | if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then | |
| 3133 | jump() | |
| 3134 | end | |
| 3135 | if k == "x" and attack == false then | |
| 3136 | dash() | |
| 3137 | end | |
| 3138 | if k == "t" and attack == false then | |
| 3139 | dashh() | |
| 3140 | end | |
| 3141 | if k == "r" and attack == false then | |
| 3142 | dashs() | |
| 3143 | end | |
| 3144 | if k == "p" and attack == false then | |
| 3145 | asd:Stop() | |
| 3146 | end | |
| 3147 | if k == "g" and attack == false then | |
| 3148 | chatfunc("Deku!")
| |
| 3149 | end | |
| 3150 | if k == "1" and attack == false then | |
| 3151 | chatfunc("Weak!")
| |
| 3152 | end | |
| 3153 | if k == "2" and attack == false then | |
| 3154 | chatfunc("That's what you consider strong?!")
| |
| 3155 | end | |
| 3156 | if k == "3" and attack == false then | |
| 3157 | chatfunc("Useless!")
| |
| 3158 | end | |
| 3159 | if k == "4" and attack == false then | |
| 3160 | chatfunc("What?!")
| |
| 3161 | end | |
| 3162 | if k == "5" and attack == false then | |
| 3163 | chatfunc("Hmph.")
| |
| 3164 | end | |
| 3165 | if k == "6" and attack == false then | |
| 3166 | chatfunc("Trash!")
| |
| 3167 | end | |
| 3168 | if k == "7" and attack == false then | |
| 3169 | chatfunc("You're Nothing!")
| |
| 3170 | end | |
| 3171 | if k == "h" and attack == false then | |
| 3172 | chatfunc("Die!")
| |
| 3173 | end | |
| 3174 | if k == "m" and attack == false then | |
| 3175 | char.Head.face.Texture = "rbxassetid://126198982" | |
| 3176 | chatfunc("I'll crush you!")
| |
| 3177 | end | |
| 3178 | if k == "j" and attack == false then | |
| 3179 | chatfunc("Idiot!")
| |
| 3180 | end | |
| 3181 | if k == "k" and attack == false then | |
| 3182 | chatfunc("I'll crush that Half-n-Half bastard..")
| |
| 3183 | end | |
| 3184 | if k == "l" and attack == false then | |
| 3185 | chatfunc("Remember who you are.. YOU'RE BENEATH ME!")
| |
| 3186 | end | |
| 3187 | if k == "f" and attack == false then | |
| 3188 | daash() | |
| 3189 | end | |
| 3190 | if k == "u" and attack == false then | |
| 3191 | asd:Play() | |
| 3192 | end | |
| 3193 | if k == "e" and attack == false then | |
| 3194 | punch() | |
| 3195 | end | |
| 3196 | if k == "y" and attack == false then | |
| 3197 | punch3() | |
| 3198 | end | |
| 3199 | ||
| 3200 | if k == "q" and attack == false then | |
| 3201 | punch2() | |
| 3202 | end | |
| 3203 | if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then | |
| 3204 | boom() | |
| 3205 | end | |
| 3206 | if k == "v" and attack == false then | |
| 3207 | shooty() | |
| 3208 | end | |
| 3209 | if k == "l" and attack == false then | |
| 3210 | if Serious == true then | |
| 3211 | punchd() | |
| 3212 | end | |
| 3213 | end | |
| 3214 | if k == "b" and attack == false then | |
| 3215 | superpunch() | |
| 3216 | end | |
| 3217 | end) | |
| 3218 | mouse.KeyDown:connect(function(key) | |
| 3219 | if key=="8" then | |
| 3220 | Serious() | |
| 3221 | end | |
| 3222 | end) | |
| 3223 | Health = math.huge --------- Serious mode aura. | |
| 3224 | BaseHealth = math.huge | |
| 3225 | ||
| 3226 | ||
| 3227 | ||
| 3228 | ||
| 3229 | InForm = false | |
| 3230 | ||
| 3231 | Player = game.Players.LocalPlayer | |
| 3232 | Char = Player.Character | |
| 3233 | Torso = Char.Torso | |
| 3234 | ||
| 3235 | function Serious() | |
| 3236 | for X = 1, 1 do wait() | |
| 3237 | asd1 = Instance.new("Sound",char)
| |
| 3238 | asd1.SoundId = "http://www.roblox.com/asset/?id = 934992368" | |
| 3239 | asd1.Volume = 2 | |
| 3240 | asd1.Looped = true | |
| 3241 | asd1:Play() | |
| 3242 | chatfunc("...")
| |
| 3243 | wait(1.6) | |
| 3244 | chatfunc("...You..")
| |
| 3245 | wait(1.6) | |
| 3246 | chatfunc("...")
| |
| 3247 | wait(1.6) | |
| 3248 | chatfunc("There's no point in winning if both sides don't give it their all.")
| |
| 3249 | wait(8) | |
| 3250 | for X = 1, 1 do wait() | |
| 3251 | local Effect = Instance.new("Part")
| |
| 3252 | Effect.Name = "Effect" | |
| 3253 | Effect.Parent = Torso | |
| 3254 | Effect.CFrame = Torso.CFrame | |
| 3255 | Effect.BrickColor = BrickColor.new("Neon orange")
| |
| 3256 | Effect.Shape = "Ball" | |
| 3257 | Effect.Size = Vector3.new(1, 1, 1) | |
| 3258 | Effect.Anchored = true | |
| 3259 | Effect.Material = "Neon" | |
| 3260 | Effect.CanCollide = false | |
| 3261 | Effect.CFrame = Torso.CFrame | |
| 3262 | Effect.Size = Effect.Size + Vector3.new(0.5) | |
| 3263 | Effect.Transparency = Effect.Transparency + 0.04 | |
| 3264 | end | |
| 3265 | end | |
| 3266 | ||
| 3267 | repeat | |
| 3268 | Torso:FindFirstChild("Effect"):Remove()
| |
| 3269 | until Torso:FindFirstChild("Effect") == nil
| |
| 3270 | ||
| 3271 | ||
| 3272 | local Color1 = Color3.new(255, 255, 0) | |
| 3273 | local Color2 = Color3.new(255, 255, 0) | |
| 3274 | ||
| 3275 | ||
| 3276 | local Aura = Instance.new('ParticleEmitter')
| |
| 3277 | Aura.Name = "Aura" | |
| 3278 | Aura.Texture = "rbxassetid://254959503" | |
| 3279 | Aura.Parent = Torso | |
| 3280 | Aura.LightEmission = 0.6 | |
| 3281 | Aura.Transparency = NumberSequence.new(0.5) | |
| 3282 | Aura.Color = ColorSequence.new(BrickColor.new("Neon orange").Color)
| |
| 3283 | Aura.Size = NumberSequence.new(7,4,1) | |
| 3284 | Aura.LockedToPart = false | |
| 3285 | Aura.Lifetime = NumberRange.new(3) | |
| 3286 | Aura.Rate = 40 | |
| 3287 | Aura.Speed = NumberRange.new(2) | |
| 3288 | Aura.Rotation = NumberRange.new(-420,420) | |
| 3289 | Aura.EmissionDirection = "Top" | |
| 3290 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
| |
| 3291 | punch2() | |
| 3292 | chatfunc("DON'T UNDERESTIMATE ME!")
| |
| 3293 | Instance.new("ForceField",char).Visible = false
| |
| 3294 | hum.Name = "youdungoofed" | |
| 3295 | local Aura2 = Instance.new('ParticleEmitter')
| |
| 3296 | Aura2.Name = "Aura" | |
| 3297 | Aura2.Texture = "rbxassetid://254959503" | |
| 3298 | Aura2.Parent = Torso | |
| 3299 | Aura2.LightEmission = 0 | |
| 3300 | Aura2.Transparency = NumberSequence.new(0.7) | |
| 3301 | Aura2.Color = ColorSequence.new(BrickColor.new("Grey").Color)
| |
| 3302 | Aura2.Size = NumberSequence.new(10,6,1) | |
| 3303 | Aura2.LockedToPart = false | |
| 3304 | Aura2.Lifetime = NumberRange.new(3) | |
| 3305 | Aura2.Rate = 40 | |
| 3306 | Aura2.Speed = NumberRange.new(2) | |
| 3307 | Aura2.Rotation = NumberRange.new(3,-3) | |
| 3308 | Aura2.EmissionDirection = "Top" | |
| 3309 | local Aura3 = Instance.new('ParticleEmitter')
| |
| 3310 | Aura3.Name = "Aura" | |
| 3311 | Aura3.Texture = "rbxassetid://245595131" | |
| 3312 | Aura3.Parent = Torso | |
| 3313 | Aura3.LightEmission = 1 | |
| 3314 | Aura3.Transparency = NumberSequence.new(0.7) | |
| 3315 | Aura3.Color = ColorSequence.new(BrickColor.new("Grey").Color)
| |
| 3316 | Aura3.Size = NumberSequence.new(0.6) | |
| 3317 | Aura3.LockedToPart = false | |
| 3318 | Aura3.Lifetime = NumberRange.new(1) | |
| 3319 | Aura3.Rate = 40 | |
| 3320 | Aura3.Speed = NumberRange.new(2) | |
| 3321 | Aura3.Rotation = NumberRange.new(3,-3) | |
| 3322 | Aura3.EmissionDirection = "Top" | |
| 3323 | ||
| 3324 | ||
| 3325 | InForm = true | |
| 3326 | ||
| 3327 | Char.Humanoid.MaxHealth = Health | |
| 3328 | wait(0.3) | |
| 3329 | Char.Humanoid.Health = Health | |
| 3330 | ||
| 3331 | ||
| 3332 | end | |
| 3333 | ||
| 3334 | function Base() | |
| 3335 | InForm = false | |
| 3336 | local Effect = Instance.new("Part")
| |
| 3337 | Effect.Name = "Effect" | |
| 3338 | Effect.Parent = Torso | |
| 3339 | Effect.CFrame = Torso.CFrame | |
| 3340 | Effect.BrickColor = BrickColor.new("White")
| |
| 3341 | Effect.Shape = "Ball" | |
| 3342 | Effect.Size = Vector3.new(8, 8, 8) | |
| 3343 | Effect.Anchored = true | |
| 3344 | Effect.Material = "Neon" | |
| 3345 | Effect.CanCollide = false | |
| 3346 | for loop = 1, 25 do wait() | |
| 3347 | Effect.CFrame = Torso.CFrame | |
| 3348 | Effect.Size = Effect.Size + Vector3.new(-0.5) | |
| 3349 | Effect.Transparency = Effect.Transparency + 0.04 | |
| 3350 | end | |
| 3351 | repeat | |
| 3352 | Torso:FindFirstChild("Effect"):Remove()
| |
| 3353 | until Torso:FindFirstChild("Effect") == nil
| |
| 3354 | ||
| 3355 | for i, v in pairs(Torso:GetChildren()) do | |
| 3356 | if v:IsA('ParticleEmitter') then
| |
| 3357 | v:Remove() | |
| 3358 | asd1:Destroy() | |
| 3359 | killbrick:Destroy() | |
| 3360 | end | |
| 3361 | end | |
| 3362 | char.Humanoid.MaxHealth = BaseHealth | |
| 3363 | wait(0.3) | |
| 3364 | char.Humanoid.Health = BaseHealth | |
| 3365 | ||
| 3366 | end | |
| 3367 | ||
| 3368 | mouse.KeyDown:connect(function(key) | |
| 3369 | if key=="9" then | |
| 3370 | Base() | |
| 3371 | end | |
| 3372 | end) | |
| 3373 | ||
| 3374 | Player.Chatted:connect(function(Message) | |
| 3375 | if Message == "Time to get serious." and InForm == false then | |
| 3376 | wait(0.10) | |
| 3377 | Serious() | |
| 3378 | end | |
| 3379 | if Message == "off" or Message == "Nice fight." and InForm == true then | |
| 3380 | Base() | |
| 3381 | end | |
| 3382 | end) | |
| 3383 | Humanoid.Animator.Parent = nil | |
| 3384 | idleanim=.4 | |
| 3385 | while true do | |
| 3386 | swait() | |
| 3387 | sine = sine + change | |
| 3388 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 3389 | local velderp=RootPart.Velocity.y | |
| 3390 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 3391 | if equipped==true or equipped==false then | |
| 3392 | if attack==false then | |
| 3393 | idle=idle+1 | |
| 3394 | else | |
| 3395 | idle=0 | |
| 3396 | end | |
| 3397 | if idle>=500 then | |
| 3398 | if attack==false then | |
| 3399 | --Sheath() | |
| 3400 | end | |
| 3401 | end | |
| 3402 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 3403 | Anim="Jump" | |
| 3404 | if attack==false then | |
| 3405 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
| 3406 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 3407 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 3408 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 3409 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 3410 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
| 3411 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 3412 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
| 3413 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
| 3414 | end | |
| 3415 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 3416 | Anim="Fall" | |
| 3417 | if attack==false then | |
| 3418 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
| 3419 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 3420 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 3421 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
| 3422 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 3423 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 3424 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 3425 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
| 3426 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
| 3427 | end | |
| 3428 | elseif torvel<1 and hitfloor~=nil then | |
| 3429 | Anim="Idle" | |
| 3430 | if jumped == false then | |
| 3431 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3) | |
| 3432 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3) | |
| 3433 | end | |
| 3434 | if attack==false then | |
| 3435 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 3436 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3) | |
| 3437 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3) | |
| 3438 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3) | |
| 3439 | end | |
| 3440 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 3441 | Anim="Walk" | |
| 3442 | if jumped == false then | |
| 3443 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3) | |
| 3444 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3) | |
| 3445 | end | |
| 3446 | if attack==false then | |
| 3447 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
| 3448 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 3449 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3) | |
| 3450 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3) | |
| 3451 | end | |
| 3452 | elseif torvel>=22 and hitfloor~=nil then | |
| 3453 | Anim="Run" | |
| 3454 | if jumped == false then | |
| 3455 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 3456 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 3457 | end | |
| 3458 | if attack==false then | |
| 3459 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
| 3460 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 3461 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
| 3462 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
| 3463 | end | |
| 3464 | end | |
| 3465 | end | |
| 3466 | end |