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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 5 | ||
| 6 | local Player = game:GetService("Players").SlobberyMist9
| |
| 7 | local Mouse,mouse,UserInputService,ContextActionService | |
| 8 | do | |
| 9 | script.Parent = Player.Character | |
| 10 | local CAS = {Actions={}}
| |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | Event.Parent = Player.Character | |
| 14 | local fakeEvent = function() | |
| 15 | local t = {_fakeEvent=true}
| |
| 16 | t.Connect = function(self,f)self.Function=f end | |
| 17 | - | Player = game:GetService("Players").LocalPlayer
|
| 17 | + | t.connect = t.Connect |
| 18 | return t | |
| 19 | end | |
| 20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 22 | function CAS:BindAction(name,fun,touch,...) | |
| 23 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
| |
| 24 | end | |
| 25 | function CAS:UnbindAction(name) | |
| 26 | CAS.Actions[name] = nil | |
| 27 | end | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | Event.OnServerEvent:Connect(function(plr,io) | |
| 37 | if plr~=Player then return end | |
| 38 | if io.isMouse then | |
| 39 | m.Target = io.Target | |
| 40 | m.Hit = io.Hit | |
| 41 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 42 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 43 | m:TrigEvent("Button1Down")
| |
| 44 | else | |
| 45 | m:TrigEvent("Button1Up")
| |
| 46 | end | |
| 47 | else | |
| 48 | for n,t in pairs(CAS.Actions) do | |
| 49 | for _,k in pairs(t.Keys) do | |
| 50 | if k==io.KeyCode then | |
| 51 | t.Function(t.Name,io.UserInputState,io) | |
| 52 | - | Mouse = Player:GetMouse() |
| 52 | + | end |
| 53 | end | |
| 54 | end | |
| 55 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 56 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
| |
| 57 | UIS:TrigEvent("InputBegan",io,false)
| |
| 58 | else | |
| 59 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
| |
| 60 | UIS:TrigEvent("InputEnded",io,false)
| |
| 61 | end | |
| 62 | end | |
| 63 | end) | |
| 64 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 65 | end | |
| 66 | ||
| 67 | --[[ | |
| 68 | ||
| 69 | ||
| 70 | --------------------------------------------------------------- | |
| 71 | Remake by: 123jl123 | |
| 72 | --------------------------------------------------------------- | |
| 73 | Script: Giga Vanta | |
| 74 | --------------------------------------------------------------- | |
| 75 | Type: Boss/Class | |
| 76 | --------------------------------------------------------------- | |
| 77 | ||
| 78 | ||
| 79 | ]] | |
| 80 | local intro = true | |
| 81 | local Removeface = true | |
| 82 | wait(0.016666666666666666) | |
| 83 | Player = game:GetService("Players").SlobberyMist9
| |
| 84 | Character = Player.Character | |
| 85 | char = Character | |
| 86 | torso = char.Torso | |
| 87 | hed = char.Head | |
| 88 | maincolor = BrickColor.new("Eggplant")
| |
| 89 | PlayerGui = Player.PlayerGui | |
| 90 | Backpack = Player.Backpack | |
| 91 | Torso = Character.Torso | |
| 92 | Head = Character.Head | |
| 93 | Humanoid = Character.Humanoid | |
| 94 | LeftArm = Character["Left Arm"] | |
| 95 | LeftLeg = Character["Left Leg"] | |
| 96 | RightArm = Character["Right Arm"] | |
| 97 | RightLeg = Character["Right Leg"] | |
| 98 | LS = Torso["Left Shoulder"] | |
| 99 | LH = Torso["Left Hip"] | |
| 100 | RS = Torso["Right Shoulder"] | |
| 101 | RH = Torso["Right Hip"] | |
| 102 | Face = Head.face | |
| 103 | Neck = Torso.Neck | |
| 104 | it = Instance.new | |
| 105 | attacktype = 1 | |
| 106 | vt = Vector3.new | |
| 107 | cf = CFrame.new | |
| 108 | euler = CFrame.fromEulerAnglesXYZ | |
| 109 | angles = CFrame.Angles | |
| 110 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 111 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 112 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 113 | RootPart = Character.HumanoidRootPart | |
| 114 | RootJoint = RootPart.RootJoint | |
| 115 | RootCF = euler(-1.57, 0, 3.14) | |
| 116 | attack = false | |
| 117 | equipped = false | |
| 118 | - | local lp = game.Players.LocalPlayer |
| 118 | + | |
| 119 | local idle = 0 | |
| 120 | - | local mouseV2 = lp:GetMouse() |
| 120 | + | |
| 121 | local ShotTarget = RootPart | |
| 122 | player = nil | |
| 123 | local Stats = Instance.new("Folder", Character)
| |
| 124 | Stats.Name = "Stats" | |
| 125 | local Defense = Instance.new("NumberValue", Stats)
| |
| 126 | Defense.Name = "Defense" | |
| 127 | Defense.Value = 0.6 | |
| 128 | local Speed = Instance.new("NumberValue", Stats)
| |
| 129 | Speed.Name = "Speed" | |
| 130 | Speed.Value = 1.6625 | |
| 131 | local Damage = Instance.new("NumberValue", Stats)
| |
| 132 | Damage.Name = "Damage" | |
| 133 | Damage.Value = 1 | |
| 134 | local BlockValue = Instance.new("BoolValue", Stats)
| |
| 135 | BlockValue.Name = "BlockValue" | |
| 136 | - | Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://190845741",Volume = 2.5,Looped = true})
|
| 136 | + | |
| 137 | local StaggerHitAnim = Instance.new("BoolValue", Stats)
| |
| 138 | StaggerHitAnim.Name = "StaggerHitAnim" | |
| 139 | StaggerHitAnim.Value = false | |
| 140 | local staghitanim = false | |
| 141 | local StaggerAnim = Instance.new("BoolValue", Stats)
| |
| 142 | StaggerAnim.Name = "StaggerAnim" | |
| 143 | StaggerAnim.Value = false | |
| 144 | local staganim = false | |
| 145 | local StunAnim = Instance.new("BoolValue", Stats)
| |
| 146 | StunAnim.Name = "StunAnim" | |
| 147 | StunAnim.Value = false | |
| 148 | local stunanim = false | |
| 149 | local StunValue = Instance.new("NumberValue", Stats)
| |
| 150 | StunValue.Name = "StunValue" | |
| 151 | StunValue.Value = 0 | |
| 152 | local cooldown1 = 0 | |
| 153 | local cooldown2 = 0 | |
| 154 | local cooldown3 = 0 | |
| 155 | local cooldown4 = 0 | |
| 156 | local mana = 0 | |
| 157 | CustomColor = BrickColor.new("Really black")
| |
| 158 | Colorpart1 = CustomColor.r | |
| 159 | Colorpart2 = CustomColor.g | |
| 160 | Colorpart3 = CustomColor.b | |
| 161 | local scrn = Instance.new("ScreenGui", PlayerGui)
| |
| 162 | local ud = UDim2.new | |
| 163 | local c3 = Color3.new | |
| 164 | local skillcolorscheme = c3(1, 1, 1) | |
| 165 | local co1 = 0 | |
| 166 | local co2 = 0 | |
| 167 | local co3 = 0 | |
| 168 | local co4 = 0 | |
| 169 | local maxmana = 0 | |
| 170 | local maxstun = 1 | |
| 171 | local recovermana = 0 | |
| 172 | local losestun = 0 | |
| 173 | local stunwait = 0 | |
| 174 | local manawait = 0 | |
| 175 | local skill1mana = 0 | |
| 176 | local skill2mana = 0 | |
| 177 | local skill3mana = 0 | |
| 178 | local skill4mana = 0 | |
| 179 | local menuupdatespeed = 0 | |
| 180 | local constantupdate = false | |
| 181 | local showstats = false | |
| 182 | local showstunbar = false | |
| 183 | local lp = game.Players.SlobberyMist9 | |
| 184 | local chr = lp.Character | |
| 185 | local euler = CFrame.fromEulerAnglesXYZ | |
| 186 | local rad = math.rad | |
| 187 | local trso = chr.Torso | |
| 188 | script.Name = "Soul Of Darkness" | |
| 189 | ||
| 190 | ||
| 191 | New = function(Object, Parent, Name, Data) | |
| 192 | local Object = Instance.new(Object) | |
| 193 | for Index, Value in pairs(Data or {}) do
| |
| 194 | Object[Index] = Value | |
| 195 | end | |
| 196 | Object.Parent = Parent | |
| 197 | Object.Name = Name | |
| 198 | return Object | |
| 199 | end | |
| 200 | Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://965845438",Volume = 1.5,Looped = true})
| |
| 201 | Music1.Pitch = 1 | |
| 202 | ||
| 203 | ||
| 204 | Music2 = New("Sound",Torso,"Music",{SoundId = "rbxassetid://215931322",Volume = 2,Looped = false})
| |
| 205 | Music2.Pitch = 1.7 | |
| 206 | ||
| 207 | TalkSound = New("Sound",Torso,"Music",{SoundId = "rbxassetid://615716445",Volume = 4,Looped = false})
| |
| 208 | TalkSound.Pitch = .2 | |
| 209 | ||
| 210 | ||
| 211 | ||
| 212 | ||
| 213 | ||
| 214 | ||
| 215 | hum = chr.Humanoid | |
| 216 | ||
| 217 | ||
| 218 | function newface() | |
| 219 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=0" | |
| 220 | if Removeface == true then | |
| 221 | char.Head.face:Destroy() | |
| 222 | end | |
| 223 | local eye12 = Instance.new("Part")
| |
| 224 | eye12.Parent = char | |
| 225 | eye12.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 226 | eye12.Archivable = true | |
| 227 | eye12.Transparency = 0 | |
| 228 | eye12.Shape = "Ball" | |
| 229 | eye12.BrickColor = maincolor | |
| 230 | eye12.Material = "Neon" | |
| 231 | eye12.CanCollide = false | |
| 232 | local mesh2 = Instance.new("SpecialMesh",eye12)
| |
| 233 | mesh2.MeshType = "Sphere" | |
| 234 | mesh2.Scale = Vector3.new(.6, 1.2, 1) | |
| 235 | local weld1en2 = Instance.new("Weld")
| |
| 236 | weld1en2.Parent = char.Head | |
| 237 | weld1en2.Part0 = char.Head | |
| 238 | weld1en2.Part1 = eye12 | |
| 239 | weld1en2.C1 = CFrame.new(0.15, -0.15, 0.5175) | |
| 240 | local eye1 = Instance.new("Part")
| |
| 241 | eye1.Parent = char | |
| 242 | eye1.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 243 | eye1.Archivable = true | |
| 244 | eye1.Transparency = 0 | |
| 245 | eye1.Shape = "Ball" | |
| 246 | eye1.BrickColor = maincolor | |
| 247 | eye1.Material = "Neon" | |
| 248 | eye1.CanCollide = false | |
| 249 | local mesh = Instance.new("SpecialMesh",eye1)
| |
| 250 | mesh.MeshType = "Sphere" | |
| 251 | mesh.Scale = Vector3.new(.6, 1.2, 1) | |
| 252 | local weld1en = Instance.new("Weld")
| |
| 253 | weld1en.Parent = char.Head | |
| 254 | weld1en.Part0 = char.Head | |
| 255 | weld1en.Part1 = eye1 | |
| 256 | weld1en.C1 = CFrame.new(-0.15, -0.15, 0.5175) | |
| 257 | end | |
| 258 | ||
| 259 | ||
| 260 | ||
| 261 | function CreateMesh(parent, id, x, y, z, texture) | |
| 262 | local m=Instance.new("SpecialMesh", parent)
| |
| 263 | m.MeshType = "FileMesh" | |
| 264 | m.MeshId="http://www.roblox.com/asset/?id="..id | |
| 265 | if texture ~= nil then | |
| 266 | m.TextureId="http://www.roblox.com/asset/?id="..texture | |
| 267 | end | |
| 268 | m.Scale = Vector3.new(x,y,z) | |
| 269 | end | |
| 270 | ||
| 271 | ||
| 272 | ||
| 273 | Hat=function() | |
| 274 | hat = Instance.new("Part", chr)
| |
| 275 | hat.Transparency = 1 | |
| 276 | hat.Name = "Top hat" | |
| 277 | hat.Locked = true | |
| 278 | hat.BrickColor = BrickColor.new("Really black")
| |
| 279 | hat.CanCollide=true | |
| 280 | hat.Size=Vector3.new(1,1,1) | |
| 281 | hatw = Instance.new("Weld",hat)
| |
| 282 | hatw.Part0=hat | |
| 283 | hatw.Part1=chr['Head'] | |
| 284 | hatw.C0=CFrame.new(0,-1.7,0) | |
| 285 | hatw.C1=euler(rad(0),rad(0),rad(0)) | |
| 286 | end | |
| 287 | ||
| 288 | Hat() | |
| 289 | ||
| 290 | ||
| 291 | ||
| 292 | function Name(msg) | |
| 293 | if hat.Parent then | |
| 294 | pcall(function() | |
| 295 | local Gui = Instance.new('BillboardGui', hat)
| |
| 296 | Gui.ExtentsOffset = Vector3.new(0,1.5,0) | |
| 297 | Gui.Size = UDim2.new(0,200,0,300) | |
| 298 | local Frame = Instance.new('Frame',Gui)
| |
| 299 | Frame.BackgroundTransparency = 1 | |
| 300 | Frame.Size = UDim2.new(1,0,1,0) | |
| 301 | local Txt = Instance.new('TextLabel',Frame)
| |
| 302 | Txt.BackgroundTransparency = 1 | |
| 303 | Txt.Size = UDim2.new(1,0,1,0) | |
| 304 | Txt.Font = 'ArialBold' | |
| 305 | Txt.FontSize = 'Size24' | |
| 306 | Txt.Text = msg | |
| 307 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 308 | Txt.TextStrokeColor3 = Color3.new(1,0,0) | |
| 309 | Txt.TextStrokeTransparency = 0 | |
| 310 | Txt.TextWrapped = true | |
| 311 | Txt.TextScaled = false | |
| 312 | end) | |
| 313 | else | |
| 314 | end | |
| 315 | end | |
| 316 | ||
| 317 | function Chat(msg) -- Credit to jillmiles1, kthxbye | |
| 318 | if hat.Parent then | |
| 319 | pcall(function() | |
| 320 | if hat:FindFirstChild("Vanta Chat Gui") then
| |
| 321 | hat['Vanta Chat Gui']:destroy() | |
| 322 | end | |
| 323 | local Gui = Instance.new('BillboardGui', hat)
| |
| 324 | Gui.Name = "Vanta Chat Gui" | |
| 325 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 326 | Gui.Size = UDim2.new(0,200,0,300) | |
| 327 | local Frame = Instance.new('Frame',Gui)
| |
| 328 | Frame.BackgroundTransparency = 1 | |
| 329 | Frame.Size = UDim2.new(1,0,1,0) | |
| 330 | local Txt = Instance.new('TextLabel',Frame)
| |
| 331 | Txt.BackgroundTransparency = 1 | |
| 332 | Txt.Size = UDim2.new(1,0,1,0) | |
| 333 | Txt.Font = 'ArialBold' | |
| 334 | Txt.Name = "ChatGui" | |
| 335 | Txt.FontSize = 'Size24' | |
| 336 | Txt.Text = '' | |
| 337 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 338 | Txt.TextStrokeColor3 = Color3.new(.2,0,.6) | |
| 339 | Txt.TextStrokeTransparency = .5 | |
| 340 | Txt.TextWrapped = true | |
| 341 | Txt.TextScaled = false | |
| 342 | ||
| 343 | delay(wait(),function() | |
| 344 | for v = 1, #msg do | |
| 345 | Txt.Text=string.sub(msg,1,v) | |
| 346 | TalkSound:Play() | |
| 347 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 348 | wait(.009) | |
| 349 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 350 | wait(.009) | |
| 351 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 352 | end; | |
| 353 | ||
| 354 | ||
| 355 | ||
| 356 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 357 | wait(.03) | |
| 358 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 359 | wait(.03) | |
| 360 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 361 | wait(.03) | |
| 362 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 363 | wait(.03) | |
| 364 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 365 | wait(.03) | |
| 366 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 367 | wait(.03) | |
| 368 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 369 | wait(.03) | |
| 370 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 371 | wait(.03) | |
| 372 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 373 | wait(.03) | |
| 374 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 375 | wait(.03) | |
| 376 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 377 | wait(.03) | |
| 378 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 379 | wait(.03) | |
| 380 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 381 | wait(.03) | |
| 382 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 383 | wait(.03) | |
| 384 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 385 | wait(.03) | |
| 386 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 387 | wait(.03) | |
| 388 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 389 | wait(.03) | |
| 390 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 391 | wait(.03) | |
| 392 | ||
| 393 | Txt.TextStrokeTransparency = .6 | |
| 394 | wait() | |
| 395 | Txt.TextStrokeTransparency = .7 | |
| 396 | wait() | |
| 397 | Txt.TextStrokeTransparency = .8 | |
| 398 | wait() | |
| 399 | Txt.TextStrokeTransparency = .9 | |
| 400 | wait() | |
| 401 | Txt.TextStrokeTransparency = 1 | |
| 402 | wait() | |
| 403 | ||
| 404 | for v = 1, #Txt.Text do | |
| 405 | Txt.Text=string.sub(msg,-1,v) | |
| 406 | ||
| 407 | ||
| 408 | ||
| 409 | ||
| 410 | ||
| 411 | ||
| 412 | ||
| 413 | end; | |
| 414 | Gui:remove() | |
| 415 | end) | |
| 416 | end) | |
| 417 | else | |
| 418 | end | |
| 419 | end | |
| 420 | ||
| 421 | ||
| 422 | ||
| 423 | ||
| 424 | function PlaySound(id, pitch, looped) | |
| 425 | epicsound = Instance.new("Sound")
| |
| 426 | epicsound.Name = "FazbearSound" | |
| 427 | epicsound.SoundId = "rbxassetid://"..id | |
| 428 | epicsound.Volume = 1.5 | |
| 429 | epicsound.Pitch = pitch | |
| 430 | if looped == nil then | |
| 431 | looped = true | |
| 432 | else | |
| 433 | looped = looped | |
| 434 | end | |
| 435 | wait() | |
| 436 | epicsound.Looped = looped | |
| 437 | epicsound.Parent = workspace | |
| 438 | es=epicsound:clone() | |
| 439 | es:Stop() | |
| 440 | es.Parent = chr | |
| 441 | wait() | |
| 442 | es:Play() | |
| 443 | end | |
| 444 | ||
| 445 | ||
| 446 | ||
| 447 | ||
| 448 | lp.Chatted:connect(function(msg) | |
| 449 | Chat(msg) | |
| 450 | end) | |
| 451 | ||
| 452 | goldie=true | |
| 453 | ||
| 454 | ||
| 455 | function StopMusic() | |
| 456 | if chr:FindFirstChild("FazbearSound") then
| |
| 457 | if chr.FazbearSound.ClassName == "Sound" then | |
| 458 | chr.FazbearSound:Stop() | |
| 459 | wait() | |
| 460 | chr.FazbearSound:Destroy() | |
| 461 | end | |
| 462 | end | |
| 463 | end | |
| 464 | ||
| 465 | Name("")
| |
| 466 | ||
| 467 | ||
| 468 | mouseV2.KeyDown:connect(function(key) | |
| 469 | if key == "g" then | |
| 470 | if goldie==false then | |
| 471 | goldie=true | |
| 472 | ||
| 473 | elseif goldie==true then | |
| 474 | goldie=false | |
| 475 | ||
| 476 | end | |
| 477 | elseif key == "q" then -- Plays a song | |
| 478 | StopMusic() | |
| 479 | PlaySound(449394841, 0.8, false) | |
| 480 | elseif key == "e" then -- Plays a song | |
| 481 | StopMusic() | |
| 482 | PlaySound(449394892, 0.8, false) | |
| 483 | wait(2.4) | |
| 484 | StopMusic() | |
| 485 | elseif key == "t" then -- Stops any sound(s) playing from your torso | |
| 486 | StopMusic() | |
| 487 | ||
| 488 | end | |
| 489 | end) | |
| 490 | ||
| 491 | ||
| 492 | ||
| 493 | hum.Died:connect(function() | |
| 494 | es.Pitch = 10 | |
| 495 | wait() | |
| 496 | es:Pause() | |
| 497 | es:Stop() | |
| 498 | es.Name = "Ded" | |
| 499 | wait() | |
| 500 | es:Destroy() | |
| 501 | end) | |
| 502 | ||
| 503 | ||
| 504 | ||
| 505 | ||
| 506 | ||
| 507 | ||
| 508 | function makeframe(par, trans, pos, size, color, name) | |
| 509 | local frame = Instance.new("Frame")
| |
| 510 | frame.Parent = par | |
| 511 | frame.BackgroundTransparency = trans | |
| 512 | frame.BorderSizePixel = 0 | |
| 513 | frame.Position = pos | |
| 514 | frame.Size = size | |
| 515 | frame.BackgroundColor3 = color | |
| 516 | frame.Name = name | |
| 517 | return frame | |
| 518 | end | |
| 519 | function makelabel(par, text, trans, stroketrans, name) | |
| 520 | local label = Instance.new("TextLabel")
| |
| 521 | label.Parent = par | |
| 522 | label.BackgroundTransparency = 1 | |
| 523 | label.Size = ud(1, 0, 1, 0) | |
| 524 | label.Position = ud(0, 0, 0, 0) | |
| 525 | label.TextColor3 = c3(255, 255, 255) | |
| 526 | label.TextStrokeTransparency = stroketrans | |
| 527 | label.TextTransparency = trans | |
| 528 | label.FontSize = Enum.FontSize.Size32 | |
| 529 | label.Font = Enum.Font.Legacy | |
| 530 | label.BorderSizePixel = 0 | |
| 531 | label.TextScaled = true | |
| 532 | label.Text = text | |
| 533 | label.Name = name | |
| 534 | return label | |
| 535 | end | |
| 536 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1") | |
| 537 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2") | |
| 538 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3") | |
| 539 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4") | |
| 540 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1") | |
| 541 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2") | |
| 542 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3") | |
| 543 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4") | |
| 544 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
| 545 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
| 546 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
| 547 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
| 548 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
| 549 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
| 550 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
| 551 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar") | |
| 552 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover") | |
| 553 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
| 554 | if showstunbar == true then | |
| 555 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame") | |
| 556 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar") | |
| 557 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
| 558 | end | |
| 559 | if showstats == true then | |
| 560 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame") | |
| 561 | damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame") | |
| 562 | speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame") | |
| 563 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
| 564 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
| 565 | speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text") | |
| 566 | end | |
| 567 | function NoOutline(Part) | |
| 568 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 569 | end | |
| 570 | local weldBetween = function(a, b) | |
| 571 | local weldd = Instance.new("ManualWeld")
| |
| 572 | weldd.Part0 = a | |
| 573 | weldd.Part1 = b | |
| 574 | weldd.C0 = CFrame.new() | |
| 575 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 576 | weldd.Parent = a | |
| 577 | return weldd | |
| 578 | end | |
| 579 | ArtificialHeartbeat = Instance.new("BindableEvent", script)
| |
| 580 | ArtificialHeartbeat.Name = "ArtificialHeartbeat" | |
| 581 | script:WaitForChild("ArtificialHeartbeat")
| |
| 582 | frame = 0.016666666666666666 | |
| 583 | tf = 0 | |
| 584 | allowframeloss = false | |
| 585 | tossremainder = false | |
| 586 | lastframe = tick() | |
| 587 | script.ArtificialHeartbeat:Fire() | |
| 588 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 589 | tf = tf + s | |
| 590 | if tf >= frame then | |
| 591 | if allowframeloss then | |
| 592 | script.ArtificialHeartbeat:Fire() | |
| 593 | lastframe = tick() | |
| 594 | else | |
| 595 | for i = 1, math.floor(tf / frame) do | |
| 596 | script.ArtificialHeartbeat:Fire() | |
| 597 | end | |
| 598 | lastframe = tick() | |
| 599 | end | |
| 600 | if tossremainder then | |
| 601 | tf = 0 | |
| 602 | else | |
| 603 | tf = tf - frame * math.floor(tf / frame) | |
| 604 | end | |
| 605 | end | |
| 606 | end) | |
| 607 | function nooutline(part) | |
| 608 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 609 | end | |
| 610 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 611 | local fp = it("Part")
| |
| 612 | fp.formFactor = formfactor | |
| 613 | fp.Parent = parent | |
| 614 | fp.Reflectance = reflectance | |
| 615 | fp.Transparency = transparency | |
| 616 | fp.CanCollide = false | |
| 617 | fp.Locked = true | |
| 618 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 619 | fp.Name = name | |
| 620 | fp.Size = size | |
| 621 | fp.Position = Character.Torso.Position | |
| 622 | nooutline(fp) | |
| 623 | fp.Material = material | |
| 624 | fp:BreakJoints() | |
| 625 | return fp | |
| 626 | end | |
| 627 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 628 | local mesh = it(Mesh) | |
| 629 | mesh.Parent = part | |
| 630 | if Mesh == "SpecialMesh" then | |
| 631 | mesh.MeshType = meshtype | |
| 632 | mesh.MeshId = meshid | |
| 633 | end | |
| 634 | mesh.Offset = offset | |
| 635 | mesh.Scale = scale | |
| 636 | return mesh | |
| 637 | end | |
| 638 | function weld(parent, part0, part1, c0, c1) | |
| 639 | local weld = it("Weld")
| |
| 640 | weld.Parent = parent | |
| 641 | weld.Part0 = part0 | |
| 642 | weld.Part1 = part1 | |
| 643 | weld.C0 = c0 | |
| 644 | weld.C1 = c1 | |
| 645 | return weld | |
| 646 | end | |
| 647 | Humanoid.CameraOffset = vt(0, 12, 0) | |
| 648 | Humanoid.JumpPower = Humanoid.JumpPower * 2 | |
| 649 | coroutine.resume(coroutine.create(function() | |
| 650 | Humanoid.MaxHealth = 50000 | |
| 651 | wait(0.1) | |
| 652 | Humanoid.Health = Humanoid.MaxHealth | |
| 653 | end)) | |
| 654 | m = Instance.new("Model", Character)
| |
| 655 | m.Name = "Outer Being" | |
| 656 | healthscript = Character:FindFirstChild("Health")
| |
| 657 | if healthscript ~= nil then | |
| 658 | healthscript:Destroy() | |
| 659 | end | |
| 660 | Effects = Instance.new("Folder", m)
| |
| 661 | Effects.Name = "Effects" | |
| 662 | local outerbeingtransparency = 1 | |
| 663 | local head2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))head2.Material = "Neon" | |
| 664 | local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)*4)
| |
| 665 | local torso2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))torso2.Material = "Neon" | |
| 666 | local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)*4)
| |
| 667 | local leftarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))leftarm2.Material = "Neon" | |
| 668 | local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 669 | local rightarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))rightarm2.Material = "Neon" | |
| 670 | local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 671 | local leftleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))leftleg2.Material = "Neon" | |
| 672 | local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 673 | local rightleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))rightleg2.Material = "Neon" | |
| 674 | ||
| 675 | local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 676 | head2.CFrame = Head.CFrame | |
| 677 | torso2.CFrame = Head.CFrame | |
| 678 | leftarm2.CFrame = Head.CFrame | |
| 679 | rightarm2.CFrame = Head.CFrame | |
| 680 | leftleg2.CFrame = Head.CFrame | |
| 681 | rightleg2.CFrame = Head.CFrame | |
| 682 | local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 683 | local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 684 | local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 685 | local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 686 | local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 687 | local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 688 | head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0) | |
| 689 | torso2weld.C1 = cf(0, 0, 0) | |
| 690 | rightarm2weld.C1 = cf(0, 2.5, -0.5) | |
| 691 | leftarm2weld.C1 = cf(0, 2.5, -0.5) | |
| 692 | rightleg2weld.C1 = cf(0, 5, 0) | |
| 693 | leftleg2weld.C1 = cf(0, 5, 0) | |
| 694 | coroutine.resume(coroutine.create(function() | |
| 695 | while Humanoid.Health ~= 0 do | |
| 696 | ArtificialHeartbeat.Event:wait() | |
| 697 | head2weld.C0 = cf(0, 4, 0) * Neck.C0 | |
| 698 | torso2weld.C0 = cf(0, 0, 0) | |
| 699 | rightarm2weld.C0 = cf(6, 2, 0) * RW.C0 | |
| 700 | leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0 | |
| 701 | rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0 | |
| 702 | leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0 | |
| 703 | head2.Transparency = outerbeingtransparency | |
| 704 | torso2.Transparency = outerbeingtransparency | |
| 705 | leftarm2.Transparency = outerbeingtransparency | |
| 706 | rightarm2.Transparency = outerbeingtransparency | |
| 707 | leftleg2.Transparency = outerbeingtransparency | |
| 708 | rightleg2.Transparency = outerbeingtransparency | |
| 709 | end | |
| 710 | end)) | |
| 711 | Humanoid.Died:connect(function() | |
| 712 | end) | |
| 713 | for i, v in pairs(Character:GetChildren()) do | |
| 714 | if v:IsA("Model") then
| |
| 715 | for _, c in pairs(v:GetChildren()) do | |
| 716 | if c:IsA("Part") then
| |
| 717 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 718 | end | |
| 719 | end | |
| 720 | end | |
| 721 | end | |
| 722 | tran = 0 | |
| 723 | for i,v in pairs(Character:GetChildren()) do | |
| 724 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
| 725 | Glow1 = Color3.new(.1,0,.6) | |
| 726 | Glow2 = Color3.new(0,0,0) | |
| 727 | ||
| 728 | GlowParticle = Instance.new("ParticleEmitter",v)
| |
| 729 | GlowParticle.LightEmission = 1 | |
| 730 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
| 731 | GlowParticle.Size = NumberSequence.new(0,2) | |
| 732 | ||
| 733 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845" | |
| 734 | GlowParticle.Transparency = NumberSequence.new(tran,1) | |
| 735 | GlowParticle.LockedToPart = true | |
| 736 | GlowParticle.Lifetime = NumberRange.new(0.5) | |
| 737 | GlowParticle.Rate= 300 | |
| 738 | GlowParticle.Speed =NumberRange.new(0) | |
| 739 | end end | |
| 740 | print([[ | |
| 741 | Vanta loaded. | |
| 742 | Unleash your power on your enemies.]]) | |
| 743 | function so(id, par, vol, pit) | |
| 744 | coroutine.resume(coroutine.create(function() | |
| 745 | local sou = Instance.new("Sound", par or workspace)
| |
| 746 | sou.Volume = vol | |
| 747 | sou.Pitch = pit or 1 | |
| 748 | sou.SoundId = id | |
| 749 | ArtificialHeartbeat.Event:wait() | |
| 750 | sou:play() | |
| 751 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 752 | end)) | |
| 753 | end | |
| 754 | function clerp(a, b, t) | |
| 755 | local qa = {
| |
| 756 | QuaternionFromCFrame(a) | |
| 757 | } | |
| 758 | local qb = {
| |
| 759 | QuaternionFromCFrame(b) | |
| 760 | } | |
| 761 | local ax, ay, az = a.x, a.y, a.z | |
| 762 | local bx, by, bz = b.x, b.y, b.z | |
| 763 | local _t = 1 - t | |
| 764 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 765 | end | |
| 766 | function QuaternionFromCFrame(cf) | |
| 767 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 768 | local trace = m00 + m11 + m22 | |
| 769 | if trace > 0 then | |
| 770 | local s = math.sqrt(1 + trace) | |
| 771 | local recip = 0.5 / s | |
| 772 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 773 | else | |
| 774 | local i = 0 | |
| 775 | if m00 < m11 then | |
| 776 | i = 1 | |
| 777 | end | |
| 778 | if m22 > (i == 0 and m00 or m11) then | |
| 779 | i = 2 | |
| 780 | end | |
| 781 | if i == 0 then | |
| 782 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 783 | local recip = 0.5 / s | |
| 784 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 785 | elseif i == 1 then | |
| 786 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 787 | local recip = 0.5 / s | |
| 788 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 789 | elseif i == 2 then | |
| 790 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 791 | local recip = 0.5 / s | |
| 792 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 793 | end | |
| 794 | end | |
| 795 | end | |
| 796 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 797 | local xs, ys, zs = x + x, y + y, z + z | |
| 798 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 799 | local xx = x * xs | |
| 800 | local xy = x * ys | |
| 801 | local xz = x * zs | |
| 802 | local yy = y * ys | |
| 803 | local yz = y * zs | |
| 804 | local zz = z * zs | |
| 805 | 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)) | |
| 806 | end | |
| 807 | function QuaternionSlerp(a, b, t) | |
| 808 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 809 | local startInterp, finishInterp | |
| 810 | if cosTheta >= 1.0E-4 then | |
| 811 | if 1 - cosTheta > 1.0E-4 then | |
| 812 | local theta = math.acos(cosTheta) | |
| 813 | local invSinTheta = 1 / math.sin(theta) | |
| 814 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 815 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 816 | else | |
| 817 | startInterp = 1 - t | |
| 818 | finishInterp = t | |
| 819 | end | |
| 820 | elseif 1 + cosTheta > 1.0E-4 then | |
| 821 | local theta = math.acos(-cosTheta) | |
| 822 | local invSinTheta = 1 / math.sin(theta) | |
| 823 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 824 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 825 | else | |
| 826 | startInterp = t - 1 | |
| 827 | finishInterp = t | |
| 828 | end | |
| 829 | 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 | |
| 830 | end | |
| 831 | function rayCast(Pos, Dir, Max, Ignore) | |
| 832 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 833 | end | |
| 834 | function makegui(cframe, text, color) | |
| 835 | local c = Instance.new("Part")
| |
| 836 | c.Size = vt(0.2, 0.2, 0.2) | |
| 837 | c.Transparency = 1 | |
| 838 | Instance.new("BodyGyro").Parent = c
| |
| 839 | c.Parent = Effects | |
| 840 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
| 841 | local f = Instance.new("BodyPosition")
| |
| 842 | f.P = 2000 | |
| 843 | f.D = 100 | |
| 844 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
| 845 | f.position = c.Position + vt(0, 6, 0) | |
| 846 | f.Parent = c | |
| 847 | game:GetService("Debris"):AddItem(c, 5)
| |
| 848 | c.CanCollide = false | |
| 849 | c.Parent = workspace | |
| 850 | c.CanCollide = false | |
| 851 | local bg = Instance.new("BillboardGui", c)
| |
| 852 | bg.Adornee = c | |
| 853 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 854 | bg.StudsOffset = vt(-2, 2, 0) | |
| 855 | bg.AlwaysOnTop = false | |
| 856 | local tl = Instance.new("TextLabel", bg)
| |
| 857 | tl.BackgroundTransparency = 1 | |
| 858 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 859 | tl.Text = text | |
| 860 | tl.Font = Enum.Font.SourceSans | |
| 861 | tl.FontSize = Enum.FontSize.Size42 | |
| 862 | tl.TextColor3 = color | |
| 863 | tl.TextScaled = false | |
| 864 | tl.TextStrokeTransparency = 0 | |
| 865 | tl.TextScaled = true | |
| 866 | tl.TextWrapped = true | |
| 867 | f.Parent = c | |
| 868 | coroutine.resume(coroutine.create(function() | |
| 869 | wait(0.25) | |
| 870 | for i = 1, 5 do | |
| 871 | ArtificialHeartbeat.Event:wait() | |
| 872 | f.position = c.Position - vt(0, 0.5, 0) | |
| 873 | end | |
| 874 | end)) | |
| 875 | coroutine.resume(coroutine.create(function() | |
| 876 | wait(2) | |
| 877 | for i = 1, 10 do | |
| 878 | ArtificialHeartbeat.Event:wait() | |
| 879 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
| 880 | tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1 | |
| 881 | f.position = c.Position + vt(0, 0.5, 0) | |
| 882 | end | |
| 883 | c.Parent = nil | |
| 884 | end)) | |
| 885 | end | |
| 886 | local CritChance = Instance.new("NumberValue", Stats)
| |
| 887 | CritChance.Name = "CritChance" | |
| 888 | CritChance.Value = 1 | |
| 889 | local critchancenumber = 50 | |
| 890 | local cancrit = false | |
| 891 | local canpenetratearmor = false | |
| 892 | local cancollidewithhitbox = false | |
| 893 | local sethitblockvaluetofalse = true | |
| 894 | local antiteamkill = false | |
| 895 | local HitPlayerSounds = {
| |
| 896 | 199149137, | |
| 897 | 199149186, | |
| 898 | 199149221, | |
| 899 | 199149235, | |
| 900 | 199149269, | |
| 901 | 199149297 | |
| 902 | } | |
| 903 | local HitArmorSounds = {
| |
| 904 | 199149321, | |
| 905 | 199149338, | |
| 906 | 199149367, | |
| 907 | 199149409, | |
| 908 | 199149452 | |
| 909 | } | |
| 910 | local HitWeaponSounds = {
| |
| 911 | 199148971, | |
| 912 | 199149025, | |
| 913 | 199149072, | |
| 914 | 199149109, | |
| 915 | 199149119 | |
| 916 | } | |
| 917 | local HitBlockSounds = {199148933, 199148947}
| |
| 918 | function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 919 | if hit.Parent == nil then | |
| 920 | return | |
| 921 | end | |
| 922 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 923 | for _, v in pairs(hit.Parent:children()) do | |
| 924 | if v:IsA("Humanoid") then
| |
| 925 | h = v | |
| 926 | end | |
| 927 | end | |
| 928 | if antiteamkill == true then | |
| 929 | if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then | |
| 930 | opponent = game.Players:FindFirstChild(hit.Parent.Name) | |
| 931 | end | |
| 932 | if opponent ~= nil and opponent.TeamColor == Player.TeamColor then | |
| 933 | return | |
| 934 | end | |
| 935 | end | |
| 936 | if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
| |
| 937 | StaggerHitAnim.Value = true | |
| 938 | so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
| |
| 939 | return | |
| 940 | end | |
| 941 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 942 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 943 | end | |
| 944 | if hit.Parent.className == "Hat" then | |
| 945 | hit = hit.Parent.Parent:findFirstChild("Head")
| |
| 946 | end | |
| 947 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 948 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 949 | return | |
| 950 | end | |
| 951 | if hit.Parent:findFirstChild("Stats") ~= nil then
| |
| 952 | if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
| |
| 953 | hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
| |
| 954 | end | |
| 955 | elseif hit.Parent:findFirstChild("StunValue") ~= nil then
| |
| 956 | hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
| |
| 957 | end | |
| 958 | if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
| |
| 959 | hit.Parent:findFirstChild("StaggerAnim").Value = true
| |
| 960 | end | |
| 961 | if hit.Parent:findFirstChild("Stats") ~= nil then
| |
| 962 | if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
| |
| 963 | makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
| 964 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
| |
| 965 | if ranged ~= true then | |
| 966 | if sethitblockvaluetofalse == true then | |
| 967 | hit.Parent.Stats:findFirstChild("BlockValue").Value = false
| |
| 968 | end | |
| 969 | StaggerAnim.Value = true | |
| 970 | end | |
| 971 | return | |
| 972 | end | |
| 973 | elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
| |
| 974 | makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
| 975 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
| |
| 976 | if ranged ~= true then | |
| 977 | if sethitblockvaluetofalse == true then | |
| 978 | hit.Parent:findFirstChild("BlockValue").Value = false
| |
| 979 | end | |
| 980 | StaggerAnim.Value = true | |
| 981 | end | |
| 982 | return | |
| 983 | end | |
| 984 | local D = math.random(minim, maxim) * Damage.Value | |
| 985 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 986 | if hit.Parent.Stats:FindFirstChild("Defense") then
| |
| 987 | if canpenetratearmor == true then | |
| 988 | else | |
| 989 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 990 | end | |
| 991 | elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
| |
| 992 | end | |
| 993 | elseif hit.Parent:FindFirstChild("Defense") then
| |
| 994 | if canpenetratearmor == true then | |
| 995 | else | |
| 996 | D = D / hit.Parent:FindFirstChild("Defense").Value
| |
| 997 | end | |
| 998 | elseif hit.Parent:FindFirstChild("Defense") == nil then
| |
| 999 | end | |
| 1000 | if cancrit == true then | |
| 1001 | CritChance.Value = math.random(1, critchancenumber) | |
| 1002 | if CritChance.Value == critchancenumber then | |
| 1003 | D = D * 2 | |
| 1004 | end | |
| 1005 | end | |
| 1006 | h.Health = h.Health - D | |
| 1007 | if D <= 3 and staghit == true then | |
| 1008 | if ranged ~= true then | |
| 1009 | StaggerHitAnim.Value = true | |
| 1010 | end | |
| 1011 | so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
| |
| 1012 | elseif D > 3 and ranged ~= true then | |
| 1013 | so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
| |
| 1014 | end | |
| 1015 | if D > 2 and D < 20 then | |
| 1016 | if CritChance.Value == critchancenumber then | |
| 1017 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1018 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1019 | else | |
| 1020 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0)) | |
| 1021 | end | |
| 1022 | elseif D >= 20 then | |
| 1023 | if CritChance.Value == critchancenumber then | |
| 1024 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1025 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1026 | else | |
| 1027 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0)) | |
| 1028 | end | |
| 1029 | else | |
| 1030 | if D <= 2 then | |
| 1031 | if CritChance.Value == critchancenumber then | |
| 1032 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1033 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1034 | else | |
| 1035 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706)) | |
| 1036 | end | |
| 1037 | else | |
| 1038 | end | |
| 1039 | end | |
| 1040 | if Type == "Normal" then | |
| 1041 | vp = Instance.new("BodyVelocity")
| |
| 1042 | vp.P = 500 | |
| 1043 | vp.maxForce = vt(math.huge, 0, math.huge) | |
| 1044 | if KnockbackType == 1 then | |
| 1045 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1046 | elseif KnockbackType == 2 then | |
| 1047 | vp.velocity = Property.CFrame.lookVector * knockback | |
| 1048 | end | |
| 1049 | if knockback > 0 then | |
| 1050 | vp.Parent = hit.Parent.Torso | |
| 1051 | end | |
| 1052 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1053 | end | |
| 1054 | debounce = Instance.new("BoolValue")
| |
| 1055 | debounce.Name = "DebounceHit" | |
| 1056 | debounce.Parent = hit.Parent | |
| 1057 | debounce.Value = true | |
| 1058 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1059 | c = Instance.new("ObjectValue")
| |
| 1060 | c.Name = "creator" | |
| 1061 | c.Value = Player | |
| 1062 | c.Parent = h | |
| 1063 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1064 | end | |
| 1065 | end | |
| 1066 | function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff) | |
| 1067 | if Location[Stat] ~= nil then | |
| 1068 | Location[Stat].Value = Location[Stat].Value - Amount | |
| 1069 | if ShowDebuff == true then | |
| 1070 | if Location[Stat].Name == "Defense" then | |
| 1071 | makegui(CFrame, "-Defense", c3(1, 1, 1)) | |
| 1072 | elseif Location[Stat].Name == "Damage" then | |
| 1073 | makegui(CFrame, "-Damage", c3(1, 1, 1)) | |
| 1074 | elseif Location[Stat].Name == "Speed" then | |
| 1075 | makegui(CFrame, "-Movement", c3(1, 1, 1)) | |
| 1076 | end | |
| 1077 | end | |
| 1078 | coroutine.resume(coroutine.create(function() | |
| 1079 | wait(Duration) | |
| 1080 | Location[Stat].Value = Location[Stat].Value + Amount | |
| 1081 | end)) | |
| 1082 | end | |
| 1083 | end | |
| 1084 | function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff) | |
| 1085 | if Location[Stat] ~= nil then | |
| 1086 | Location[Stat].Value = Location[Stat].Value + Amount | |
| 1087 | if ShowBuff == true then | |
| 1088 | if Location[Stat].Name == "Defense" then | |
| 1089 | makegui(CFrame, "+Defense", c3(1, 1, 1)) | |
| 1090 | elseif Location[Stat].Name == "Damage" then | |
| 1091 | makegui(CFrame, "+Damage", c3(1, 1, 1)) | |
| 1092 | elseif Location[Stat].Name == "Speed" then | |
| 1093 | makegui(CFrame, "+Movement", c3(1, 1, 1)) | |
| 1094 | end | |
| 1095 | end | |
| 1096 | coroutine.resume(coroutine.create(function() | |
| 1097 | wait(Duration) | |
| 1098 | Location[Stat].Value = Location[Stat].Value - Amount | |
| 1099 | end)) | |
| 1100 | end | |
| 1101 | end | |
| 1102 | function GetDist(Part1, Part2, magni) | |
| 1103 | local targ = Part1.Position - Part2.Position | |
| 1104 | local mag = targ.magnitude | |
| 1105 | if magni >= mag then | |
| 1106 | return true | |
| 1107 | else | |
| 1108 | return false | |
| 1109 | end | |
| 1110 | end | |
| 1111 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 1112 | for _, c in pairs(workspace:children()) do | |
| 1113 | local hum = c:findFirstChild("Humanoid")
| |
| 1114 | if hum ~= nil then | |
| 1115 | local head = c:findFirstChild("Torso")
| |
| 1116 | if head ~= nil then | |
| 1117 | local targ = head.Position - Part.Position | |
| 1118 | local mag = targ.magnitude | |
| 1119 | if magni >= mag and c.Name ~= Player.Name then | |
| 1120 | Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 1121 | end | |
| 1122 | end | |
| 1123 | end | |
| 1124 | end | |
| 1125 | end | |
| 1126 | function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last) | |
| 1127 | local magz = (p0 - p1).magnitude | |
| 1128 | local curpos = p0 | |
| 1129 | local trz = {
| |
| 1130 | -ofs, | |
| 1131 | ofs | |
| 1132 | } | |
| 1133 | for i = 1, tym do | |
| 1134 | do | |
| 1135 | local li = Instance.new("Part", workspace)
| |
| 1136 | li.TopSurface = 0 | |
| 1137 | li.BottomSurface = 0 | |
| 1138 | li.Anchored = true | |
| 1139 | li.Transparency = tra or 0.4 | |
| 1140 | li.BrickColor = brickcolor | |
| 1141 | li.formFactor = "Custom" | |
| 1142 | li.CanCollide = false | |
| 1143 | li.Size = vt(th, th, magz / tym) | |
| 1144 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 1145 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
| 1146 | if tym == i then | |
| 1147 | local magz2 = (curpos - p1).magnitude | |
| 1148 | li.Size = vt(th, th, magz2)*4 | |
| 1149 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 1150 | else | |
| 1151 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
| 1152 | end | |
| 1153 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
| 1154 | game.Debris:AddItem(li, last) | |
| 1155 | coroutine.resume(coroutine.create(function() | |
| 1156 | while li.Transparency ~= 1 do | |
| 1157 | for i = 0, 1, last do | |
| 1158 | ArtificialHeartbeat.Event:wait() | |
| 1159 | li.Transparency = li.Transparency + 0.1 / last | |
| 1160 | end | |
| 1161 | end | |
| 1162 | end)) | |
| 1163 | end | |
| 1164 | end | |
| 1165 | end | |
| 1166 | function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1167 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1168 | prt.Anchored = true | |
| 1169 | prt.CFrame = cframe | |
| 1170 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1171 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1172 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1173 | for i = 0, 1, delay do | |
| 1174 | ArtificialHeartbeat.Event:wait() | |
| 1175 | Part.CFrame = Part.CFrame | |
| 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 | function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1183 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1184 | prt.Anchored = true | |
| 1185 | prt.CFrame = cframe | |
| 1186 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1187 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1188 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1189 | for i = 0, 1, delay do | |
| 1190 | ArtificialHeartbeat.Event:wait() | |
| 1191 | Part.CFrame = Part.CFrame | |
| 1192 | Part.Transparency = i | |
| 1193 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1194 | end | |
| 1195 | Part.Parent = nil | |
| 1196 | end), prt, msh) | |
| 1197 | end | |
| 1198 | function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1199 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1200 | prt.Anchored = true | |
| 1201 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1202 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1203 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1204 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1205 | for i = 0, 1, delay do | |
| 1206 | ArtificialHeartbeat.Event:wait() | |
| 1207 | if rotate == true then | |
| 1208 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1209 | else | |
| 1210 | end | |
| 1211 | Part.Transparency = i | |
| 1212 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1213 | end | |
| 1214 | Part.Parent = nil | |
| 1215 | end), prt, msh) | |
| 1216 | end | |
| 1217 | function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1218 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1219 | prt.Anchored = true | |
| 1220 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1221 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1222 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1223 | CF = prt.CFrame | |
| 1224 | num = math.random(5, 20) | |
| 1225 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 1226 | for i = 0, 1, delay do | |
| 1227 | ArtificialHeartbeat.Event:wait() | |
| 1228 | if rotate == true then | |
| 1229 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1230 | else | |
| 1231 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 1232 | end | |
| 1233 | Part.Transparency = i | |
| 1234 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1235 | end | |
| 1236 | Part.Parent = nil | |
| 1237 | end), prt, msh, CF, num) | |
| 1238 | end | |
| 1239 | function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1240 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1241 | prt.Anchored = true | |
| 1242 | prt.CFrame = cframe | |
| 1243 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1244 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1245 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1246 | for i = 0, 1, delay do | |
| 1247 | ArtificialHeartbeat.Event:wait() | |
| 1248 | Part.Transparency = i | |
| 1249 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1250 | end | |
| 1251 | Part.Parent = nil | |
| 1252 | end), prt, msh) | |
| 1253 | end | |
| 1254 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1255 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1256 | prt.Anchored = true | |
| 1257 | prt.CFrame = cframe | |
| 1258 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1259 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1260 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1261 | for i = 0, 1, delay do | |
| 1262 | ArtificialHeartbeat.Event:wait() | |
| 1263 | Part.Transparency = i | |
| 1264 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1265 | end | |
| 1266 | Part.Parent = nil | |
| 1267 | end), prt, msh) | |
| 1268 | end | |
| 1269 | function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay) | |
| 1270 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1271 | prt.Anchored = true | |
| 1272 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1273 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1274 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1275 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1276 | CF = Part.CFrame | |
| 1277 | Numbb = 0 | |
| 1278 | randnumb = math.random() - math.random() | |
| 1279 | for i = 0, 1, delay do | |
| 1280 | ArtificialHeartbeat.Event:wait() | |
| 1281 | CF = CF * cf(0, 1, 0) | |
| 1282 | if rotate == true then | |
| 1283 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1284 | elseif rotate == false then | |
| 1285 | Part.CFrame = CF | |
| 1286 | end | |
| 1287 | Part.Transparency = i | |
| 1288 | Numbb = Numbb + randnumb | |
| 1289 | end | |
| 1290 | Part.Parent = nil | |
| 1291 | end), prt, CF, Numbb, randnumb) | |
| 1292 | end | |
| 1293 | function ElecEffect(brickcolor, cf, x, y, z, delay) | |
| 1294 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1295 | prt.Anchored = true | |
| 1296 | prt.CFrame = cf | |
| 1297 | xval = math.random() | |
| 1298 | yval = math.random() | |
| 1299 | zval = math.random() | |
| 1300 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)*4)
| |
| 1301 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1302 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1303 | for i = 0, 1, delay do | |
| 1304 | ArtificialHeartbeat.Event:wait() | |
| 1305 | Part.CFrame = Part.CFrame | |
| 1306 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1307 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1308 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1309 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1310 | Part.Transparency = i | |
| 1311 | end | |
| 1312 | Part.Parent = nil | |
| 1313 | end), prt, msh, xval, yval, zval) | |
| 1314 | end | |
| 1315 | function subtractmana(k) | |
| 1316 | if k <= mana then | |
| 1317 | mana = mana - k | |
| 1318 | end | |
| 1319 | end | |
| 1320 | local idleangle = 0 | |
| 1321 | local idlen = 0 | |
| 1322 | local donum = 0 | |
| 1323 | local sine = 0 | |
| 1324 | local change = 1 | |
| 1325 | local val = 0 | |
| 1326 | local walkinganim = false | |
| 1327 | local handidle = false | |
| 1328 | local walk = 0 | |
| 1329 | local someangle = 0 | |
| 1330 | local change2 = 1 | |
| 1331 | local stundelay = 0 | |
| 1332 | local manadelay = 0 | |
| 1333 | local dieanim = false | |
| 1334 | local robloxidleanimation = Instance.new("Animation", Torso)
| |
| 1335 | robloxidleanimation.Name = "robloxidleanimation" | |
| 1336 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 1337 | Animator = Humanoid:findFirstChild("Animator")
| |
| 1338 | Animate = Character:findFirstChild("Animate")
| |
| 1339 | Running = Head:FindFirstChild("Running")
| |
| 1340 | if Running ~= nil then | |
| 1341 | Running.Volume = 0 | |
| 1342 | end | |
| 1343 | local startequipped = false | |
| 1344 | local startequippedwithequipanimation = true | |
| 1345 | local disableanimator = true | |
| 1346 | local disableanimate = false | |
| 1347 | local alternatewalk = false | |
| 1348 | local customwalk = false | |
| 1349 | local hidemenu = false | |
| 1350 | local allowmenutofunction = false | |
| 1351 | local allowabilitestofunction = false | |
| 1352 | local canunequiporequip = false | |
| 1353 | local allowidle = false | |
| 1354 | local allowwalking = false | |
| 1355 | local disablemovingarms = false | |
| 1356 | local usemotorsinsteadofwelds = false | |
| 1357 | local leftarm = false | |
| 1358 | local rightarm = false | |
| 1359 | local allowhopperbin = false | |
| 1360 | local allowstunbar = false | |
| 1361 | local walkspeeddependsonspeedvalue = true | |
| 1362 | local alternatemanaregensystem = false | |
| 1363 | local showhealthmanaandstunnumbers = false | |
| 1364 | local changebarcolorsifnotenoughmana = false | |
| 1365 | local disablejumpifstaggeredorstunned = false | |
| 1366 | if hidemenu == true then | |
| 1367 | for _, v in pairs(scrn:children()) do | |
| 1368 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1369 | v.Visible = false | |
| 1370 | end | |
| 1371 | end | |
| 1372 | end | |
| 1373 | if disablejumpifstaggeredorstunned == true then | |
| 1374 | Humanoid.Changed:connect(function(Jump) | |
| 1375 | if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then | |
| 1376 | Humanoid.Jump = false | |
| 1377 | end | |
| 1378 | end) | |
| 1379 | end | |
| 1380 | if allowmenutofunction == true then | |
| 1381 | for _, v in pairs(scrn:GetChildren()) do | |
| 1382 | if v.ClassName == "Frame" then | |
| 1383 | for _, b in pairs(v:GetChildren()) do | |
| 1384 | if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then | |
| 1385 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1386 | wait(menuupdatespeed) | |
| 1387 | for i = 1, 0, -0.1 do | |
| 1388 | ArtificialHeartbeat.Event:wait() | |
| 1389 | TheTextLabel.TextTransparency = i | |
| 1390 | TheTextLabel.TextStrokeTransparency = i | |
| 1391 | end | |
| 1392 | TheTextLabel.TextTransparency = 0 | |
| 1393 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1394 | end), b) | |
| 1395 | end | |
| 1396 | end | |
| 1397 | end | |
| 1398 | end | |
| 1399 | end | |
| 1400 | if allowmenutofunction == true and allowabilitestofunction == true then | |
| 1401 | for _, v in pairs(scrn:GetChildren()) do | |
| 1402 | if v.ClassName == "Frame" then | |
| 1403 | for _, b in pairs(v:GetChildren()) do | |
| 1404 | if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then | |
| 1405 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1406 | wait(menuupdatespeed) | |
| 1407 | for i = 1, 0, -0.1 do | |
| 1408 | ArtificialHeartbeat.Event:wait() | |
| 1409 | TheTextLabel.TextTransparency = i | |
| 1410 | TheTextLabel.TextStrokeTransparency = i | |
| 1411 | end | |
| 1412 | TheTextLabel.TextTransparency = 0 | |
| 1413 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1414 | end), b) | |
| 1415 | end | |
| 1416 | end | |
| 1417 | end | |
| 1418 | end | |
| 1419 | end | |
| 1420 | if allowhopperbin == true then | |
| 1421 | if script.Parent.className ~= "HopperBin" then | |
| 1422 | Tool = Instance.new("HopperBin")
| |
| 1423 | Tool.Parent = Backpack | |
| 1424 | Tool.Name = "Weapon Name" | |
| 1425 | script.Parent = Tool | |
| 1426 | end | |
| 1427 | Bin = script.Parent | |
| 1428 | end | |
| 1429 | if disablemovingarms == true then | |
| 1430 | RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1431 | LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1432 | RSH, LSH = nil, nil | |
| 1433 | if usemotorsinsteadofwelds == true then | |
| 1434 | RW = Instance.new("Motor")
| |
| 1435 | LW = Instance.new("Motor")
| |
| 1436 | else | |
| 1437 | RW = Instance.new("Weld")
| |
| 1438 | LW = Instance.new("Weld")
| |
| 1439 | end | |
| 1440 | RW.Name = "Right Shoulder" | |
| 1441 | LW.Name = "Left Shoulder" | |
| 1442 | RSH = Torso["Right Shoulder"] | |
| 1443 | LSH = Torso["Left Shoulder"] | |
| 1444 | RSH.Parent = Torso | |
| 1445 | LSH.Parent = Torso | |
| 1446 | RW.Name = "Right Shoulder" | |
| 1447 | RW.Part0 = Torso | |
| 1448 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1449 | RW.C1 = cf(0, 0.5, 0) | |
| 1450 | RW.Part1 = Character["Right Arm"] | |
| 1451 | RW.Parent = nil | |
| 1452 | LW.Name = "Left Shoulder" | |
| 1453 | LW.Part0 = Torso | |
| 1454 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1455 | LW.C1 = cf(0, 0.5, 0) | |
| 1456 | LW.Part1 = Character["Left Arm"] | |
| 1457 | LW.Parent = nil | |
| 1458 | else | |
| 1459 | RW = Torso["Right Shoulder"] | |
| 1460 | LW = Torso["Left Shoulder"] | |
| 1461 | LH = Torso["Left Hip"] | |
| 1462 | RH = Torso["Right Hip"] | |
| 1463 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
| 1464 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
| 1465 | end | |
| 1466 | if allowidle == true then | |
| 1467 | coroutine.resume(coroutine.create(function() | |
| 1468 | while true do | |
| 1469 | for i = 0, 1, 0.08 do | |
| 1470 | wait() | |
| 1471 | idleangle = idleangle + 0.005 * idlen | |
| 1472 | idlen = idlen - 0.1 | |
| 1473 | end | |
| 1474 | idlen = 0 | |
| 1475 | for i = 0, 1, 0.08 do | |
| 1476 | wait() | |
| 1477 | idleangle = idleangle - 0.005 * idlen | |
| 1478 | idlen = idlen - 0.1 | |
| 1479 | end | |
| 1480 | idlen = 0 | |
| 1481 | idleangle = 0 | |
| 1482 | - | Chat("my soul hurts...")
|
| 1482 | + | |
| 1483 | end)) | |
| 1484 | end | |
| 1485 | function equipanim() | |
| 1486 | - | Chat("but i can feel it now...")
|
| 1486 | + | |
| 1487 | local equipvelocity = Instance.new("BodyVelocity", Torso)
| |
| 1488 | - | Chat("the power darkness...")
|
| 1488 | + | |
| 1489 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1490 | equipvelocity.Velocity = Vector3.new(0, 0.1, 0) | |
| 1491 | if intro == true then | |
| 1492 | - | Chat("the lost feeling...")
|
| 1492 | + | |
| 1493 | for i = 0, 1, 0.02 do | |
| 1494 | ArtificialHeartbeat.Event:wait() | |
| 1495 | ||
| 1496 | - | Chat("the feeling of being free")
|
| 1496 | + | |
| 1497 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1498 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(40), math.rad(-10)) * RWC0, 0.15) | |
| 1499 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1500 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1501 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.15) | |
| 1502 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1503 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1504 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1505 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1506 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1507 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1508 | end | |
| 1509 | wait(1) | |
| 1510 | end | |
| 1511 | for i = 0, 1, 0.02 do | |
| 1512 | ArtificialHeartbeat.Event:wait() | |
| 1513 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), 15, 15, 15, 0.5, 0.5, 0.5, 0.04) | |
| 1514 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
| 1515 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1516 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1517 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1518 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1519 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1520 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1521 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1522 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1523 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1524 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1525 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1526 | end | |
| 1527 | for i = 0, 1, 0.02 do | |
| 1528 | ArtificialHeartbeat.Event:wait() | |
| 1529 | ||
| 1530 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
| 1531 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1532 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1533 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1534 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1535 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1536 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1537 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1538 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1539 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1540 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1541 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1542 | end | |
| 1543 | if intro == true then | |
| 1544 | Chat("...")
| |
| 1545 | wait(4) | |
| 1546 | Chat("ugh...")
| |
| 1547 | wait(4) | |
| 1548 | Chat("...")
| |
| 1549 | wait(2) | |
| 1550 | Chat("Ive been hurt...")
| |
| 1551 | wait(4) | |
| 1552 | Chat("...")
| |
| 1553 | wait(4) | |
| 1554 | Chat("...heh")
| |
| 1555 | wait(2) | |
| 1556 | Chat("Some thing isnt right...")
| |
| 1557 | wait(2) | |
| 1558 | Chat("...run")
| |
| 1559 | wait(2) | |
| 1560 | Chat("Run before its too late.")
| |
| 1561 | wait(2.1) | |
| 1562 | end | |
| 1563 | coroutine.resume(coroutine.create(function() | |
| 1564 | for i = 0, 1, 0.1 do | |
| 1565 | wait() | |
| 1566 | outerbeingtransparency = outerbeingtransparency - 0.05 | |
| 1567 | end | |
| 1568 | outerbeingtransparency = 0.5 | |
| 1569 | end)) | |
| 1570 | ||
| 1571 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
| 1572 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
| 1573 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
| 1574 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
| |
| 1575 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
| |
| 1576 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
| |
| 1577 | so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
| |
| 1578 | newface() | |
| 1579 | local BC = char["Body Colors"] | |
| 1580 | BC.HeadColor = BrickColor.new("Black")
| |
| 1581 | BC.LeftArmColor = BrickColor.new("Black")
| |
| 1582 | BC.LeftLegColor = BrickColor.new("Black")
| |
| 1583 | BC.RightArmColor = BrickColor.new("Black")
| |
| 1584 | BC.RightLegColor = BrickColor.new("Black")
| |
| 1585 | BC.TorsoColor = BrickColor.new("Black")
| |
| 1586 | ||
| 1587 | local HBill = Instance.new("BillboardGui", hed)
| |
| 1588 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 1589 | local HHealth, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
| |
| 1590 | local HText, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
| |
| 1591 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 1592 | HBill.Name = "Health Display" | |
| 1593 | HBill.StudsOffset = Vector3.new(0,13,0) | |
| 1594 | HBill.AlwaysOnTop = true | |
| 1595 | HBill.Enabled = true | |
| 1596 | ||
| 1597 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 1598 | HMain.BackgroundTransparency = 0.8 | |
| 1599 | HMain.Size = UDim2.new(1,0,1,0) | |
| 1600 | HBarBack.Parent = HMain | |
| 1601 | HBarBack.BackgroundColor3 = Color3.new(.5,0,1) | |
| 1602 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 1603 | HBarBack.BorderSizePixel = 2 | |
| 1604 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 1605 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 1606 | ||
| 1607 | ||
| 1608 | ||
| 1609 | ||
| 1610 | ||
| 1611 | ||
| 1612 | ||
| 1613 | ||
| 1614 | ||
| 1615 | HHealth.BackgroundTransparency = 1 | |
| 1616 | HHealth.Size = UDim2.new(1,0,0.5,0) | |
| 1617 | HHealth.Font = "Code" | |
| 1618 | HHealth.TextScaled = true | |
| 1619 | HHealth.TextColor3 = Color3.new(1,1,1) | |
| 1620 | HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 1621 | HHealth.TextStrokeTransparency = 0 | |
| 1622 | ||
| 1623 | ||
| 1624 | ||
| 1625 | ||
| 1626 | ||
| 1627 | ||
| 1628 | ||
| 1629 | ||
| 1630 | HName.Parent = HMain | |
| 1631 | HName.BackgroundTransparency = 1 | |
| 1632 | HName.Size = UDim2.new(1,0,.3,0) | |
| 1633 | HName.Font = "Code" | |
| 1634 | HName.Text = "" | |
| 1635 | HName.TextScaled = true | |
| 1636 | HName.TextColor3 = BrickColor.new("Forest green").Color
| |
| 1637 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1638 | HName.TextStrokeTransparency = 0 | |
| 1639 | HName.TextYAlignment = "Top" | |
| 1640 | HName.Position = UDim2.new(0, 0, 0, 0) | |
| 1641 | ||
| 1642 | ||
| 1643 | ||
| 1644 | ||
| 1645 | ||
| 1646 | ||
| 1647 | ||
| 1648 | ||
| 1649 | Humanoid = char.Humanoid | |
| 1650 | ||
| 1651 | function GainCharge(Humanoid) | |
| 1652 | HHealth.Text = ""..Humanoid.Health.." HP" | |
| 1653 | if Humanoid.Health < 100 and dieanim == false then | |
| 1654 | HHealth.Text = "0 HP" | |
| 1655 | end | |
| 1656 | HBill.Frame.Frame.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,.3,0) | |
| 1657 | if Humanoid.Health >= Humanoid.MaxHealth/2 then | |
| 1658 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.5,0,1) | |
| 1659 | elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then | |
| 1660 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.2,0,1) | |
| 1661 | elseif Humanoid.Health <= Humanoid.MaxHealth/4 then | |
| 1662 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(0,0,0) | |
| 1663 | end | |
| 1664 | ||
| 1665 | end | |
| 1666 | ||
| 1667 | Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) | |
| 1668 | HHealth.Text = ""..Humanoid.Health.." HP" | |
| 1669 | for i = 0, 1, 0.02 do | |
| 1670 | ArtificialHeartbeat.Event:wait() | |
| 1671 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1672 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1673 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15) | |
| 1674 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15) | |
| 1675 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1676 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1677 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1678 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1679 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1680 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1681 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1682 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1683 | end | |
| 1684 | ||
| 1685 | equipvelocity:Destroy() | |
| 1686 | Speed.Value = Speed.Value - 0.1 | |
| 1687 | Defense.Value = Defense.Value + 0.4 | |
| 1688 | attack = false | |
| 1689 | ||
| 1690 | ||
| 1691 | wait(.1) | |
| 1692 | Music2:Stop() | |
| 1693 | Music1:Play() | |
| 1694 | end | |
| 1695 | function unequipanim() | |
| 1696 | attack = true | |
| 1697 | coroutine.resume(coroutine.create(function() | |
| 1698 | Humanoid.MaxHealth = math.huge | |
| 1699 | wait(0.1) | |
| 1700 | Humanoid.Health = Humanoid.MaxHealth | |
| 1701 | end)) | |
| 1702 | local equipvelocity = Instance.new("BodyVelocity", Torso)
| |
| 1703 | equipvelocity.P = 500 | |
| 1704 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1705 | equipvelocity.Velocity = Vector3.new(0, 1, 0) | |
| 1706 | so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
| |
| 1707 | for i = 0, 1, 0.005 do | |
| 1708 | ArtificialHeartbeat.Event:wait() | |
| 1709 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
| 1710 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05) | |
| 1711 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15) | |
| 1712 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1713 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1714 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1715 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1716 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1717 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1718 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1719 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1720 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1721 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1722 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1723 | end | |
| 1724 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
| 1725 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
| 1726 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
| |
| 1727 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
| |
| 1728 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
| |
| 1729 | for i = 1, 2 do | |
| 1730 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
| |
| 1731 | so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
| |
| 1732 | end | |
| 1733 | Chat("AAAAAAAAAAAAAAAAAAHHHHH!!!")
| |
| 1734 | coroutine.resume(coroutine.create(function() | |
| 1735 | for i = 0, 1, 0.01 do | |
| 1736 | tran = tran + 0.1 | |
| 1737 | ||
| 1738 | ||
| 1739 | ||
| 1740 | for i,v in pairs(Character:GetChildren()) do | |
| 1741 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
| 1742 | Glow1 = Color3.new(.5,0,1) | |
| 1743 | Glow2 = Color3.new(0,0,0) | |
| 1744 | ||
| 1745 | ||
| 1746 | ||
| 1747 | ||
| 1748 | v.ParticleEmitter.Transparency = NumberSequence.new(tran,1) | |
| 1749 | ||
| 1750 | end end | |
| 1751 | ||
| 1752 | ||
| 1753 | ||
| 1754 | wait() | |
| 1755 | outerbeingtransparency = outerbeingtransparency + 0.005 | |
| 1756 | end | |
| 1757 | outerbeingtransparency = 1 | |
| 1758 | end)) | |
| 1759 | Face.Transparency = 1 | |
| 1760 | for _, v in pairs(Character:children()) do | |
| 1761 | if v:IsA("Part") and v.ClassName ~= "Model" then
| |
| 1762 | coroutine.resume(coroutine.create(function(Part) | |
| 1763 | for i = 0, 1, 0.01 do | |
| 1764 | wait() | |
| 1765 | Part.Transparency = Part.Transparency + 0.01 | |
| 1766 | end | |
| 1767 | Part.Anchored = true | |
| 1768 | Part.Transparency = 1 | |
| 1769 | end), v) | |
| 1770 | elseif v:IsA("Hat") then
| |
| 1771 | coroutine.resume(coroutine.create(function(Hat) | |
| 1772 | for i = 0, 1, 0.01 do | |
| 1773 | wait() | |
| 1774 | Hat.Transparency = Hat.Transparency + 0.01 | |
| 1775 | end | |
| 1776 | Hat.Anchored = true | |
| 1777 | Hat.Transparency = 1 | |
| 1778 | end), v.Handle) | |
| 1779 | end | |
| 1780 | end | |
| 1781 | local deathnum = 0 | |
| 1782 | for i = 0, 1, 0.005 do | |
| 1783 | ArtificialHeartbeat.Event:wait() | |
| 1784 | if deathnum >= 10 then | |
| 1785 | deathnum = 0 | |
| 1786 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 1787 | refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)) | |
| 1788 | refpart.Anchored = true | |
| 1789 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 1790 | MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01) | |
| 1791 | MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01) | |
| 1792 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
| |
| 1793 | end | |
| 1794 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05) | |
| 1795 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15) | |
| 1796 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15) | |
| 1797 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15) | |
| 1798 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15) | |
| 1799 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15) | |
| 1800 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15) | |
| 1801 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1802 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1803 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1804 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1805 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1806 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1807 | deathnum = deathnum + 1 | |
| 1808 | end | |
| 1809 | Humanoid.MaxHealth = 0 | |
| 1810 | Humanoid.Health = 0 | |
| 1811 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
| 1812 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008) | |
| 1813 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008) | |
| 1814 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
| |
| 1815 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
| |
| 1816 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
| |
| 1817 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
| |
| 1818 | attack = false | |
| 1819 | end | |
| 1820 | if startequipped == true then | |
| 1821 | equipped = true | |
| 1822 | if disableanimate == true then | |
| 1823 | Animate.Disabled = true | |
| 1824 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1825 | idleanimation:Play() | |
| 1826 | end | |
| 1827 | if disableanimator == true then | |
| 1828 | Animator.Parent = nil | |
| 1829 | end | |
| 1830 | if disablemovingarms == true then | |
| 1831 | RW.Parent = Torso | |
| 1832 | LW.Parent = Torso | |
| 1833 | RSH.Parent = nil | |
| 1834 | LSH.Parent = nil | |
| 1835 | end | |
| 1836 | Speed.Value = Speed.Value - 0.1 | |
| 1837 | Defense.Value = Defense.Value + 0.4 | |
| 1838 | elseif startequippedwithequipanimation == true then | |
| 1839 | equipped = true | |
| 1840 | if disableanimate == true then | |
| 1841 | Animate.Disabled = true | |
| 1842 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1843 | idleanimation:Play() | |
| 1844 | end | |
| 1845 | if disableanimator == true then | |
| 1846 | Animator.Parent = nil | |
| 1847 | end | |
| 1848 | if disablemovingarms == true then | |
| 1849 | RW.Parent = Torso | |
| 1850 | LW.Parent = Torso | |
| 1851 | RSH.Parent = nil | |
| 1852 | LSH.Parent = nil | |
| 1853 | end | |
| 1854 | equipanim() | |
| 1855 | end | |
| 1856 | function StaggerHit() | |
| 1857 | attack = true | |
| 1858 | attack = false | |
| 1859 | end | |
| 1860 | function Stagger() | |
| 1861 | attack = true | |
| 1862 | attack = false | |
| 1863 | end | |
| 1864 | function Stun() | |
| 1865 | attack = true | |
| 1866 | attack = false | |
| 1867 | end | |
| 1868 | function EAbility() | |
| 1869 | attack = true | |
| 1870 | attack = false | |
| 1871 | end | |
| 1872 | function attackone() | |
| 1873 | attack = true | |
| 1874 | ||
| 1875 | --[[ | |
| 1876 | local equipvelocity3 = Instance.new("BodyVelocity", Torso)
| |
| 1877 | equipvelocity3.P = 500 | |
| 1878 | equipvelocity3.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1879 | equipvelocity3.Velocity = Vector3.new(0, 0, 0) | |
| 1880 | game:GetService("Debris"):AddItem(equipvelocity3, 1)
| |
| 1881 | ||
| 1882 | --]] | |
| 1883 | local oldspeedvalue = Speed.Value | |
| 1884 | Speed.Value = .1 | |
| 1885 | ||
| 1886 | for i = 0, 0.5, .02 do | |
| 1887 | ArtificialHeartbeat.Event:wait() | |
| 1888 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.1) | |
| 1889 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1890 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(50)) * RWC0, 0.15) | |
| 1891 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(-50)) * LWC0, 0.15) | |
| 1892 | ||
| 1893 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15) | |
| 1894 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 1895 | ||
| 1896 | ||
| 1897 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1898 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1899 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1900 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1901 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1902 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1903 | end | |
| 1904 | ||
| 1905 | --------------------------------- | |
| 1906 | for i = 0, .2, .02 do | |
| 1907 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 1908 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 1909 | ArtificialHeartbeat.Event:wait() | |
| 1910 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
| 1911 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1912 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1913 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1914 | ||
| 1915 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1916 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
| 1917 | ||
| 1918 | ||
| 1919 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1920 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1921 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1922 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1923 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
| 1924 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1925 | end | |
| 1926 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 1927 | refpart4.CFrame = RootPart.CFrame * cf(0, 0, -17) | |
| 1928 | game:GetService("Debris"):AddItem(refpart4, 1)
| |
| 1929 | MagniDamage(refpart4, 10, 5, 20, math.random(1, 10), "Normal", 0, 1, 0, nil, true, true) | |
| 1930 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 1931 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 1932 | ---------------------------------------- | |
| 1933 | for i = 0, .5, .02 do | |
| 1934 | ||
| 1935 | ArtificialHeartbeat.Event:wait() | |
| 1936 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
| 1937 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1938 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1939 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1940 | ||
| 1941 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1942 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
| 1943 | ||
| 1944 | ||
| 1945 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1946 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1947 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1948 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1949 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
| 1950 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1951 | end | |
| 1952 | ---------------------------------------- | |
| 1953 | Speed.Value = oldspeedvalue | |
| 1954 | --]] | |
| 1955 | ||
| 1956 | attack = false | |
| 1957 | end | |
| 1958 | function attacktwo() | |
| 1959 | attack = true | |
| 1960 | local oldspeedvalue = Speed.Value | |
| 1961 | Speed.Value = .2 | |
| 1962 | ||
| 1963 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
| |
| 1964 | for i = 0, 1, 0.05 do | |
| 1965 | ArtificialHeartbeat.Event:wait() | |
| 1966 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1967 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 1968 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 1969 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 1970 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15) | |
| 1971 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 1972 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1973 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1974 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1975 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1976 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 1.5, 0), 0.15) | |
| 1977 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1978 | end | |
| 1979 | for i = 0, 0.5, 0.05 do | |
| 1980 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
| 1981 | ArtificialHeartbeat.Event:wait() | |
| 1982 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 1983 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 1984 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
| 1985 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
| 1986 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
| 1987 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 1988 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1989 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1990 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1991 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1992 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
| 1993 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1994 | end | |
| 1995 | Speed.Value = .0 | |
| 1996 | local refpart4 = part(3, Effects, "Neon", 0, 0, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 1997 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 1998 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 1999 | MagniDamage(refpart4, 15, 10, 30, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2000 | MagicBlock(CustomColor, true, refpart4.CFrame * cf(0, -0, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2001 | MagicRing(CustomColor, refpart4.CFrame* cf(1, 1, 0) * angles(math.rad(90), math.rad(math.random(-0, 0)), math.rad(math.random(-0, 0))), 1, 1, 20, 1.1, 1.1, -0.5, 0.03) | |
| 2002 | for i = 0, 0.5, 0.05 do | |
| 2003 | ||
| 2004 | ArtificialHeartbeat.Event:wait() | |
| 2005 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 2006 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2007 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
| 2008 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
| 2009 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
| 2010 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2011 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2012 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2013 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2014 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2015 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
| 2016 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2017 | end | |
| 2018 | ---------------------------------------- | |
| 2019 | ------------------------------ | |
| 2020 | Speed.Value = oldspeedvalue | |
| 2021 | attack = false | |
| 2022 | end | |
| 2023 | function attackthree() | |
| 2024 | attack = true | |
| 2025 | local oldspeedvalue = Speed.Value | |
| 2026 | Speed.Value = .1 | |
| 2027 | for i = 0, .5, 0.05 do | |
| 2028 | ArtificialHeartbeat.Event:wait() | |
| 2029 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2030 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
| 2031 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(20), math.rad(90)) * RWC0, 0.10) | |
| 2032 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2033 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2034 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2035 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2036 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2037 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2038 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2039 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2040 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2041 | end | |
| 2042 | ||
| 2043 | Speed.Value = 0 | |
| 2044 | for i = 0, .5, 0.05 do | |
| 2045 | ArtificialHeartbeat.Event:wait() | |
| 2046 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2047 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2048 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
| 2049 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(10), math.rad(90)) * RWC0, 0.15) | |
| 2050 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2051 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2052 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2053 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2054 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2055 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2056 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2057 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2058 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2059 | end | |
| 2060 | ||
| 2061 | local orbnumber = math.random(2, 2) | |
| 2062 | coroutine.resume(coroutine.create(function() | |
| 2063 | for i = 1, orbnumber do | |
| 2064 | wait(.1) | |
| 2065 | local orbblastpart = part(3, Effects, "Neon", 0, 1, CustomColor, "Effect", vt()) | |
| 2066 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
| |
| 2067 | orbblastpart.Anchored = true | |
| 2068 | game:GetService("Debris"):AddItem(orbblastpart, 5)
| |
| 2069 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
| 2070 | ||
| 2071 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
| |
| 2072 | coroutine.resume(coroutine.create(function(Part) | |
| 2073 | wait() | |
| 2074 | local spread = vt(math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
| 2075 | local TheHit = Part.Position + vt(0, -1, 0) | |
| 2076 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
| 2077 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
| 2078 | local mag = (rightarm2.Position - pos).magnitude | |
| 2079 | MagicCylinder(CustomColor, cf((rightarm2.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, -1.5, 0, -1.5, 0.08) | |
| 2080 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
| 2081 | Part.Parent = nil | |
| 2082 | if hit ~= nil then | |
| 2083 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2084 | refpart.CFrame = cf(pos) | |
| 2085 | refpart.Anchored = true | |
| 2086 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2087 | ||
| 2088 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
| 2089 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
| 2090 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
| |
| 2091 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2092 | MagniDamage(refpart, 10, 5, 8, 0, "Normal", 0, 1, 0, nil, true, true) | |
| 2093 | end | |
| 2094 | end), orbblastpart) | |
| 2095 | end | |
| 2096 | ||
| 2097 | end)) | |
| 2098 | ||
| 2099 | for i = 0, 1, 0.05 do | |
| 2100 | ArtificialHeartbeat.Event:wait() | |
| 2101 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2102 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2103 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2104 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * RWC0, 0.15) | |
| 2105 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2106 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2107 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2108 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2109 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2110 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2111 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2112 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2113 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2114 | end | |
| 2115 | Speed.Value = oldspeedvalue | |
| 2116 | attack = false | |
| 2117 | end | |
| 2118 | function attackfour() | |
| 2119 | attack = true | |
| 2120 | for i = 0, 0.8, 0.05 do | |
| 2121 | ArtificialHeartbeat.Event:wait() | |
| 2122 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 6 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.15) | |
| 2123 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2124 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2125 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-60), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2126 | RH.C0 = clerp(RH.C0, cf(.99, -0.0 - idleangle, -.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2127 | LH.C0 = clerp(LH.C0, cf(-.99, -1.5 - idleangle, -.2) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.15) | |
| 2128 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2129 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2130 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2131 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2132 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2, 0, 0), 0.15) | |
| 2133 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(1, 4, 0), 0.15) | |
| 2134 | end | |
| 2135 | ||
| 2136 | ||
| 2137 | for i = 0, 0.6, 0.05 do | |
| 2138 | ArtificialHeartbeat.Event:wait() | |
| 2139 | ||
| 2140 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2141 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
| 2142 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2143 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2144 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2145 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2146 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2147 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2148 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2149 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2150 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2151 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
| 2152 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2153 | end | |
| 2154 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2155 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 2156 | MagniDamage(refpart4, 13, 5, 20, math.random(5, 10), "Normal", 0, 1, 0, nil, true, true) | |
| 2157 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2158 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 2159 | for i = 0, 0.6, 0.05 do | |
| 2160 | ArtificialHeartbeat.Event:wait() | |
| 2161 | ||
| 2162 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2163 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
| 2164 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2165 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2166 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2167 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2168 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2169 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2170 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2171 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2172 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2173 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
| 2174 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2175 | end | |
| 2176 | ||
| 2177 | ||
| 2178 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2179 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 2180 | MagniDamage(refpart4, 13, 20, 20, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2181 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2182 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 2183 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2184 | attack = false | |
| 2185 | end | |
| 2186 | --[[ | |
| 2187 | for i = 0, 0.5, 0.05 do | |
| 2188 | ArtificialHeartbeat.Event:wait() | |
| 2189 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2190 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2191 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2192 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2193 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2194 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2195 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2196 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2197 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2198 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2199 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2200 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2201 | end | |
| 2202 | --]] | |
| 2203 | function Move1() | |
| 2204 | Chat("darkness... ")
| |
| 2205 | attack = true | |
| 2206 | for i = 0, 1, 0.25 do | |
| 2207 | ArtificialHeartbeat.Event:wait() | |
| 2208 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2209 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2210 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2211 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2212 | if Anim ~= "Walk" then | |
| 2213 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2214 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2215 | elseif Anim == "Walk" then | |
| 2216 | if walkinganim == true then | |
| 2217 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2218 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2219 | else | |
| 2220 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2221 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2222 | end | |
| 2223 | end | |
| 2224 | ||
| 2225 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2226 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2227 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2228 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2229 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2230 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2231 | end | |
| 2232 | for i = 0, 1, 0.04 do | |
| 2233 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2234 | ArtificialHeartbeat.Event:wait() | |
| 2235 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2236 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2237 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2238 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2239 | if Anim ~= "Walk" then | |
| 2240 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2241 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2242 | elseif Anim == "Walk" then | |
| 2243 | if walkinganim == true then | |
| 2244 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2245 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2246 | else | |
| 2247 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2248 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2249 | end | |
| 2250 | end | |
| 2251 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2252 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2253 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2254 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2255 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2256 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2257 | end | |
| 2258 | for i = 0, 3, 0.04 do | |
| 2259 | ArtificialHeartbeat.Event:wait() | |
| 2260 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2261 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2262 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2263 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2264 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2265 | if Anim ~= "Walk" then | |
| 2266 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2267 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2268 | elseif Anim == "Walk" then | |
| 2269 | if walkinganim == true then | |
| 2270 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2271 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2272 | else | |
| 2273 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2274 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2275 | end | |
| 2276 | end | |
| 2277 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2278 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2279 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2280 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2281 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2282 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2283 | end | |
| 2284 | ||
| 2285 | Chat("fall...")
| |
| 2286 | local orbnumber = math.random(30, 40) | |
| 2287 | coroutine.resume(coroutine.create(function() | |
| 2288 | for i = 1, orbnumber do | |
| 2289 | wait() | |
| 2290 | local orbblastpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
| 2291 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
| |
| 2292 | orbblastpart.Anchored = true | |
| 2293 | game:GetService("Debris"):AddItem(orbblastpart, 5)
| |
| 2294 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
| 2295 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2296 | MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 1.5, 1.5, 1.5, 0.04) | |
| 2297 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
| |
| 2298 | coroutine.resume(coroutine.create(function(Part) | |
| 2299 | wait(.8) | |
| 2300 | local spread = vt(math.random(-26, 26), math.random(-10, 10), math.random(-26, 26)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
| 2301 | local TheHit = Part.Position + vt(0, -1, 0) | |
| 2302 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
| 2303 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
| 2304 | local mag = (Part.Position - pos).magnitude | |
| 2305 | MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, -0.5, 0, -0.5, 0.08) | |
| 2306 | MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
| 2307 | Part.Parent = nil | |
| 2308 | if hit ~= nil then | |
| 2309 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2310 | refpart.CFrame = cf(pos) | |
| 2311 | refpart.Anchored = true | |
| 2312 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2313 | MagicBlock(CustomColor, true, Part.CFrame, 18, 18, 18, 0.25, 0.25, 0.25, 0.05) | |
| 2314 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
| 2315 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
| 2316 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
| |
| 2317 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2318 | MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true) | |
| 2319 | end | |
| 2320 | end), orbblastpart) | |
| 2321 | end | |
| 2322 | ||
| 2323 | end)) | |
| 2324 | local equipvelocity2 = Instance.new("BodyVelocity", Torso)
| |
| 2325 | equipvelocity2.P = 500 | |
| 2326 | equipvelocity2.maxForce = vt(math.huge, math.huge, math.huge) | |
| 2327 | equipvelocity2.Velocity = Vector3.new(0, 0, 0) | |
| 2328 | game:GetService("Debris"):AddItem(equipvelocity2, 2)
| |
| 2329 | for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do | |
| 2330 | ArtificialHeartbeat.Event:wait() | |
| 2331 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8 + idleangle) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.15) | |
| 2332 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2333 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(0)) * RWC0, 0.04) | |
| 2334 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2335 | ||
| 2336 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 2337 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15) | |
| 2338 | ||
| 2339 | ||
| 2340 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2341 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2342 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2343 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2344 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2345 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2346 | end | |
| 2347 | for i = 0, 1, 0.25 do | |
| 2348 | ArtificialHeartbeat.Event:wait() | |
| 2349 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2350 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2351 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2352 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2353 | if Anim ~= "Walk" then | |
| 2354 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2355 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2356 | elseif Anim == "Walk" then | |
| 2357 | if walkinganim == true then | |
| 2358 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2359 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2360 | else | |
| 2361 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2362 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2363 | end | |
| 2364 | end | |
| 2365 | Humanoid.WalkSpeed = 16 * Speed.Value | |
| 2366 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2367 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2368 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2369 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2370 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2371 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2372 | end | |
| 2373 | attack = false | |
| 2374 | end | |
| 2375 | function Move2() | |
| 2376 | Chat("Die!")
| |
| 2377 | attack = true | |
| 2378 | local oldspeedvalue = Speed.Value | |
| 2379 | Speed.Value = 0 | |
| 2380 | for i = 0, .5, 0.25 do | |
| 2381 | ArtificialHeartbeat.Event:wait() | |
| 2382 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2383 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2384 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2385 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2386 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2387 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2388 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2389 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2390 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2391 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2392 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2393 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2394 | end | |
| 2395 | for i = 0, .5, 0.015 do | |
| 2396 | ArtificialHeartbeat.Event:wait() | |
| 2397 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2398 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2399 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2400 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2401 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2402 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2403 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2404 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2405 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2406 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2407 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2408 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2409 | end | |
| 2410 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
| |
| 2411 | for i = 0, 1.7, 0.25 do | |
| 2412 | ArtificialHeartbeat.Event:wait() | |
| 2413 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
| 2414 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
| 2415 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2416 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2417 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2418 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2419 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2420 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2421 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2422 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2423 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2424 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2425 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2426 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2427 | end | |
| 2428 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2429 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
| 2430 | refpart.Anchored = true | |
| 2431 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2432 | local TheHit = refpart.Position + vt(0, -1, 0) | |
| 2433 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
| 2434 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
| 2435 | local mag = (refpart.Position - pos).magnitude | |
| 2436 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2437 | refpart2.CFrame = cf(pos) | |
| 2438 | refpart2.Anchored = true | |
| 2439 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2440 | MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.4, 0, 0.4, 0.025) | |
| 2441 | if hit ~= nil then | |
| 2442 | MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 2.5, 2.5, 2.5, 0.02) | |
| 2443 | MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 7, 7, 7, 0.02) | |
| 2444 | MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, .6, 1.2, .6, 0.03) | |
| 2445 | MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025) | |
| 2446 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
| |
| 2447 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
| |
| 2448 | MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
| 2449 | end | |
| 2450 | for i = 0, 1, 0.02 do | |
| 2451 | ArtificialHeartbeat.Event:wait() | |
| 2452 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2453 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2454 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2455 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2456 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2457 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2458 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2459 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2460 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2461 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2462 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2463 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2464 | end | |
| 2465 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2466 | attack = false | |
| 2467 | end | |
| 2468 | function Move3() | |
| 2469 | Chat("...")
| |
| 2470 | attack = true | |
| 2471 | local oldspeedvalue = Speed.Value | |
| 2472 | Speed.Value = 0 | |
| 2473 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
| |
| 2474 | for i = 0, 1, 0.05 do | |
| 2475 | ArtificialHeartbeat.Event:wait() | |
| 2476 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 2477 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2478 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 2479 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2480 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15) | |
| 2481 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2482 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2483 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2484 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2485 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2486 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 2487 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2488 | end | |
| 2489 | for i = 0, 1.5, 0.05 do | |
| 2490 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
| 2491 | ArtificialHeartbeat.Event:wait() | |
| 2492 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 2493 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2494 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 2495 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2496 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.2) | |
| 2497 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2498 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2499 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2500 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2501 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2502 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15) | |
| 2503 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2504 | end | |
| 2505 | MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025) | |
| 2506 | local num = 0 | |
| 2507 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2508 | refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6) | |
| 2509 | refpart.Anchored = true | |
| 2510 | game:GetService("Debris"):AddItem(refpart, 3)
| |
| 2511 | for i = 1, 40 do | |
| 2512 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2513 | refpart2.CFrame = refpart.CFrame * cf(0, 0, num) | |
| 2514 | refpart2.Anchored = true | |
| 2515 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2516 | local TheHit = refpart2.Position + vt(0, -1, 0) | |
| 2517 | local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit) | |
| 2518 | local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character) | |
| 2519 | if hit ~= nil then | |
| 2520 | local refpart3 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2521 | refpart3.CFrame = cf(pos) | |
| 2522 | refpart3.Anchored = true | |
| 2523 | game:GetService("Debris"):AddItem(refpart3, 1)
| |
| 2524 | MagicSphere(BrickColor.new("Dark indigo"), refpart3.CFrame, 40, 20, 40, -2, -1, -2, 0.015)
| |
| 2525 | MagicWave(CustomColor, refpart3.CFrame, 7, 10, 7,-0.08, -.2, -0.08, 0.03) | |
| 2526 | so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
| |
| 2527 | MagniDamage(refpart3, 20, 2, 6, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2528 | end | |
| 2529 | num = num - 5 | |
| 2530 | wait() | |
| 2531 | end | |
| 2532 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2533 | attack = false | |
| 2534 | end | |
| 2535 | ||
| 2536 | ||
| 2537 | function DanceMoves() | |
| 2538 | attack = true | |
| 2539 | ||
| 2540 | local oldspeedvalue = Speed.Value | |
| 2541 | Speed.Value = 0 | |
| 2542 | ||
| 2543 | for i = 0,3 do | |
| 2544 | --[ | |
| 2545 | for i = 0, 0.5, 0.05 do | |
| 2546 | ArtificialHeartbeat.Event:wait() | |
| 2547 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2548 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2549 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2550 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2551 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2552 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2553 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2554 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2555 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2556 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2557 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2558 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2559 | end | |
| 2560 | ||
| 2561 | --]] | |
| 2562 | ||
| 2563 | ||
| 2564 | ||
| 2565 | ||
| 2566 | ||
| 2567 | ||
| 2568 | ||
| 2569 | ||
| 2570 | ||
| 2571 | ||
| 2572 | ||
| 2573 | ||
| 2574 | ||
| 2575 | ||
| 2576 | ||
| 2577 | ||
| 2578 | ||
| 2579 | ||
| 2580 | for i = 0, 1.5, 0.05 do | |
| 2581 | ArtificialHeartbeat.Event:wait() | |
| 2582 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(-10), math.rad(45)), 0.15) | |
| 2583 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(45)), 0.15) | |
| 2584 | RW.C0 = clerp(RW.C0, cf(1.25, 0.1 + idleangle, 0) * angles(math.rad(90), math.rad(-20), math.rad(-50)) * RWC0, 0.15) | |
| 2585 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.2) * angles(math.rad(90), math.rad(-70), math.rad(-80)) * LWC0, 0.15) | |
| 2586 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2587 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2588 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2589 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2590 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
| 2591 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2592 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2593 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(3, 2.5, 0), 0.15) | |
| 2594 | end | |
| 2595 | ||
| 2596 | ||
| 2597 | ||
| 2598 | ||
| 2599 | ||
| 2600 | ||
| 2601 | ||
| 2602 | for i = 0, 0.5, 0.05 do | |
| 2603 | ArtificialHeartbeat.Event:wait() | |
| 2604 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2605 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2606 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2607 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2608 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2609 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2610 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2611 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2612 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2613 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2614 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2615 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2616 | end | |
| 2617 | ||
| 2618 | ||
| 2619 | ||
| 2620 | ||
| 2621 | ||
| 2622 | ||
| 2623 | ||
| 2624 | ||
| 2625 | ||
| 2626 | ||
| 2627 | ||
| 2628 | for i = 0, 1.5, 0.05 do | |
| 2629 | ArtificialHeartbeat.Event:wait() | |
| 2630 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(10), math.rad(-45)), 0.15) | |
| 2631 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-45)), 0.15) | |
| 2632 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(70), math.rad(80)) * RWC0, 0.15) | |
| 2633 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.1 + idleangle, -0.2) * angles(math.rad(90), math.rad(20), math.rad(50)) * LWC0, 0.15) | |
| 2634 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2635 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2636 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2637 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2638 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2639 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
| 2640 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-3, 2.5, 0), 0.15) | |
| 2641 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2642 | end | |
| 2643 | end | |
| 2644 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2645 | attack = false | |
| 2646 | end | |
| 2647 | ||
| 2648 | function Move4() | |
| 2649 | Chat("Shadow Blast!...")
| |
| 2650 | attack = true | |
| 2651 | for i = 0, 1, 0.25 do | |
| 2652 | ArtificialHeartbeat.Event:wait() | |
| 2653 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2654 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2655 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2656 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2657 | if Anim ~= "Walk" then | |
| 2658 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2659 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2660 | elseif Anim == "Walk" then | |
| 2661 | if walkinganim == true then | |
| 2662 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2663 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2664 | else | |
| 2665 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2666 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2667 | end | |
| 2668 | end | |
| 2669 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2670 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2671 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2672 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2673 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2674 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2675 | end | |
| 2676 | for i = 0, 1, 0.04 do | |
| 2677 | ArtificialHeartbeat.Event:wait() | |
| 2678 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2679 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2680 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2681 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2682 | if Anim ~= "Walk" then | |
| 2683 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2684 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2685 | elseif Anim == "Walk" then | |
| 2686 | if walkinganim == true then | |
| 2687 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2688 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2689 | else | |
| 2690 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2691 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2692 | end | |
| 2693 | end | |
| 2694 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2695 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2696 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2697 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2698 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2699 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2700 | end | |
| 2701 | local orbpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
| 2702 | local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
| |
| 2703 | local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0)) | |
| 2704 | game:GetService("Debris"):AddItem(orbpart, 5)
| |
| 2705 | so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
| |
| 2706 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 2707 | for i = 0, 0.4, 0.005 do | |
| 2708 | ArtificialHeartbeat.Event:wait() | |
| 2709 | Mesh.Scale = Mesh.Scale + vt(0.90, 0.90, 0.90) | |
| 2710 | MagicBlock(CustomColor, true, orbpart.CFrame, 30, 30, 30, -5, -5, -5, 0.05) | |
| 2711 | MagicBlock("Black", true, orbpart.CFrame, 24, 24, 24, 3,3,3, 0.4)
| |
| 2712 | ||
| 2713 | local orbchargeeffect = part(3, Effects, "Neon", 0, 0, CustomColor, "Effect", vt()) | |
| 2714 | local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(8, math.random(10, 15), 8))
| |
| 2715 | local orbchargecframe = angles(math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150))) * cf(0, math.random(10, 50), 0) | |
| 2716 | orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe | |
| 2717 | orbchargeeffect.Anchored = true | |
| 2718 | game:GetService("Debris"):AddItem(orbchargeeffect, 2)
| |
| 2719 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 2720 | for i = 0, 1, 0.1 do | |
| 2721 | ArtificialHeartbeat.Event:wait() | |
| 2722 | Part.Transparency = i | |
| 2723 | Part.CFrame = Part.CFrame * cf(0, -1, 0) | |
| 2724 | end | |
| 2725 | Part.Parent = nil | |
| 2726 | end), orbchargeeffect, orbchargeeffectmesh) | |
| 2727 | end | |
| 2728 | wait(0.2) | |
| 2729 | local range = 1999 | |
| 2730 | local MainPos = Part.Position | |
| 2731 | local MainPos2 = Mouse.Hit.p | |
| 2732 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
| 2733 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent) | |
| 2734 | local mag = (MainPos - pos).magnitude | |
| 2735 | MagicCylinder("Black", cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 2.5, 0, 2.5, 0.015)
| |
| 2736 | MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 3.0, 0, 3.0, 0.015) | |
| 2737 | for i = 1, 5 do | |
| 2738 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0) | |
| 2739 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
| |
| 2740 | end | |
| 2741 | for i = 0, 5 do | |
| 2742 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0) | |
| 2743 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
| |
| 2744 | end | |
| 2745 | so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
| |
| 2746 | so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
| |
| 2747 | so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
| |
| 2748 | if hit ~= nil then | |
| 2749 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2750 | refpart.CFrame = cf(pos) | |
| 2751 | refpart.Anchored = true | |
| 2752 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2753 | MagicBlock(CustomColor, true, refpart.CFrame, 45, 45, 45, 4, 4, 4, 0.01) | |
| 2754 | MagicSphere("Black", refpart.CFrame, 35, 35, 35, 4, 4, 4, 0.02)
| |
| 2755 | so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
| |
| 2756 | so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
| |
| 2757 | so("http://www.roblox.com/Asset?ID=87767777", refpart, 2, 2)
| |
| 2758 | Damagefunc(hit, 40, 80, 60, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2759 | MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true) | |
| 2760 | end | |
| 2761 | for i = 0, 1, 0.01 do | |
| 2762 | ArtificialHeartbeat.Event:wait() | |
| 2763 | Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5) | |
| 2764 | Part.Transparency = Part.Transparency + 0.01 | |
| 2765 | end | |
| 2766 | Part.Parent = nil | |
| 2767 | end), orbpart, orbmesh) | |
| 2768 | for i = 0, 0.35, 0.004 do | |
| 2769 | ArtificialHeartbeat.Event:wait() | |
| 2770 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2771 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2772 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2773 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2774 | if Anim ~= "Walk" then | |
| 2775 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2776 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2777 | elseif Anim == "Walk" then | |
| 2778 | if walkinganim == true then | |
| 2779 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2780 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2781 | else | |
| 2782 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2783 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2784 | end | |
| 2785 | end | |
| 2786 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2787 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2788 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2789 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2790 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2791 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2792 | end | |
| 2793 | for i = 0, 1, 0.25 do | |
| 2794 | ArtificialHeartbeat.Event:wait() | |
| 2795 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2796 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2797 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2798 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2799 | if Anim ~= "Walk" then | |
| 2800 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2801 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2802 | elseif Anim == "Walk" then | |
| 2803 | if walkinganim == true then | |
| 2804 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2805 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2806 | else | |
| 2807 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2808 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2809 | end | |
| 2810 | end | |
| 2811 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2812 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2813 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2814 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2815 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2816 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2817 | end | |
| 2818 | attack = false | |
| 2819 | end | |
| 2820 | function Move5() | |
| 2821 | Chat("Soul Blast!")
| |
| 2822 | attack = true | |
| 2823 | local oldspeedvalue = Speed.Value | |
| 2824 | Speed.Value = 0 | |
| 2825 | for i = 0, 1, 0.25 do | |
| 2826 | ArtificialHeartbeat.Event:wait() | |
| 2827 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2828 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2829 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
| 2830 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2831 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2832 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2833 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2834 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2835 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2836 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2837 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2838 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2839 | end | |
| 2840 | ||
| 2841 | for i = 0, 1, 0.015 do | |
| 2842 | ArtificialHeartbeat.Event:wait() | |
| 2843 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2844 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2845 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
| 2846 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2847 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2848 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2849 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2850 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2851 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2852 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2853 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2854 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2855 | end | |
| 2856 | wait(.1) | |
| 2857 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
| |
| 2858 | for i = 0, 1, 0.25 do | |
| 2859 | ArtificialHeartbeat.Event:wait() | |
| 2860 | MagicBlock(BrickColor.new("Dark indigo"), true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
| |
| 2861 | MagicBlock(BrickColor.new("Dark indigo"), true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
| |
| 2862 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2863 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2864 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2865 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2866 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2867 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2868 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2869 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2870 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2871 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2872 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2873 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2874 | end | |
| 2875 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2876 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
| 2877 | refpart.Anchored = true | |
| 2878 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2879 | local TheHit = refpart.Position + vt(0, -1, 0) | |
| 2880 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
| 2881 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
| 2882 | local mag = (refpart.Position - pos).magnitude | |
| 2883 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2884 | refpart2.CFrame = cf(pos) | |
| 2885 | refpart2.Anchored = true | |
| 2886 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2887 | MagicCylinder(BrickColor.new("Dark indigo"), cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 145, mag * 145, 145, 0.1, 0, 0.1, 0.015)
| |
| 2888 | if hit ~= nil then | |
| 2889 | MagicBlock(BrickColor.new("Dark indigo"), true, refpart2.CFrame, 15, 15, 15, 15.5, 15.5, 15.5, 0.005)
| |
| 2890 | MagicSphere(BrickColor.new("Really black"), refpart2.CFrame, 15, 15, 15, 14, 14, 14, 0.005)
| |
| 2891 | MagicWave(BrickColor.new("Dark indigo"), refpart2.CFrame, 5, 5, 5, 2, 0.5, 2, 0.025)
| |
| 2892 | MagicRing(BrickColor.new("Dark indigo"), refpart2.CFrame * angles(math.rad(90), 0, 0), 12.5, 12.5, 12.5, 5, 5, 5, 0.025)
| |
| 2893 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
| |
| 2894 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
| |
| 2895 | MagniDamage(refpart2, 99, 129, 149, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
| 2896 | end | |
| 2897 | for i = 0, 1, 0.02 do | |
| 2898 | ArtificialHeartbeat.Event:wait() | |
| 2899 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2900 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2901 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2902 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2903 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2904 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2905 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2906 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2907 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2908 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2909 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2910 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2911 | end | |
| 2912 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2913 | attack = false | |
| 2914 | end | |
| 2915 | ||
| 2916 | hold = false | |
| 2917 | Mouse.Button1Down:connect(function() | |
| 2918 | if attack == true or equipped == false then | |
| 2919 | return | |
| 2920 | end | |
| 2921 | hold = true | |
| 2922 | if attacktype == 1 then | |
| 2923 | attacktype = 2 | |
| 2924 | attackone() | |
| 2925 | elseif attacktype == 2 then | |
| 2926 | attacktype = 3 | |
| 2927 | attacktwo() | |
| 2928 | elseif attacktype == 3 then | |
| 2929 | attacktype = 4 | |
| 2930 | attackthree() | |
| 2931 | elseif attacktype == 4 then | |
| 2932 | attacktype = 1 | |
| 2933 | attackfour() | |
| 2934 | end | |
| 2935 | coroutine.resume(coroutine.create(function() | |
| 2936 | for i = 1, 50 do | |
| 2937 | if attack == false then | |
| 2938 | wait() | |
| 2939 | end | |
| 2940 | end | |
| 2941 | if attack == false then | |
| 2942 | attacktype = 1 | |
| 2943 | end | |
| 2944 | end)) | |
| 2945 | end) | |
| 2946 | if allowhopperbin == true then | |
| 2947 | function ob1u(Mouse) | |
| 2948 | hold = false | |
| 2949 | end | |
| 2950 | end | |
| 2951 | Mouse.KeyDown:connect(function(key) | |
| 2952 | if key == "f" and canunequiporequip == true and attack == false then | |
| 2953 | if equipped == false then | |
| 2954 | equipped = true | |
| 2955 | ||
| 2956 | if disableanimate == true then | |
| 2957 | Animate.Disabled = true | |
| 2958 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 2959 | idleanimation:Play() | |
| 2960 | end | |
| 2961 | if disableanimator == true then | |
| 2962 | Animator.Parent = nil | |
| 2963 | end | |
| 2964 | if disablemovingarms == true then | |
| 2965 | RW.Parent = Torso | |
| 2966 | LW.Parent = Torso | |
| 2967 | RSH.Parent = nil | |
| 2968 | LSH.Parent = nil | |
| 2969 | end | |
| 2970 | equipanim() | |
| 2971 | elseif equipped == true then | |
| 2972 | equipped = false | |
| 2973 | unequipanim() | |
| 2974 | ArtificialHeartbeat.Event:wait() | |
| 2975 | if disablemovingarms == true then | |
| 2976 | RW.Parent = nil | |
| 2977 | LW.Parent = nil | |
| 2978 | RSH.Parent = Torso | |
| 2979 | LSH.Parent = Torso | |
| 2980 | end | |
| 2981 | if disableanimator == true then | |
| 2982 | Animator.Parent = Humanoid | |
| 2983 | end | |
| 2984 | if disableanimate == true then | |
| 2985 | Animate.Disabled = false | |
| 2986 | end | |
| 2987 | end | |
| 2988 | end | |
| 2989 | if key == "e" and attack == false and equipped == true then | |
| 2990 | EAbility() | |
| 2991 | end | |
| 2992 | if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then | |
| 2993 | subtractmana(skill1mana) | |
| 2994 | cooldown1 = 0 | |
| 2995 | Move1() | |
| 2996 | end | |
| 2997 | if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then | |
| 2998 | subtractmana(skill2mana) | |
| 2999 | cooldown2 = 0 | |
| 3000 | Move2() | |
| 3001 | end | |
| 3002 | if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then | |
| 3003 | subtractmana(skill3mana) | |
| 3004 | cooldown3 = 0 | |
| 3005 | Move3() | |
| 3006 | end | |
| 3007 | if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3008 | subtractmana(skill4mana) | |
| 3009 | cooldown4 = 0 | |
| 3010 | Move4() | |
| 3011 | end | |
| 3012 | if key == "b" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3013 | subtractmana(skill4mana) | |
| 3014 | cooldown4 = 0 | |
| 3015 | Move5() | |
| 3016 | end | |
| 3017 | if key == "t" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3018 | DanceMoves() | |
| 3019 | end | |
| 3020 | if key == "m" then | |
| 3021 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
| 3022 | if hitfloor == nil then | |
| 3023 | RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0) | |
| 3024 | end | |
| 3025 | end | |
| 3026 | end) | |
| 3027 | if allowhopperbin == true then | |
| 3028 | function key2(key) | |
| 3029 | end | |
| 3030 | end | |
| 3031 | if allowhopperbin == true then | |
| 3032 | function s(Mouse) | |
| 3033 | Mouse.Button1Down:connect(function() | |
| 3034 | ob1d(Mouse) | |
| 3035 | end) | |
| 3036 | Mouse.Button1Up:connect(function() | |
| 3037 | ob1u(Mouse) | |
| 3038 | end) | |
| 3039 | Mouse.KeyDown:connect(key) | |
| 3040 | Mouse.KeyUp:connect(key2) | |
| 3041 | end | |
| 3042 | end | |
| 3043 | if allowhopperbin == true then | |
| 3044 | function ds(Mouse) | |
| 3045 | end | |
| 3046 | end | |
| 3047 | if allowhopperbin == true then | |
| 3048 | Bin.Selected:connect(s) | |
| 3049 | Bin.Deselected:connect(ds) | |
| 3050 | end | |
| 3051 | function updateskills() | |
| 3052 | if allowabilitestofunction == true then | |
| 3053 | if cooldown1 <= co1 then | |
| 3054 | cooldown1 = cooldown1 + 0.03333333333333333 | |
| 3055 | if cooldown1 >= co1 then | |
| 3056 | cooldown1 = co1 | |
| 3057 | end | |
| 3058 | end | |
| 3059 | if cooldown2 <= co2 then | |
| 3060 | cooldown2 = cooldown2 + 0.03333333333333333 | |
| 3061 | if cooldown2 >= co2 then | |
| 3062 | cooldown2 = co2 | |
| 3063 | end | |
| 3064 | end | |
| 3065 | if cooldown3 <= co3 then | |
| 3066 | cooldown3 = cooldown3 + 0.03333333333333333 | |
| 3067 | if cooldown3 >= co3 then | |
| 3068 | cooldown3 = co3 | |
| 3069 | end | |
| 3070 | end | |
| 3071 | if cooldown4 <= co4 then | |
| 3072 | cooldown4 = cooldown4 + 0.03333333333333333 | |
| 3073 | elseif cooldown4 >= co4 then | |
| 3074 | cooldown4 = co4 | |
| 3075 | end | |
| 3076 | if changebarcolorsifnotenoughmana == true then | |
| 3077 | if mana <= skill1mana then | |
| 3078 | bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3079 | else | |
| 3080 | bar4.BackgroundColor3 = skillcolorscheme | |
| 3081 | end | |
| 3082 | if mana <= skill2mana then | |
| 3083 | bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3084 | else | |
| 3085 | bar3.BackgroundColor3 = skillcolorscheme | |
| 3086 | end | |
| 3087 | if mana <= skill3mana then | |
| 3088 | bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3089 | else | |
| 3090 | bar1.BackgroundColor3 = skillcolorscheme | |
| 3091 | end | |
| 3092 | if mana <= skill4mana then | |
| 3093 | bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3094 | else | |
| 3095 | bar2.BackgroundColor3 = skillcolorscheme | |
| 3096 | end | |
| 3097 | elseif changebarcolorsifnotenoughmana == false then | |
| 3098 | bar1.BackgroundColor3 = skillcolorscheme | |
| 3099 | bar2.BackgroundColor3 = skillcolorscheme | |
| 3100 | bar3.BackgroundColor3 = skillcolorscheme | |
| 3101 | bar4.BackgroundColor3 = skillcolorscheme | |
| 3102 | end | |
| 3103 | end | |
| 3104 | if alternatemanaregensystem == false then | |
| 3105 | if mana <= maxmana then | |
| 3106 | mana = mana + recovermana / 30 | |
| 3107 | elseif mana >= maxmana then | |
| 3108 | mana = maxmana | |
| 3109 | end | |
| 3110 | elseif alternatemanaregensystem == true then | |
| 3111 | if mana >= maxmana then | |
| 3112 | mana = maxmana | |
| 3113 | elseif manadelay <= manawait then | |
| 3114 | manadelay = manadelay + 1 | |
| 3115 | else | |
| 3116 | manadelay = 0 | |
| 3117 | mana = mana + 1 | |
| 3118 | end | |
| 3119 | end | |
| 3120 | if allowstunbar == true then | |
| 3121 | if 0 >= StunValue.Value then | |
| 3122 | StunValue.Value = 0 | |
| 3123 | elseif stundelay <= stunwait then | |
| 3124 | stundelay = stundelay + 1 | |
| 3125 | else | |
| 3126 | stundelay = 0 | |
| 3127 | StunValue.Value = StunValue.Value - 1 | |
| 3128 | end | |
| 3129 | elseif allowstunbar == false then | |
| 3130 | StunValue.Value = 0 | |
| 3131 | end | |
| 3132 | end | |
| 3133 | if allowmenutofunction == true then | |
| 3134 | ArtificialHeartbeat.Event:connect(function() | |
| 3135 | updateskills() | |
| 3136 | if allowabilitestofunction == true then | |
| 3137 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3138 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3139 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3140 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3141 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3142 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3143 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3144 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3145 | end | |
| 3146 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3147 | manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3148 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3149 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3150 | if allowstunbar == true then | |
| 3151 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3152 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3153 | end | |
| 3154 | if showhealthmanaandstunnumbers == true then | |
| 3155 | manatext.Text = "Mana [" .. mana .. "]" | |
| 3156 | healthtext.Text = "Health [" .. Humanoid.Health .. "]" | |
| 3157 | if allowstunbar == true then | |
| 3158 | stuntext.Text = "Stun [" .. StunValue.Value .. "]" | |
| 3159 | end | |
| 3160 | end | |
| 3161 | if showstats == true then | |
| 3162 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3163 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3164 | speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3165 | defensetext.Text = "Defense: " .. Defense.Value | |
| 3166 | damagetext.Text = "Damage: " .. Damage.Value | |
| 3167 | speedtext.Text = "Speed: " .. Speed.Value | |
| 3168 | end | |
| 3169 | end) | |
| 3170 | end | |
| 3171 | ArtificialHeartbeat.Event:connect(function() | |
| 3172 | if Humanoid.Health < 100 and dieanim == false then | |
| 3173 | dieanim = true | |
| 3174 | Chat("Nooooooo!!!!")
| |
| 3175 | ||
| 3176 | unequipanim() | |
| 3177 | ||
| 3178 | end | |
| 3179 | if Humanoid.Health > 0 then | |
| 3180 | if walkspeeddependsonspeedvalue == true then | |
| 3181 | if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then | |
| 3182 | Humanoid.WalkSpeed = 0 | |
| 3183 | else | |
| 3184 | Humanoid.WalkSpeed = 16 * Speed.Value | |
| 3185 | end | |
| 3186 | end | |
| 3187 | if StunValue.Value >= maxstun then | |
| 3188 | StunValue.Value = 0 | |
| 3189 | StunAnim.Value = true | |
| 3190 | end | |
| 3191 | if StaggerAnim.Value == true and staganim == false then | |
| 3192 | coroutine.resume(coroutine.create(function() | |
| 3193 | staganim = true | |
| 3194 | while attack == true do | |
| 3195 | ArtificialHeartbeat.Event:wait() | |
| 3196 | end | |
| 3197 | Stagger() | |
| 3198 | StaggerAnim.Value = false | |
| 3199 | staganim = false | |
| 3200 | end)) | |
| 3201 | end | |
| 3202 | if StaggerHitAnim.Value == true and staghitanim == false then | |
| 3203 | coroutine.resume(coroutine.create(function() | |
| 3204 | staghitanim = true | |
| 3205 | while attack == true do | |
| 3206 | ArtificialHeartbeat.Event:wait() | |
| 3207 | end | |
| 3208 | StaggerHit() | |
| 3209 | StaggerHitAnim.Value = false | |
| 3210 | staghitanim = false | |
| 3211 | end)) | |
| 3212 | end | |
| 3213 | if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then | |
| 3214 | coroutine.resume(coroutine.create(function() | |
| 3215 | StunValue.Value = 0 | |
| 3216 | stunanim = true | |
| 3217 | while attack == true do | |
| 3218 | ArtificialHeartbeat.Event:wait() | |
| 3219 | end | |
| 3220 | Stun() | |
| 3221 | StunAnim.Value = false | |
| 3222 | stunanim = false | |
| 3223 | end)) | |
| 3224 | end | |
| 3225 | sine = sine + change | |
| 3226 | someangle = someangle % 100 + change2 / 10 | |
| 3227 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 3228 | local velderp = RootPart.Velocity.y | |
| 3229 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 3230 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
| 3231 | if donum >= 0.5 then | |
| 3232 | handidle = true | |
| 3233 | elseif donum <= 0 then | |
| 3234 | handidle = false | |
| 3235 | end | |
| 3236 | if handidle == false then | |
| 3237 | donum = donum + 0.002 | |
| 3238 | else | |
| 3239 | donum = donum - 0.002 | |
| 3240 | end | |
| 3241 | if equipped == true or equipped == false then | |
| 3242 | if attack == false then | |
| 3243 | idle = idle + 1 | |
| 3244 | else | |
| 3245 | idle = 0 | |
| 3246 | end | |
| 3247 | if not (idle >= 500) or attack == false then | |
| 3248 | end | |
| 3249 | if leftarm == true then | |
| 3250 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3251 | if alternatewalk == false then | |
| 3252 | if walkinganim == true then | |
| 3253 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3254 | else | |
| 3255 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3256 | end | |
| 3257 | elseif walkinganim == true then | |
| 3258 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3259 | else | |
| 3260 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3261 | end | |
| 3262 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
| 3263 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3264 | end | |
| 3265 | end | |
| 3266 | if rightarm == true then | |
| 3267 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3268 | if alternatewalk == false then | |
| 3269 | if walkinganim == true then | |
| 3270 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3271 | else | |
| 3272 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3273 | end | |
| 3274 | elseif walkinganim == true then | |
| 3275 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3276 | else | |
| 3277 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3278 | end | |
| 3279 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
| 3280 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3281 | end | |
| 3282 | end | |
| 3283 | if allowwalking == true then | |
| 3284 | if Anim == "Walk" and equipped == true then | |
| 3285 | if alternatewalk == false then | |
| 3286 | if walkinganim == true then | |
| 3287 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3288 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3289 | else | |
| 3290 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3291 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3292 | end | |
| 3293 | elseif walkinganim == true then | |
| 3294 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3295 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3296 | else | |
| 3297 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3298 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3299 | end | |
| 3300 | elseif Anim ~= "Walk" and equipped == true then | |
| 3301 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3302 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3303 | end | |
| 3304 | end | |
| 3305 | if velderp > 1 and hitfloor == nil then | |
| 3306 | Anim = "Jump" | |
| 3307 | if attack == false and equipped == true then | |
| 3308 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3309 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1) | |
| 3310 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
| 3311 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
| 3312 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1) | |
| 3313 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1) | |
| 3314 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3315 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3316 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3317 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3318 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3319 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3320 | end | |
| 3321 | elseif velderp < -1 and hitfloor == nil then | |
| 3322 | Anim = "Fall" | |
| 3323 | if attack == false and equipped == true then | |
| 3324 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3325 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1) | |
| 3326 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1) | |
| 3327 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1) | |
| 3328 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1) | |
| 3329 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 3330 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3331 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3332 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3333 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3334 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3335 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3336 | end | |
| 3337 | elseif torvel < 1 and hitfloor ~= nil then | |
| 3338 | Anim = "Idle" | |
| 3339 | if attack == false and equipped == true then | |
| 3340 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3341 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075) | |
| 3342 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075) | |
| 3343 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075) | |
| 3344 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3345 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3346 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075) | |
| 3347 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075) | |
| 3348 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
| 3349 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
| 3350 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075) | |
| 3351 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075) | |
| 3352 | end | |
| 3353 | elseif torvel > 1 and hitfloor ~= nil then | |
| 3354 | Anim = "Walk" | |
| 3355 | walk = walk + 0.5 | |
| 3356 | if walk >= 20 then | |
| 3357 | walk = 0 | |
| 3358 | if walkinganim == true then | |
| 3359 | walkinganim = false | |
| 3360 | elseif walkinganim == false then | |
| 3361 | walkinganim = true | |
| 3362 | end | |
| 3363 | end | |
| 3364 | if attack == false and equipped == true then | |
| 3365 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3366 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
| 3367 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
| 3368 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
| 3369 | if walkinganim == true then | |
| 3370 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
| 3371 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
| 3372 | else | |
| 3373 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
| 3374 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
| 3375 | end | |
| 3376 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3377 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3378 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3379 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3380 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3381 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3382 | end | |
| 3383 | end | |
| 3384 | end | |
| 3385 | end | |
| 3386 | end) |