SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | local h,t | |
| 87 | --Give the server mouse data every second frame, but only if the values changed | |
| 88 | --If player is not moving their mouse, client won't fire events | |
| 89 | local HB = game:GetService("RunService").Heartbeat
| |
| 90 | while true do | |
| 91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 92 | h,t=Mouse.Hit,Mouse.Target | |
| 93 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 94 | end | |
| 95 | --Wait 2 frames | |
| 96 | for i=1,2 do | |
| 97 | HB:Wait() | |
| 98 | end | |
| 99 | end]==],script) | |
| 100 | ||
| 101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 102 | --Real game object | |
| 103 | local RealGame = game | |
| 104 | ||
| 105 | --Metatable for fake service | |
| 106 | local FakeService_Metatable = {
| |
| 107 | __index = function(self,k) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then | |
| 110 | return typeof(s[k])=="function" | |
| 111 | and function(_,...)return s[k](s,...)end or s[k] | |
| 112 | end | |
| 113 | end, | |
| 114 | __newindex = function(self,k,v) | |
| 115 | local s = rawget(self,"_RealService") | |
| 116 | if s then s[k]=v end | |
| 117 | end | |
| 118 | } | |
| 119 | local function FakeService(t,RealService) | |
| 120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 121 | return setmetatable(t,FakeService_Metatable) | |
| 122 | end | |
| 123 | ||
| 124 | --Fake game object | |
| 125 | local FakeGame = {
| |
| 126 | GetService = function(self,s) | |
| 127 | return rawget(self,s) or RealGame:GetService(s) | |
| 128 | end, | |
| 129 | Players = FakeService({
| |
| 130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 131 | },"Players"), | |
| 132 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 134 | RunService = FakeService({
| |
| 135 | _btrs = {},
| |
| 136 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 137 | BindToRenderStep = function(self,name,_,fun) | |
| 138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 139 | end, | |
| 140 | UnbindFromRenderStep = function(self,name) | |
| 141 | self._btrs[name]:Disconnect() | |
| 142 | end, | |
| 143 | },"RunService") | |
| 144 | } | |
| 145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 146 | FakeGame.service = FakeGame.GetService | |
| 147 | FakeService(FakeGame,game) | |
| 148 | --Changing owner to fake player object to support owner:GetMouse() | |
| 149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 150 | end | |
| 151 | ||
| 152 | -- Soviet Officer -- | |
| 153 | -- Credits to PapiSwagGamez, DeadDefense -- | |
| 154 | local p = game.Players.LocalPlayer | |
| 155 | local char = p.Character | |
| 156 | local mouse = p:GetMouse() | |
| 157 | local larm = char["Left Arm"] | |
| 158 | local rarm = char["Right Arm"] | |
| 159 | local lleg = char["Left Leg"] | |
| 160 | local rleg = char["Right Leg"] | |
| 161 | local hed = char.Head | |
| 162 | local torso = char.Torso | |
| 163 | local hum = char.Humanoid | |
| 164 | local cam = game.Workspace.CurrentCamera | |
| 165 | local root = char.HumanoidRootPart | |
| 166 | local rj = root.RootJoint | |
| 167 | local deb = false | |
| 168 | local shot = 0 | |
| 169 | local animpose = "Idle" | |
| 170 | local lastanimpose = "Idle" | |
| 171 | local stanceToggle = "Normal" | |
| 172 | local l = game:GetService("Lighting")
| |
| 173 | local rs = game:GetService("RunService").RenderStepped
| |
| 174 | local hb = game:GetService("RunService").Heartbeat
| |
| 175 | local Stepped = game:GetService("RunService").Stepped
| |
| 176 | local Touche = {char.Name, }
| |
| 177 | math.randomseed(os.time()) | |
| 178 | hum.JumpPower = 100 | |
| 179 | hed.face.Texture = "rbxassetid://139636605" | |
| 180 | char["Body Colors"].HeadColor = BrickColor.new("Nougat")
| |
| 181 | char["Body Colors"].TorsoColor = BrickColor.new("Nougat")
| |
| 182 | char["Body Colors"].LeftArmColor = BrickColor.new("Nougat")
| |
| 183 | char["Body Colors"].RightArmColor = BrickColor.new("Nougat")
| |
| 184 | ---- | |
| 185 | ||
| 186 | ||
| 187 | ---------------------------------------------------- | |
| 188 | mod5 = Instance.new("Model",char)
| |
| 189 | ||
| 190 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 191 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 192 | local List = {}
| |
| 193 | for i,v in pairs(workspace:GetChildren())do | |
| 194 | if v:IsA("Model")then
| |
| 195 | if v:findFirstChild("Torso")then
| |
| 196 | if v ~= char then | |
| 197 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 198 | table.insert(List,v) | |
| 199 | end | |
| 200 | end | |
| 201 | end | |
| 202 | end | |
| 203 | end | |
| 204 | return List | |
| 205 | end | |
| 206 | ||
| 207 | function Landing() | |
| 208 | part=Instance.new('Part',mod5)
| |
| 209 | part.Anchored=true | |
| 210 | part.CanCollide=false | |
| 211 | part.FormFactor='Custom' | |
| 212 | part.Size=Vector3.new(2,2,2) | |
| 213 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
| 214 | part.Transparency=.7 | |
| 215 | part.BrickColor=BrickColor.new('Really black')
| |
| 216 | mesh=Instance.new('SpecialMesh',part)
| |
| 217 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 218 | mesh.Scale=Vector3.new(10,5,10) | |
| 219 | ||
| 220 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
| 221 | if v:FindFirstChild('Humanoid') then
| |
| 222 | v.Humanoid:TakeDamage(math.random(20,30)) | |
| 223 | v.Humanoid.PlatformStand = true | |
| 224 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 225 | end | |
| 226 | end | |
| 227 | ||
| 228 | coroutine.resume(coroutine.create(function() | |
| 229 | for i=0,3.8,0.05 do | |
| 230 | wait() | |
| 231 | part.CFrame=part.CFrame | |
| 232 | part.Transparency=i | |
| 233 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
| 234 | end | |
| 235 | part.Parent = nil | |
| 236 | end)) | |
| 237 | end | |
| 238 | ----- | |
| 239 | BoostedColorScheme = "Bright orange" | |
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | local lightspeed = math.random(0.1,0.2) | |
| 244 | local holy = false -- Is in holy/boosted form? | |
| 245 | local eColors = {"Really black", "Really black"}
| |
| 246 | local idz = {"326737588", "326737588"}
| |
| 247 | local Effects={}
| |
| 248 | local attackvalue = 1 | |
| 249 | ||
| 250 | function HasntTouched(plrname) | |
| 251 | local ret = true | |
| 252 | for _, v in pairs(Touche) do | |
| 253 | if v == plrname then | |
| 254 | ret = false | |
| 255 | end | |
| 256 | end | |
| 257 | return ret | |
| 258 | end | |
| 259 | ||
| 260 | ||
| 261 | ||
| 262 | ||
| 263 | shirt = Instance.new("Shirt", char)
| |
| 264 | shirt.Name = "Shirt" | |
| 265 | pants = Instance.new("Pants", char)
| |
| 266 | pants.Name = "Pants" | |
| 267 | char.Shirt.ShirtTemplate = "rbxassetid://206540957" | |
| 268 | char.Pants.PantsTemplate = "rbxassetid://206540791" | |
| 269 | ||
| 270 | if holy == false then | |
| 271 | eColors = {"Dark indigo", "Really black"}
| |
| 272 | else if holy == true then | |
| 273 | eColors = {BoostedColorScheme}
| |
| 274 | end | |
| 275 | end | |
| 276 | ||
| 277 | ||
| 278 | ||
| 279 | ||
| 280 | ||
| 281 | local ptz = {0.7, 0.8, 0.9, 1}
| |
| 282 | local ptz2 = {1.5, 1.6, 1.7, 1.8, 1.9, 2}
| |
| 283 | ||
| 284 | local edit = function(name,mat,col) | |
| 285 | name.Material = mat | |
| 286 | name.BrickColor = BrickColor.new(col) | |
| 287 | end | |
| 288 | ||
| 289 | ||
| 290 | function newRay(start,face,range,wat) | |
| 291 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 292 | hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 293 | return rey,hit,pos | |
| 294 | end | |
| 295 | ||
| 296 | ||
| 297 | --mossic | |
| 298 | lemosic = Instance.new("Sound",char) --Smile: print("â?º")
| |
| 299 | lemosic.SoundId = "rbxassetid://696587904"--410761150, 411368002 | |
| 300 | lemosic.Looped = true | |
| 301 | lemosic.Pitch = 1 | |
| 302 | lemosic.Volume = 1 | |
| 303 | wait(0.1) | |
| 304 | lemosic:Play() | |
| 305 | ---------------------------------------------------- | |
| 306 | --[[Additional Functions]] | |
| 307 | ||
| 308 | cf=CFrame.new | |
| 309 | vt=Vector3.new | |
| 310 | ||
| 311 | function swait(num) | |
| 312 | if num==0 or num==nil then | |
| 313 | game:service'RunService'.Stepped:wait(0) | |
| 314 | else | |
| 315 | for i=0,num do | |
| 316 | game:service'RunService'.Stepped:wait(0) | |
| 317 | end | |
| 318 | end | |
| 319 | end | |
| 320 | ||
| 321 | so = function(id,par,vol,pit) | |
| 322 | coroutine.resume(coroutine.create(function() | |
| 323 | local sou = Instance.new("Sound",par or workspace)
| |
| 324 | sou.Volume=vol | |
| 325 | sou.Pitch=pit or 1 | |
| 326 | sou.SoundId=id | |
| 327 | swait() | |
| 328 | sou:play() | |
| 329 | game:GetService("Debris"):AddItem(sou,6)
| |
| 330 | end)) | |
| 331 | end | |
| 332 | ---------------------------------------------------------- | |
| 333 | local player = game.Players.LocalPlayer | |
| 334 | local pchar = player.Character | |
| 335 | local mouse = player:GetMouse() | |
| 336 | local cam = workspace.CurrentCamera | |
| 337 | ||
| 338 | local rad = math.rad | |
| 339 | ||
| 340 | local keysDown = {}
| |
| 341 | local flySpeed = 0 | |
| 342 | local MAX_FLY_SPEED = 150 | |
| 343 | ||
| 344 | local canFly = false | |
| 345 | local flyToggled = false | |
| 346 | ||
| 347 | local forward, side = 0, 0 | |
| 348 | local lastForward, lastSide = 0, 0 | |
| 349 | ||
| 350 | local floatBP = Instance.new("BodyPosition")
| |
| 351 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 352 | local flyBV = Instance.new("BodyVelocity")
| |
| 353 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 354 | local turnBG = Instance.new("BodyGyro")
| |
| 355 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 356 | ||
| 357 | mouse.KeyDown:connect(function(key) | |
| 358 | keysDown[key] = true | |
| 359 | ||
| 360 | if key == "f" then | |
| 361 | flyToggled = not flyToggled | |
| 362 | ||
| 363 | if not flyToggled then | |
| 364 | stanceToggle = "Normal" | |
| 365 | floatBP.Parent = nil | |
| 366 | flyBV.Parent = nil | |
| 367 | turnBG.Parent = nil | |
| 368 | root.Velocity = Vector3.new() | |
| 369 | pchar.Humanoid.PlatformStand = false | |
| 370 | end | |
| 371 | end | |
| 372 | ||
| 373 | end) | |
| 374 | mouse.KeyUp:connect(function(key) | |
| 375 | keysDown[key] = nil | |
| 376 | end) | |
| 377 | ||
| 378 | local function updateFly() | |
| 379 | ||
| 380 | if not flyToggled then return end | |
| 381 | ||
| 382 | lastForward = forward | |
| 383 | lastSide = side | |
| 384 | ||
| 385 | forward = 0 | |
| 386 | side = 0 | |
| 387 | ||
| 388 | if keysDown.w then | |
| 389 | forward = forward + 1 | |
| 390 | end | |
| 391 | if keysDown.s then | |
| 392 | forward = forward - 1 | |
| 393 | end | |
| 394 | if keysDown.a then | |
| 395 | side = side - 1 | |
| 396 | end | |
| 397 | if keysDown.d then | |
| 398 | side = side + 1 | |
| 399 | end | |
| 400 | ||
| 401 | canFly = (forward ~= 0 or side ~= 0) | |
| 402 | ||
| 403 | if canFly then | |
| 404 | stanceToggle = "Floating" | |
| 405 | turnBG.Parent = root | |
| 406 | floatBP.Parent = nil | |
| 407 | flyBV.Parent = root | |
| 408 | ||
| 409 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 410 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 411 | else | |
| 412 | floatBP.position = root.Position | |
| 413 | floatBP.Parent = root | |
| 414 | ||
| 415 | flySpeed = flySpeed - 1 | |
| 416 | if flySpeed < 0 then flySpeed = 0 end | |
| 417 | end | |
| 418 | ||
| 419 | local camCF = cam.CoordinateFrame | |
| 420 | local in_forward = canFly and forward or lastForward | |
| 421 | local in_side = canFly and side or lastSide | |
| 422 | ||
| 423 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 424 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 425 | ||
| 426 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 427 | 0) | |
| 428 | end | |
| 429 | ||
| 430 | game:service'RunService'.RenderStepped:connect(function() | |
| 431 | if flyToggled then | |
| 432 | pchar.Humanoid.PlatformStand = true | |
| 433 | end | |
| 434 | updateFly() | |
| 435 | end) | |
| 436 | ||
| 437 | ||
| 438 | ------------------------------------------- | |
| 439 | repeat wait() until game.Players.LocalPlayer | |
| 440 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
| 441 | local Plr = game.Players.LocalPlayer | |
| 442 | ||
| 443 | Mouse.KeyDown:connect(function(KeyDown) | |
| 444 | if KeyDown == "0" then | |
| 445 | Plr.Character.Humanoid.WalkSpeed = 40 | |
| 446 | end | |
| 447 | end) | |
| 448 | ||
| 449 | Mouse.KeyUp:connect(function(KeyUp) | |
| 450 | if KeyUp == "0" then | |
| 451 | Plr.Character.Humanoid.WalkSpeed = 17 | |
| 452 | end | |
| 453 | end) | |
| 454 | ||
| 455 | ----------------------------------------------------------------- | |
| 456 | ||
| 457 | ------- | |
| 458 | fat = Instance.new("BindableEvent",script)
| |
| 459 | fat.Name = "Heartbeat" | |
| 460 | ||
| 461 | script:WaitForChild("Heartbeat")
| |
| 462 | ||
| 463 | frame = 1/30 | |
| 464 | tf = 0 | |
| 465 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
| 466 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
| 467 | lastframe = tick() | |
| 468 | script.Heartbeat:Fire() --ayy lmao | |
| 469 | ||
| 470 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
| |
| 471 | tf = tf + s | |
| 472 | if tf >= frame then | |
| 473 | if allowframeloss then | |
| 474 | script.Heartbeat:Fire() | |
| 475 | lastframe=tick() | |
| 476 | else | |
| 477 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
| |
| 478 | for i=1, math.floor(tf/frame) do | |
| 479 | script.Heartbeat:Fire() | |
| 480 | end | |
| 481 | lastframe=tick() | |
| 482 | end | |
| 483 | if tossremainder then | |
| 484 | tf = 0 | |
| 485 | else | |
| 486 | tf = tf - frame * math.floor(tf/frame) | |
| 487 | end | |
| 488 | end | |
| 489 | end) | |
| 490 | ---------------------------------------------------- | |
| 491 | for i,v in pairs(char:children()) do | |
| 492 | if v:IsA("Hat") then
| |
| 493 | v:Destroy() | |
| 494 | end | |
| 495 | end | |
| 496 | for i,v in pairs (hed:GetChildren()) do | |
| 497 | if v:IsA("Sound") then
| |
| 498 | v:Destroy() | |
| 499 | end | |
| 500 | end | |
| 501 | ---------------------------------------------------- | |
| 502 | Debounces = {
| |
| 503 | CanAttack = true; | |
| 504 | CanJoke = true; | |
| 505 | NoIdl = false; | |
| 506 | Slashing = false; | |
| 507 | Slashed = false; | |
| 508 | ks = false; | |
| 509 | } | |
| 510 | ---------------------------------------------------- | |
| 511 | function weld5(part0, part1, c0, c1) | |
| 512 | weeld=Instance.new("Weld", part0)
| |
| 513 | weeld.Part0=part0 | |
| 514 | weeld.Part1=part1 | |
| 515 | weeld.C0=c0 | |
| 516 | weeld.C1=c1 | |
| 517 | return weeld | |
| 518 | end | |
| 519 | ---------------------------------------------------- | |
| 520 | function NewPart(prnt,siz,cf,trans,anc,mat,col) | |
| 521 | local prt=Instance.new("Part")
| |
| 522 | prt.Parent=prnt | |
| 523 | prt.Name="Part" | |
| 524 | prt.Size=siz | |
| 525 | prt.CanCollide=false | |
| 526 | prt.Anchored=anc | |
| 527 | prt.Locked=true | |
| 528 | prt.Transparency = trans | |
| 529 | prt.TopSurface=10 | |
| 530 | prt.BottomSurface=10 | |
| 531 | prt.FrontSurface=10 | |
| 532 | prt.BackSurface=10 | |
| 533 | prt.LeftSurface=10 | |
| 534 | prt.RightSurface=10 | |
| 535 | prt:BreakJoints() | |
| 536 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 537 | prt.Material=mat | |
| 538 | prt.BrickColor=BrickColor.new(col) | |
| 539 | m=Instance.new("SpecialMesh",prt)
| |
| 540 | m.MeshType=6 | |
| 541 | return prt | |
| 542 | end | |
| 543 | ---------------------------------------------------- | |
| 544 | function lerp(a, b, t) -- Linear interpolation | |
| 545 | return a + (b - a)*t | |
| 546 | end | |
| 547 | ||
| 548 | function slerp(a, b, t) --Spherical interpolation | |
| 549 | dot = a:Dot(b) | |
| 550 | if dot > 0.99999 or dot < -0.99999 then | |
| 551 | return t <= 0.5 and a or b | |
| 552 | else | |
| 553 | r = math.acos(dot) | |
| 554 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 555 | end | |
| 556 | end | |
| 557 | ||
| 558 | function matrixInterpolate(a, b, t) | |
| 559 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 560 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 561 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 562 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 563 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 564 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 565 | local t = v1:Dot(v2) | |
| 566 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 567 | return CFrame.new() | |
| 568 | end | |
| 569 | return CFrame.new( | |
| 570 | v0.x, v0.y, v0.z, | |
| 571 | v1.x, v1.y, v1.z, | |
| 572 | v2.x, v2.y, v2.z, | |
| 573 | v3.x, v3.y, v3.z) | |
| 574 | end | |
| 575 | ---------------------------------------------------- | |
| 576 | function genWeld(a,b) | |
| 577 | local w = Instance.new("Weld",a)
| |
| 578 | w.Part0 = a | |
| 579 | w.Part1 = b | |
| 580 | return w | |
| 581 | end | |
| 582 | function weld(a, b) | |
| 583 | local weld = Instance.new("Weld")
| |
| 584 | weld.Name = "W" | |
| 585 | weld.Part0 = a | |
| 586 | weld.Part1 = b | |
| 587 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 588 | weld.Parent = a | |
| 589 | return weld; | |
| 590 | end | |
| 591 | ---------------------------------------------------- | |
| 592 | function Lerp(c1,c2,al) | |
| 593 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 594 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 595 | for i,v in pairs(com1) do | |
| 596 | com1[i] = v+(com2[i]-v)*al | |
| 597 | end | |
| 598 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 599 | end | |
| 600 | ---------------------------------------------------- | |
| 601 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 602 | local wld = Instance.new("Weld", wp1)
| |
| 603 | wld.Part0 = wp0 | |
| 604 | wld.Part1 = wp1 | |
| 605 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 606 | end | |
| 607 | ---------------------------------------------------- | |
| 608 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 609 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 610 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 611 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 612 | newWeld(torso, hed, 0, 1.5, 0) | |
| 613 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 614 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 615 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 616 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 617 | newWeld(root, torso, 0, -1, 0) | |
| 618 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 619 | ---------------------------------------------------- | |
| 620 | ---------------------------------------------------- | |
| 621 | New = function(Object, Parent, Name, Data) | |
| 622 | local Object = Instance.new(Object) | |
| 623 | for Index, Value in pairs(Data or {}) do
| |
| 624 | Object[Index] = Value | |
| 625 | end | |
| 626 | Object.Parent = Parent | |
| 627 | Object.Name = Name | |
| 628 | return Object | |
| 629 | end | |
| 630 | ---------------------------------------------------- | |
| 631 | ||
| 632 | ||
| 633 | ---------------------------------------------------- | |
| 634 | ||
| 635 | ---------------------------------------------------- | |
| 636 | hair = Instance.new("Part", hed)
| |
| 637 | hair.BrickColor = BrickColor.new("Reddish brown")
| |
| 638 | hair.Anchored = false | |
| 639 | hair.Locked = true | |
| 640 | hair.CanCollide = false | |
| 641 | hair.Size = Vector3.new(1, 1, 1) | |
| 642 | hair.CFrame = char.Head.CFrame | |
| 643 | hairm = Instance.new("SpecialMesh", hair)
| |
| 644 | hairm.MeshId = "rbxassetid://49929429" | |
| 645 | hairm.TextureId = "rbxassetid://113327659" | |
| 646 | hairm.MeshType = Enum.MeshType.FileMesh | |
| 647 | hairm.Name = "Mesh" | |
| 648 | hairm.Scale = Vector3.new(1, 1, 1) | |
| 649 | hairw = Instance.new("Weld", hair)
| |
| 650 | hairw.Part0 = hed | |
| 651 | hairw.Part1 = hair | |
| 652 | hairm.Offset = Vector3.new(0.0, 0.7, 0.0) | |
| 653 | ||
| 654 | ---------------------------------------------------- | |
| 655 | ---------------------------------------------------- | |
| 656 | ||
| 657 | ---------------------------------------------------------------- | |
| 658 | local animpose = "Idle" | |
| 659 | local lastanimpose = "Idle" | |
| 660 | local grab = false | |
| 661 | local sine = 0 | |
| 662 | local change = 1 | |
| 663 | local val = 0 | |
| 664 | local ffing = false | |
| 665 | local jump = false | |
| 666 | ---------------------------------------------------- | |
| 667 | ---------------------------------------------------- | |
| 668 | mouse.KeyDown:connect(function(key) | |
| 669 | if key == "e" then | |
| 670 | if Debounces.CanAttack == true then | |
| 671 | Debounces.CanAttack = false | |
| 672 | Debounces.on = true | |
| 673 | Debounces.NoIdl = true | |
| 674 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 675 | z = Instance.new("Sound", rarm)
| |
| 676 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 677 | z.Volume = 1.25 | |
| 678 | z.Pitch = pt[math.random(1,#pt)] | |
| 679 | z.Looped = false | |
| 680 | z:Play() | |
| 681 | Debounces.RPunch = true | |
| 682 | Debounces.LPunch = true | |
| 683 | Debounces.ks = true | |
| 684 | Debounces.ks2 = true | |
| 685 | for i = 1, 3 do | |
| 686 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 687 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 688 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 689 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 690 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 691 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 692 | if Debounces.on == false then break end | |
| 693 | wait() | |
| 694 | end | |
| 695 | z2 = Instance.new("Sound", larm)
| |
| 696 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 697 | z2.Volume = 1.25 | |
| 698 | z2.Pitch = pt[math.random(1,#pt)] | |
| 699 | z2.Looped = false | |
| 700 | z2:Play() | |
| 701 | for i = 1, 3 do | |
| 702 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 703 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 704 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 705 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 706 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 707 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 708 | if Debounces.on == false then break end | |
| 709 | wait() | |
| 710 | end | |
| 711 | z3 = Instance.new("Sound", rarm)
| |
| 712 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 713 | z3.Volume = 1.25 | |
| 714 | z3.Pitch = pt[math.random(1,#pt)] | |
| 715 | z3.Looped = false | |
| 716 | z3:Play() | |
| 717 | for i = 1, 3 do | |
| 718 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 719 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 720 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 721 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 722 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 723 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 724 | if Debounces.on == false then break end | |
| 725 | wait() | |
| 726 | end | |
| 727 | z4 = Instance.new("Sound", larm)
| |
| 728 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 729 | z4.Volume = 1.25 | |
| 730 | z4.Pitch = pt[math.random(1,#pt)] | |
| 731 | z4.Looped = false | |
| 732 | z4:Play() | |
| 733 | for i = 1, 3 do | |
| 734 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 735 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 736 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 737 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 738 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 739 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 740 | if Debounces.on == false then break end | |
| 741 | wait() | |
| 742 | end | |
| 743 | z5 = Instance.new("Sound", rarm)
| |
| 744 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 745 | z5.Volume = 1.25 | |
| 746 | z5.Pitch = pt[math.random(1,#pt)] | |
| 747 | z5.Looped = false | |
| 748 | z5:Play() | |
| 749 | for i = 1, 3 do | |
| 750 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 754 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 755 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 756 | if Debounces.on == false then break end | |
| 757 | wait() | |
| 758 | end | |
| 759 | z6 = Instance.new("Sound", larm)
| |
| 760 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 761 | z6.Volume = 1.25 | |
| 762 | z6.Pitch = pt[math.random(1,#pt)] | |
| 763 | z6.Looped = false | |
| 764 | z6:Play() | |
| 765 | for i = 1, 3 do | |
| 766 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 767 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 768 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 769 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 770 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 771 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 772 | if Debounces.on == false then break end | |
| 773 | wait() | |
| 774 | end | |
| 775 | z7 = Instance.new("Sound", rarm)
| |
| 776 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 777 | z7.Volume = 1.25 | |
| 778 | z7.Pitch = pt[math.random(1,#pt)] | |
| 779 | z7.Looped = false | |
| 780 | z7:Play() | |
| 781 | for i = 1, 3 do | |
| 782 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 783 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 784 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 785 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 786 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 787 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 788 | if Debounces.on == false then break end | |
| 789 | wait() | |
| 790 | end | |
| 791 | z8 = Instance.new("Sound", larm)
| |
| 792 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 793 | z8.Volume = 1.25 | |
| 794 | z8.Pitch = pt[math.random(1,#pt)] | |
| 795 | z8.Looped = false | |
| 796 | z8:Play() | |
| 797 | for i = 1, 3 do | |
| 798 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 799 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 800 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 801 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 802 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 803 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 804 | if Debounces.on == false then break end | |
| 805 | wait() | |
| 806 | end | |
| 807 | z9 = Instance.new("Sound", rarm)
| |
| 808 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 809 | z9.Volume = 1.25 | |
| 810 | z9.Pitch = pt[math.random(1,#pt)] | |
| 811 | z9.Looped = false | |
| 812 | z9:Play() | |
| 813 | for i = 1, 3 do | |
| 814 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 815 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 816 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 817 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 818 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 819 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 820 | if Debounces.on == false then break end | |
| 821 | wait() | |
| 822 | end | |
| 823 | z10 = Instance.new("Sound", larm)
| |
| 824 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 825 | z10.Volume = 1.25 | |
| 826 | z10.Pitch = pt[math.random(1,#pt)] | |
| 827 | z10.Looped = false | |
| 828 | z10:Play() | |
| 829 | for i = 1, 3 do | |
| 830 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 831 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 832 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 833 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 834 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 835 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 836 | if Debounces.on == false then break end | |
| 837 | wait() | |
| 838 | end | |
| 839 | z11 = Instance.new("Sound", rarm)
| |
| 840 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 841 | z11.Volume = 1.25 | |
| 842 | z11.Pitch = pt[math.random(1,#pt)] | |
| 843 | z11.Looped = false | |
| 844 | z11:Play() | |
| 845 | for i = 1, 3 do | |
| 846 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 847 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 848 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 849 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 850 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 851 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 852 | if Debounces.on == false then break end | |
| 853 | wait() | |
| 854 | end | |
| 855 | z12 = Instance.new("Sound", larm)
| |
| 856 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 857 | z12.Volume = 1.25 | |
| 858 | z12.Pitch = pt[math.random(1,#pt)] | |
| 859 | z12.Looped = false | |
| 860 | z12:Play() | |
| 861 | for i = 1, 3 do | |
| 862 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 863 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 864 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 865 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 866 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 867 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 868 | if Debounces.on == false then break end | |
| 869 | wait() | |
| 870 | end | |
| 871 | z13 = Instance.new("Sound", rarm)
| |
| 872 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 873 | z13.Volume = 1.25 | |
| 874 | z13.Pitch = pt[math.random(1,#pt)] | |
| 875 | z13.Looped = false | |
| 876 | z13:Play() | |
| 877 | for i = 1, 3 do | |
| 878 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 879 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 880 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 881 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 882 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 883 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 884 | if Debounces.on == false then break end | |
| 885 | wait() | |
| 886 | end | |
| 887 | z14 = Instance.new("Sound", larm)
| |
| 888 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 889 | z14.Volume = 1.25 | |
| 890 | z14.Pitch = pt[math.random(1,#pt)] | |
| 891 | z14.Looped = false | |
| 892 | z14:Play() | |
| 893 | for i = 1, 3 do | |
| 894 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 895 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 896 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 897 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 898 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 899 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 900 | if Debounces.on == false then break end | |
| 901 | wait() | |
| 902 | end | |
| 903 | z15 = Instance.new("Sound", rarm)
| |
| 904 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 905 | z15.Volume = 1.25 | |
| 906 | z15.Pitch = pt[math.random(1,#pt)] | |
| 907 | z15.Looped = false | |
| 908 | z15:Play() | |
| 909 | for i = 1, 3 do | |
| 910 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 911 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 912 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 913 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 914 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 915 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 916 | if Debounces.on == false then break end | |
| 917 | wait() | |
| 918 | end | |
| 919 | z16 = Instance.new("Sound", larm)
| |
| 920 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 921 | z16.Volume = 1.25 | |
| 922 | z16.Pitch = pt[math.random(1,#pt)] | |
| 923 | z16.Looped = false | |
| 924 | z16:Play() | |
| 925 | for i = 1, 3 do | |
| 926 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 927 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 928 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 929 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 930 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 931 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 932 | if Debounces.on == false then break end | |
| 933 | wait() | |
| 934 | end | |
| 935 | z17 = Instance.new("Sound", rarm)
| |
| 936 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 937 | z17.Volume = 1.25 | |
| 938 | z17.Pitch = pt[math.random(1,#pt)] | |
| 939 | z17.Looped = false | |
| 940 | z17:Play() | |
| 941 | for i = 1, 3 do | |
| 942 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 943 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 946 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 947 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 948 | if Debounces.on == false then break end | |
| 949 | wait() | |
| 950 | end | |
| 951 | z18 = Instance.new("Sound", larm)
| |
| 952 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 953 | z18.Volume = 1.25 | |
| 954 | z18.Pitch = pt[math.random(1,#pt)] | |
| 955 | z18.Looped = false | |
| 956 | z18:Play() | |
| 957 | for i = 1, 3 do | |
| 958 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 959 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 960 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 961 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 962 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 963 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 964 | if Debounces.on == false then break end | |
| 965 | wait() | |
| 966 | end | |
| 967 | z19 = Instance.new("Sound", rarm)
| |
| 968 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 969 | z19.Volume = 1.25 | |
| 970 | z19.Pitch = pt[math.random(1,#pt)] | |
| 971 | z19.Looped = false | |
| 972 | z19:Play() | |
| 973 | for i = 1, 3 do | |
| 974 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 975 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 976 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 977 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 978 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 979 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 980 | if Debounces.on == false then break end | |
| 981 | wait() | |
| 982 | end | |
| 983 | z20 = Instance.new("Sound", larm)
| |
| 984 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 985 | z20.Volume = 1.25 | |
| 986 | z20.Pitch = pt[math.random(1,#pt)] | |
| 987 | z20.Looped = false | |
| 988 | z20:Play() | |
| 989 | for i = 1, 3 do | |
| 990 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 991 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 993 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 994 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 995 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 996 | if Debounces.on == false then break end | |
| 997 | wait() | |
| 998 | end | |
| 999 | z:Destroy() | |
| 1000 | z2:Destroy() | |
| 1001 | z3:Destroy() | |
| 1002 | z4:Destroy() | |
| 1003 | z5:Destroy() | |
| 1004 | z6:Destroy() | |
| 1005 | z7:Destroy() | |
| 1006 | z8:Destroy() | |
| 1007 | z9:Destroy() | |
| 1008 | z10:Destroy() | |
| 1009 | z11:Destroy() | |
| 1010 | z12:Destroy() | |
| 1011 | z13:Destroy() | |
| 1012 | z14:Destroy() | |
| 1013 | z15:Destroy() | |
| 1014 | z16:Destroy() | |
| 1015 | z17:Destroy() | |
| 1016 | z18:Destroy() | |
| 1017 | z19:Destroy() | |
| 1018 | z20:Destroy() | |
| 1019 | Debounces.LPunch = false | |
| 1020 | Debounces.RPunch = false | |
| 1021 | Debounces.ks = false | |
| 1022 | Debounces.ks2 = false | |
| 1023 | if Debounces.CanAttack == false then | |
| 1024 | Debounces.CanAttack = true | |
| 1025 | Debounces.on = false | |
| 1026 | Debounces.NoIdl = false | |
| 1027 | end | |
| 1028 | end | |
| 1029 | end | |
| 1030 | end) | |
| 1031 | --------- | |
| 1032 | Charging = false | |
| 1033 | chargewait = false | |
| 1034 | mouse.KeyDown:connect(function(key) | |
| 1035 | if key == "h" then | |
| 1036 | if Charging == false and chargewait == false then | |
| 1037 | Charging = true | |
| 1038 | chargewait = true | |
| 1039 | if Debounces.CanAttack == true then | |
| 1040 | Debounces.CanAttack = false | |
| 1041 | Debounces.NoIdl = true | |
| 1042 | Debounces.on = true | |
| 1043 | ||
| 1044 | ||
| 1045 | if holy ~= true then | |
| 1046 | holy = true | |
| 1047 | else holy = false | |
| 1048 | end | |
| 1049 | ||
| 1050 | ||
| 1051 | for i = 1,20 do | |
| 1052 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
| 1053 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
| 1054 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 1055 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 1056 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 1057 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 1058 | if Debounces.on == false then break end | |
| 1059 | rs:wait() | |
| 1060 | end | |
| 1061 | pt=Instance.new('Part',torso)
| |
| 1062 | pt.Anchored=true | |
| 1063 | pt.CanCollide=false | |
| 1064 | pt.Locked = true | |
| 1065 | pt.Material = "Neon" | |
| 1066 | pt.FormFactor='Custom' | |
| 1067 | pt.Size=Vector3.new(1,1,1) | |
| 1068 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 1069 | pt.Transparency=.6 | |
| 1070 | ||
| 1071 | if holy == false then | |
| 1072 | --mossic | |
| 1073 | lemosic = Instance.new("Sound",char) --Smile: print("â?º")
| |
| 1074 | lemosic.SoundId = "rbxassetid://409015496"--410761150, 411368002 | |
| 1075 | lemosic.Looped = true | |
| 1076 | lemosic.Pitch = 1 | |
| 1077 | lemosic.Volume = 1 | |
| 1078 | wait(0.1) | |
| 1079 | lemosic:Play() | |
| 1080 | end | |
| 1081 | ||
| 1082 | if holy == true then | |
| 1083 | --moosic | |
| 1084 | mosic = Instance.new("Sound",char) --Smile: print("â?º")
| |
| 1085 | mosic.SoundId = "rbxassetid://320815294"--410761150, 411368002 | |
| 1086 | mosic.Looped = true | |
| 1087 | mosic.Pitch = 1 | |
| 1088 | mosic.Volume = 1 | |
| 1089 | wait(0.1) | |
| 1090 | mosic:Play() | |
| 1091 | lemosic:Remove() | |
| 1092 | end | |
| 1093 | if holy == false then | |
| 1094 | lemosic:Play() | |
| 1095 | mosic:Remove() | |
| 1096 | end | |
| 1097 | ||
| 1098 | ||
| 1099 | if holy == true then | |
| 1100 | pt.BrickColor=BrickColor.new(BoostedColorScheme) | |
| 1101 | else | |
| 1102 | pt.BrickColor = BrickColor.new("Really black")
| |
| 1103 | end | |
| 1104 | ||
| 1105 | msh=Instance.new('SpecialMesh',pt)
| |
| 1106 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1107 | msh.Scale=Vector3.new(8,4,8) | |
| 1108 | pt2=pt:clone() | |
| 1109 | pt2.Parent = torso | |
| 1110 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 1111 | ||
| 1112 | if holy == true then | |
| 1113 | pt2.BrickColor=BrickColor.new(BoostedColorScheme) | |
| 1114 | else | |
| 1115 | pt2.BrickColor = BrickColor.new("Dark indigo")
| |
| 1116 | end | |
| 1117 | ||
| 1118 | ||
| 1119 | msh2=msh:clone() | |
| 1120 | msh2.Parent=pt2 | |
| 1121 | msh2.Scale=Vector3.new(10,5,10) | |
| 1122 | ||
| 1123 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
| |
| 1124 | ||
| 1125 | bl = Instance.new("Part", char)
| |
| 1126 | bl.Locked = true | |
| 1127 | bl.Name = "Shell" | |
| 1128 | ||
| 1129 | if holy == true then | |
| 1130 | bl.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 1131 | else | |
| 1132 | bl.BrickColor = BrickColor.new("Really black")
| |
| 1133 | end | |
| 1134 | ||
| 1135 | bl.Anchored = true | |
| 1136 | bl.Material = "Neon" | |
| 1137 | bl.CanCollide = false | |
| 1138 | bl.Transparency = 0 | |
| 1139 | bl.Reflectance = 0 | |
| 1140 | bl.BottomSurface = 0 | |
| 1141 | bl.TopSurface = 0 | |
| 1142 | bl.Shape = 0 | |
| 1143 | blm = Instance.new("SpecialMesh",bl)
| |
| 1144 | blm.MeshType = "Sphere" | |
| 1145 | blm.Scale = Vector3.new(1,1,1) | |
| 1146 | ||
| 1147 | if holy == true then | |
| 1148 | so("http://www.roblox.com/asset/?id=263254799",hed,1,1)
| |
| 1149 | so("http://www.roblox.com/asset/?id=263254799",torso,1,1.2)
| |
| 1150 | so("http://roblox.com/asset/?id=168586621",torso,1,0.5)
| |
| 1151 | end | |
| 1152 | ||
| 1153 | if holy == false then | |
| 1154 | so("http://roblox.com/asset/?id=168586621",torso,1,0.5)
| |
| 1155 | end | |
| 1156 | ||
| 1157 | if holy == true then | |
| 1158 | hair.BrickColor = BrickColor.new("Rust")
| |
| 1159 | hairm.MeshId = "rbxassetid://15730710" | |
| 1160 | hairm.TextureId = "rbxassetid://20642711" | |
| 1161 | hairm.Scale = Vector3.new(1, 1, 1) | |
| 1162 | hairm.Offset = Vector3.new(0, 0.6, 0.0) | |
| 1163 | hed.face.Texture = "rbxassetid://14020216" | |
| 1164 | end | |
| 1165 | ||
| 1166 | if holy == false then | |
| 1167 | hair.BrickColor = BrickColor.new("Rust")
| |
| 1168 | hairm.MeshId = "rbxassetid://15730710" | |
| 1169 | hairm.TextureId = "rbxassetid://20642711" | |
| 1170 | hairm.Scale = Vector3.new(1, 1, 1) | |
| 1171 | hairm.Offset = Vector3.new(0.0, 0.6, 0.0) | |
| 1172 | hed.face.Texture = "rbxassetid://139636605" | |
| 1173 | ||
| 1174 | end | |
| 1175 | ||
| 1176 | ||
| 1177 | ||
| 1178 | ||
| 1179 | ||
| 1180 | coroutine.resume(coroutine.create(function() | |
| 1181 | for i=1, math.huge, 4 do | |
| 1182 | if Charging == true then | |
| 1183 | rs:wait() | |
| 1184 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 1185 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
| 1186 | bl.Transparency = bl.Transparency + 0.05 | |
| 1187 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 1188 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 1189 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
| 1190 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
| 1191 | elseif Charging == false then break | |
| 1192 | end | |
| 1193 | end | |
| 1194 | end)) | |
| 1195 | ||
| 1196 | repeat | |
| 1197 | local p = Instance.new('Part',torso)
| |
| 1198 | p.formFactor = 'Custom' | |
| 1199 | p.Size = Vector3.new(1,1,1) | |
| 1200 | ||
| 1201 | if holy == true then | |
| 1202 | p.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 1203 | else | |
| 1204 | p.BrickColor = BrickColor.new("Really black")
| |
| 1205 | end | |
| 1206 | ||
| 1207 | ||
| 1208 | ||
| 1209 | ||
| 1210 | ||
| 1211 | p.CanCollide = false | |
| 1212 | p.Transparency = 0 | |
| 1213 | p.Anchored = true | |
| 1214 | p.Locked=true | |
| 1215 | p.Material = "Neon" | |
| 1216 | s = math.random(1,40)/10 | |
| 1217 | local m = Instance.new("BlockMesh",p)
| |
| 1218 | m.Scale = Vector3.new(s,s,s) | |
| 1219 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1220 | --[[coroutine.wrap(function() | |
| 1221 | wait(2) | |
| 1222 | while Charging == true do | |
| 1223 | wait(2) | |
| 1224 | GroundWave1() | |
| 1225 | wait(2) | |
| 1226 | end | |
| 1227 | end)()]]-- | |
| 1228 | Spawn(function() | |
| 1229 | while rs:wait() do | |
| 1230 | if Charging == true then | |
| 1231 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
| 1232 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
| 1233 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
| 1234 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 1235 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
| 1236 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
| 1237 | elseif Charging == false then break | |
| 1238 | end | |
| 1239 | end | |
| 1240 | end) | |
| 1241 | Spawn(function() | |
| 1242 | while rs:wait() do | |
| 1243 | if p.Transparency >= 1 then p:Destroy() break end | |
| 1244 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 1245 | p.Transparency = p.Transparency+0.01 | |
| 1246 | end | |
| 1247 | end) | |
| 1248 | wait(.3) | |
| 1249 | ||
| 1250 | ||
| 1251 | until Charging == false | |
| 1252 | end | |
| 1253 | end | |
| 1254 | end | |
| 1255 | end) | |
| 1256 | ||
| 1257 | ||
| 1258 | ---------------------------------------------------- | |
| 1259 | mouse.KeyDown:connect(function(key) | |
| 1260 | if key == "m" then | |
| 1261 | hum.WalkSpeed = 0 | |
| 1262 | if Debounces.CanAttack == true then | |
| 1263 | Debounces.CanAttack = false | |
| 1264 | Debounces.on = true | |
| 1265 | Debounces.NoIdl = true | |
| 1266 | --[[x = Instance.new("Sound",char)
| |
| 1267 | x.SoundId = "http://www.roblox.com/asset/?id=169445572" | |
| 1268 | x.Looped = false | |
| 1269 | x.Pitch = 1.1 | |
| 1270 | x.Volume = 1 | |
| 1271 | x:Play() | |
| 1272 | x2 = Instance.new("Sound",char)
| |
| 1273 | x2.SoundId = "http://www.roblox.com/asset/?id=169380495" | |
| 1274 | x2.Looped = false | |
| 1275 | x2.Pitch = .7 | |
| 1276 | x2.Volume = 1 | |
| 1277 | wait(.1) | |
| 1278 | x:Play() | |
| 1279 | x2:Play() | |
| 1280 | for i = 1, 20 do | |
| 1281 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.3,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
| 1282 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
| 1283 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
| 1284 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
| 1285 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
| 1286 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
| 1287 | ||
| 1288 | if Debounces.on == false then break end | |
| 1289 | wait() | |
| 1290 | x:Destroy() | |
| 1291 | x2:Destroy() | |
| 1292 | end | |
| 1293 | wait(1)]]-- | |
| 1294 | local rng = Instance.new("Part", char)
| |
| 1295 | rng.Anchored = true | |
| 1296 | rng.BrickColor = BrickColor.new("Really black")
| |
| 1297 | rng.CanCollide = false | |
| 1298 | rng.FormFactor = 3 | |
| 1299 | rng.Name = "Ring" | |
| 1300 | rng.Size = Vector3.new(1, 1, 1) | |
| 1301 | rng.Transparency = 0.35 | |
| 1302 | rng.TopSurface = 0 | |
| 1303 | rng.BottomSurface = 0 | |
| 1304 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
| 1305 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1306 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1307 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1308 | rngm.Scale = Vector3.new(1, 1, 2) | |
| 1309 | x = Instance.new("Sound",char)
| |
| 1310 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
| 1311 | x.Looped = false | |
| 1312 | x.Pitch = .7 | |
| 1313 | x.Volume = 1 | |
| 1314 | x:Play() | |
| 1315 | coroutine.wrap(function() | |
| 1316 | for i = 1, 60, 2 do | |
| 1317 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
| 1318 | rng.Transparency = i/60 | |
| 1319 | wait() | |
| 1320 | end | |
| 1321 | wait() | |
| 1322 | rng:Destroy() | |
| 1323 | end)() | |
| 1324 | hum.WalkSpeed = 50 | |
| 1325 | BV = Instance.new("BodyVelocity", torso)
| |
| 1326 | BV.maxForce = Vector3.new(0,200000,0) | |
| 1327 | BV.P = 50000 | |
| 1328 | BV.velocity = Vector3.new(0,800,0) | |
| 1329 | for i = 1, 20 do | |
| 1330 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
| 1331 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
| 1332 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
| 1333 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
| 1334 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
| 1335 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.6) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
| 1336 | ||
| 1337 | if Debounces.on == false then break end | |
| 1338 | wait() | |
| 1339 | end | |
| 1340 | x:Destroy() | |
| 1341 | BV:Destroy() | |
| 1342 | --[[for i = 1, 30 do | |
| 1343 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
| 1344 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) | |
| 1345 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
| 1346 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 1347 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.2, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
| 1348 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.4, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
| 1349 | if Debounces.on == false then break end | |
| 1350 | wait() | |
| 1351 | end]]-- | |
| 1352 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
| 1353 | for i = 1, 30 do | |
| 1354 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
| 1355 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1356 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 1357 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 1358 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 1359 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 1360 | ||
| 1361 | if Debounces.on == false then break end | |
| 1362 | wait() | |
| 1363 | end | |
| 1364 | end | |
| 1365 | Debounces.on = false | |
| 1366 | Debounces.NoIdl = false | |
| 1367 | local ry,ht,ps=nil,nil,nil | |
| 1368 | while ht==nil do | |
| 1369 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
| |
| 1370 | wait() | |
| 1371 | end | |
| 1372 | z = Instance.new("Sound",char)
| |
| 1373 | z.SoundId = "rbxassetid://142070127" | |
| 1374 | z.Volume = 1 | |
| 1375 | wait(.1) | |
| 1376 | z:Play() | |
| 1377 | Landing() | |
| 1378 | hum.WalkSpeed = 8 | |
| 1379 | if Debounces.CanAttack == false then | |
| 1380 | Debounces.CanAttack = true | |
| 1381 | end | |
| 1382 | end | |
| 1383 | end | |
| 1384 | end) | |
| 1385 | ------------- | |
| 1386 | ------------------ | |
| 1387 | mouse.KeyDown:connect(function(key) | |
| 1388 | if key == "g" then | |
| 1389 | if Debounces.CanAttack == true then | |
| 1390 | Debounces.CanAttack = false | |
| 1391 | Debounces.NoIdl = true | |
| 1392 | Debounces.on = true | |
| 1393 | local shell = Instance.new("Part",torso)
| |
| 1394 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1395 | shell.Anchored = true | |
| 1396 | shell.CanCollide = false | |
| 1397 | shell.Locked = true | |
| 1398 | shell.TopSurface = "SmoothNoOutlines" | |
| 1399 | shell.BottomSurface = "SmoothNoOutlines" | |
| 1400 | shell.Size = Vector3.new(1,1,1) | |
| 1401 | shellm = Instance.new("SpecialMesh",shell)
| |
| 1402 | shellm.MeshType = "Sphere" | |
| 1403 | shellm.Scale = Vector3.new(1,1,1) | |
| 1404 | local shell2 = Instance.new("Part",torso)
| |
| 1405 | shell2.BrickColor = BrickColor.new("Really black")
| |
| 1406 | shell2.Anchored = true | |
| 1407 | shell2.CanCollide = false | |
| 1408 | shell2.Locked = true | |
| 1409 | shell2.TopSurface = "SmoothNoOutlines" | |
| 1410 | shell2.BottomSurface = "SmoothNoOutlines" | |
| 1411 | shell2.Size = Vector3.new(1,1,1) | |
| 1412 | shellm2 = Instance.new("SpecialMesh",shell2)
| |
| 1413 | shellm2.MeshType = "Sphere" | |
| 1414 | shellm2.Scale = Vector3.new(1,1,1) | |
| 1415 | ||
| 1416 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1417 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1418 | local List = {}
| |
| 1419 | for i,v in pairs(workspace:GetChildren())do | |
| 1420 | if v:IsA("Model")then
| |
| 1421 | if v:findFirstChild("Torso")then
| |
| 1422 | if v ~= char then | |
| 1423 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1424 | table.insert(List,v) | |
| 1425 | end | |
| 1426 | end | |
| 1427 | end | |
| 1428 | end | |
| 1429 | end | |
| 1430 | return List | |
| 1431 | end | |
| 1432 | ||
| 1433 | Shell = function() | |
| 1434 | local X = Instance.new("Part",char)
| |
| 1435 | local O = Instance.new("ObjectValue",X)
| |
| 1436 | O.Name = "creator" | |
| 1437 | X.Locked = true | |
| 1438 | X.Name = "Shell" | |
| 1439 | X.Anchored = false | |
| 1440 | X.CanCollide = false | |
| 1441 | X.Transparency = 0 | |
| 1442 | X.Reflectance = 0 | |
| 1443 | X.BottomSurface = 0 | |
| 1444 | X.TopSurface = 0 | |
| 1445 | X.Shape = 0 | |
| 1446 | local V = Instance.new("ObjectValue",X)
| |
| 1447 | V.Value = char | |
| 1448 | V.Name = "creator" | |
| 1449 | X.BrickColor = BrickColor.new("Really black")
| |
| 1450 | X.Size = Vector3.new(1,1,1) | |
| 1451 | --X.Material = "Neon" | |
| 1452 | local Z = Instance.new("SpecialMesh",X)
| |
| 1453 | Z.MeshType = "Sphere" | |
| 1454 | Z.Scale = Vector3.new(1,1,1) | |
| 1455 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 1456 | local bv = Instance.new("BodyVelocity",X)
| |
| 1457 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 1458 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 1459 | bv.velocity = root.CFrame.lookVector*65 | |
| 1460 | Explode = X.Touched:connect(function(hit) | |
| 1461 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then
| |
| 1462 | local cf = X.CFrame | |
| 1463 | bv:Destroy() | |
| 1464 | X.Anchored = true | |
| 1465 | Z:Remove() | |
| 1466 | Explode:disconnect() | |
| 1467 | X.Size = Vector3.new(3,3,3) | |
| 1468 | X.Touched:connect(function(hit) end) | |
| 1469 | X.CanCollide = false | |
| 1470 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
| 1471 | if v:FindFirstChild('Humanoid') then
| |
| 1472 | v.Humanoid:TakeDamage(math.random(6,12)) | |
| 1473 | end | |
| 1474 | end | |
| 1475 | for i = 1, (40) do rs:wait() | |
| 1476 | X.Transparency = X.Transparency + (1/40) | |
| 1477 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 1478 | X.CFrame = cf | |
| 1479 | end | |
| 1480 | X:Destroy() | |
| 1481 | end | |
| 1482 | end) | |
| 1483 | end | |
| 1484 | Shell() | |
| 1485 | for i = 1, 10 do | |
| 1486 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1487 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1488 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1489 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1490 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
| 1491 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
| 1492 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
| 1493 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
| 1494 | if Debounces.on == false then break end | |
| 1495 | rs:wait() | |
| 1496 | end | |
| 1497 | Shell() | |
| 1498 | shell.Transparency = 1 | |
| 1499 | for i = 1, 10 do | |
| 1500 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1501 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1502 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1503 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1504 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1505 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1506 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1507 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1508 | if Debounces.on == false then break end | |
| 1509 | rs:wait() | |
| 1510 | end | |
| 1511 | Shell() | |
| 1512 | shell.Transparency = 0 | |
| 1513 | shell2.Transparency = 1 | |
| 1514 | for i = 1, 10 do | |
| 1515 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1516 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1517 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1518 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1519 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 1520 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1521 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1522 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1523 | if Debounces.on == false then break end | |
| 1524 | rs:wait() | |
| 1525 | end | |
| 1526 | Shell() | |
| 1527 | shell2.Transparency = 0 | |
| 1528 | shell.Transparency = 1 | |
| 1529 | for i = 1, 10 do | |
| 1530 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1531 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1532 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1533 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1534 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1535 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1536 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1537 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1538 | if Debounces.on == false then break end | |
| 1539 | rs:wait() | |
| 1540 | end | |
| 1541 | Shell() | |
| 1542 | shell.Transparency = 0 | |
| 1543 | shell2.Transparency = 1 | |
| 1544 | for i = 1, 10 do | |
| 1545 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1546 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1547 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1548 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1549 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 1550 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1551 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1552 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1553 | if Debounces.on == false then break end | |
| 1554 | rs:wait() | |
| 1555 | end | |
| 1556 | Shell() | |
| 1557 | shell2.Transparency = 0 | |
| 1558 | shell.Transparency = 1 | |
| 1559 | for i = 1, 10 do | |
| 1560 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1561 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1562 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1563 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1564 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1565 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1566 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1567 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1568 | if Debounces.on == false then break end | |
| 1569 | rs:wait() | |
| 1570 | end | |
| 1571 | Shell() | |
| 1572 | shell.Transparency = 0 | |
| 1573 | shell2.Transparency = 1 | |
| 1574 | for i = 1, 10 do | |
| 1575 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1576 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1577 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1578 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
| 1579 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1580 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1581 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1582 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1583 | if Debounces.on == false then break end | |
| 1584 | rs:wait() | |
| 1585 | end | |
| 1586 | Shell() | |
| 1587 | shell2.Transparency = 0 | |
| 1588 | shell.Transparency = 1 | |
| 1589 | for i = 1, 10 do | |
| 1590 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1591 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1592 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1593 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1594 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1595 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1596 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1597 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1598 | if Debounces.on == false then break end | |
| 1599 | rs:wait() | |
| 1600 | end | |
| 1601 | Shell() | |
| 1602 | shell.Transparency = 0 | |
| 1603 | shell2.Transparency = 1 | |
| 1604 | for i = 1, 10 do | |
| 1605 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1606 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1607 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1608 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1609 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 1610 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1611 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1612 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1613 | if Debounces.on == false then break end | |
| 1614 | rs:wait() | |
| 1615 | end | |
| 1616 | Shell() | |
| 1617 | shell2.Transparency = 0 | |
| 1618 | shell.Transparency = 1 | |
| 1619 | for i = 1, 10 do | |
| 1620 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1621 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1622 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1623 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1624 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1625 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1626 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1627 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1628 | if Debounces.on == false then break end | |
| 1629 | rs:wait() | |
| 1630 | end | |
| 1631 | Shell() | |
| 1632 | shell.Transparency = 0 | |
| 1633 | shell2.Transparency = 1 | |
| 1634 | for i = 1, 10 do | |
| 1635 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1636 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1637 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1638 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1639 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 1640 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1641 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1642 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1643 | if Debounces.on == false then break end | |
| 1644 | rs:wait() | |
| 1645 | end | |
| 1646 | Shell() | |
| 1647 | shell2.Transparency = 0 | |
| 1648 | shell.Transparency = 1 | |
| 1649 | for i = 1, 10 do | |
| 1650 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1651 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1652 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 1653 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 1654 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 1655 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 1656 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 1657 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 1658 | if Debounces.on == false then break end | |
| 1659 | rs:wait() | |
| 1660 | end | |
| 1661 | Shell() | |
| 1662 | shell.Transparency = 0 | |
| 1663 | shell2.Transparency = 1 | |
| 1664 | for i = 1, 10 do | |
| 1665 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1666 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1667 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 1668 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 1669 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 1670 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 1671 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 1672 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 1673 | if Debounces.on == false then break end | |
| 1674 | rs:wait() | |
| 1675 | end | |
| 1676 | shell.Transparency = 1 | |
| 1677 | if Debounces.CanAttack == false then | |
| 1678 | Debounces.CanAttack = true | |
| 1679 | Debounces.NoIdl = false | |
| 1680 | Debounces.on = false | |
| 1681 | end | |
| 1682 | end | |
| 1683 | end | |
| 1684 | end) | |
| 1685 | --------------------- | |
| 1686 | mouse.KeyUp:connect(function(key) | |
| 1687 | if key == "h" then | |
| 1688 | if Charging == true and chargewait == true then | |
| 1689 | chargewait = false | |
| 1690 | wait(1) | |
| 1691 | Charging = false | |
| 1692 | ||
| 1693 | --[[for i,v in pairs (torso:GetChildren()) do | |
| 1694 | if v:IsA("Sound") then
| |
| 1695 | v:Destroy() | |
| 1696 | end | |
| 1697 | end]] | |
| 1698 | ||
| 1699 | if holy == true and BoostedAlwaysDashes == true then | |
| 1700 | hum.WalkSpeed = 50 | |
| 1701 | elseif holy == true and BoostedAlwaysDashes == false then | |
| 1702 | hum.WalkSpeed = 10 | |
| 1703 | elseif holy == false then | |
| 1704 | hum.WalkSpeed = 10 | |
| 1705 | end | |
| 1706 | ||
| 1707 | ||
| 1708 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7)
| |
| 1709 | ||
| 1710 | pt:Destroy() | |
| 1711 | pt2:Destroy() | |
| 1712 | bl:Destroy() | |
| 1713 | if Debounces.CanAttack == false then | |
| 1714 | Debounces.CanAttack = true | |
| 1715 | Debounces.NoIdl = false | |
| 1716 | Debounces.on = false | |
| 1717 | Debounces.grab = false | |
| 1718 | ||
| 1719 | end | |
| 1720 | end | |
| 1721 | end | |
| 1722 | end) | |
| 1723 | ------- | |
| 1724 | mouse.KeyDown:connect(function(key) | |
| 1725 | if key == "v" then | |
| 1726 | if Debounces.CanAttack == true then | |
| 1727 | Debounces.CanAttack = false | |
| 1728 | Debounces.on = true | |
| 1729 | Debounces.NoIdl = true | |
| 1730 | for i = 1, 20 do | |
| 1731 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
| 1732 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
| 1733 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 1734 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
| 1735 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 1736 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 1737 | if Debounces.on == false then break end | |
| 1738 | rs:wait(2.6) | |
| 1739 | end | |
| 1740 | Spawn(function() | |
| 1741 | local Parts = {}
| |
| 1742 | for Y = -5,5 do | |
| 1743 | local P = Instance.new("Part",char)
| |
| 1744 | P.Anchored = true | |
| 1745 | P.FormFactor = "Custom" | |
| 1746 | P.CanCollide = false | |
| 1747 | P.Size = Vector3.new(2,4,2) | |
| 1748 | P.TopSurface = "SmoothNoOutlines" | |
| 1749 | P.BottomSurface = "SmoothNoOutlines" | |
| 1750 | P.Material = "Neon" | |
| 1751 | P.BrickColor = BrickColor.new("Really black")
| |
| 1752 | P.Name = tostring(Y) | |
| 1753 | local i = (Y+5)/(10) | |
| 1754 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
| 1755 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
| 1756 | --[[P.Touched:connect(function(ht) | |
| 1757 | local hit = ht.Parent | |
| 1758 | if hit:FindFirstChild("Humanoid") then
| |
| 1759 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
| 1760 | end | |
| 1761 | end)]]-- | |
| 1762 | s = Instance.new("Sound",P)
| |
| 1763 | s.SoundId = "rbxassetid://228343271" | |
| 1764 | s.Volume = 1 | |
| 1765 | s.Pitch = 0.9 | |
| 1766 | s:Play() | |
| 1767 | sa = Instance.new("Sound",P)
| |
| 1768 | sa.SoundId = "rbxassetid://419447292" | |
| 1769 | sa.Volume = 1 | |
| 1770 | sa.Pitch = 1 | |
| 1771 | sa:Play() | |
| 1772 | P.Touched:connect(function(ht) | |
| 1773 | hit = ht.Parent | |
| 1774 | if ht and hit:IsA("Model") then
| |
| 1775 | if hit:FindFirstChild("Humanoid") then
| |
| 1776 | if hit.Name ~= p.Name then | |
| 1777 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1778 | Debounces.Slashed = true]]-- | |
| 1779 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
| |
| 1780 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1781 | wait(1) | |
| 1782 | --Debounces.Slashed = false | |
| 1783 | --end | |
| 1784 | end | |
| 1785 | end | |
| 1786 | elseif ht and hit:IsA("Hat") then
| |
| 1787 | if hit.Parent.Name ~= p.Name then | |
| 1788 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1789 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1790 | Debounces.Slashed = true]]-- | |
| 1791 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
| |
| 1792 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1793 | wait(1) | |
| 1794 | --Debounces.Slashed = false | |
| 1795 | --end | |
| 1796 | end | |
| 1797 | end | |
| 1798 | end | |
| 1799 | end) | |
| 1800 | Parts[#Parts+1] = P | |
| 1801 | end | |
| 1802 | local BREAKIT = false | |
| 1803 | local CParts = {}
| |
| 1804 | local Rocks = {}
| |
| 1805 | local LastPos = nil | |
| 1806 | for i = 1,70 do | |
| 1807 | for i2,v in pairs(Parts) do | |
| 1808 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
| 1809 | local cf = v.CFrame | |
| 1810 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
| 1811 | v.CFrame = cf | |
| 1812 | v.Transparency = v.Transparency+0.02 | |
| 1813 | if v.Transparency >= 0.975 then BREAKIT = true end | |
| 1814 | if v.Name == "0" then | |
| 1815 | local Ignore = {}
| |
| 1816 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 1817 | if v.Character ~= nil then | |
| 1818 | Ignore[#Ignore+1] = v.Character | |
| 1819 | end | |
| 1820 | end | |
| 1821 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) | |
| 1822 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
| 1823 | if Hit ~= nil then | |
| 1824 | if #Rocks == 0 then | |
| 1825 | for i = 1,5 do | |
| 1826 | local P = Instance.new("Part",char)
| |
| 1827 | Rocks[#Rocks+1] = P | |
| 1828 | P.Anchored = true | |
| 1829 | P.FormFactor = "Custom" | |
| 1830 | P.BrickColor = Hit.BrickColor | |
| 1831 | P.Material = Hit.Material | |
| 1832 | P.TopSurface = "Smooth" | |
| 1833 | P.BottomSurface = "Smooth" | |
| 1834 | P.Size = Vector3.new(2,2,2)*(math.random(500,900)/100) | |
| 1835 | end | |
| 1836 | end | |
| 1837 | for i,P in pairs(Rocks) do | |
| 1838 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1839 | end | |
| 1840 | local P = Instance.new("Part",char)
| |
| 1841 | CParts[#CParts+1] = {P,tick()}
| |
| 1842 | P.Anchored = true | |
| 1843 | P.FormFactor = "Custom" | |
| 1844 | P.BrickColor = Hit.BrickColor | |
| 1845 | P.Material = Hit.Material | |
| 1846 | P.TopSurface = "Smooth" | |
| 1847 | P.BottomSurface = "Smooth" | |
| 1848 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
| 1849 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1850 | Pos = Pos.p | |
| 1851 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1852 | local P = P:Clone() | |
| 1853 | CParts[#CParts+1] = {P,tick()}
| |
| 1854 | P.Parent = char | |
| 1855 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
| 1856 | Pos = Pos.p | |
| 1857 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
| 1858 | if LastPos ~= nil then | |
| 1859 | local P = P:Clone() | |
| 1860 | CParts[#CParts+1] = {P,tick()}
| |
| 1861 | P.Parent = char | |
| 1862 | P.BrickColor = BrickColor.new("Really black")
| |
| 1863 | P.Material = "Neon" | |
| 1864 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1865 | Pos = Pos.p | |
| 1866 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1867 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
| 1868 | --P.Velocity = Vector3.new(0,-1000,0) | |
| 1869 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
| 1870 | end | |
| 1871 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1872 | end | |
| 1873 | end | |
| 1874 | end | |
| 1875 | if BREAKIT then break end | |
| 1876 | wait(0.002) | |
| 1877 | end | |
| 1878 | for i,v in pairs(Rocks) do | |
| 1879 | CParts[#CParts+1] = {v,tick()}
| |
| 1880 | end | |
| 1881 | for i,v in pairs(Parts) do | |
| 1882 | v:Destroy() | |
| 1883 | end | |
| 1884 | Parts = nil | |
| 1885 | while true do | |
| 1886 | local t = tick() | |
| 1887 | local p = nil | |
| 1888 | for i,v in pairs(CParts) do | |
| 1889 | if t-v[2] > 4 then | |
| 1890 | v[1].Transparency = v[1].Transparency+0.05 | |
| 1891 | if v[1].Transparency >= 1 then | |
| 1892 | v[1]:Destroy() | |
| 1893 | CParts[i] = nil | |
| 1894 | end | |
| 1895 | end | |
| 1896 | p = v | |
| 1897 | end | |
| 1898 | if p == nil then break end | |
| 1899 | wait(0.002) | |
| 1900 | end | |
| 1901 | for i,v in pairs(CParts) do | |
| 1902 | v:Destroy() | |
| 1903 | end | |
| 1904 | CParts = {}
| |
| 1905 | end) | |
| 1906 | for i = 1, 20 do | |
| 1907 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
| 1908 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
| 1909 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 1910 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
| 1911 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 1912 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 1913 | ||
| 1914 | if Debounces.on == false then break end | |
| 1915 | rs:wait(2) | |
| 1916 | end | |
| 1917 | if Debounces.CanAttack == false then | |
| 1918 | Debounces.CanAttack = true | |
| 1919 | Debounces.on = false | |
| 1920 | Debounces.NoIdl = false | |
| 1921 | end | |
| 1922 | end | |
| 1923 | end | |
| 1924 | end) | |
| 1925 | ||
| 1926 | ------------------------------------------------------ | |
| 1927 | ------------------------ | |
| 1928 | so = function(id,par,vol,pit) | |
| 1929 | coroutine.resume(coroutine.create(function() | |
| 1930 | local sou = Instance.new("Sound",par or workspace)
| |
| 1931 | sou.Volume=vol | |
| 1932 | sou.Pitch=pit or 1 | |
| 1933 | sou.SoundId=id | |
| 1934 | swait() | |
| 1935 | sou:play() | |
| 1936 | game:GetService("Debris"):AddItem(sou,6)
| |
| 1937 | end)) | |
| 1938 | end | |
| 1939 | ||
| 1940 | mouse.KeyDown:connect(function(key) | |
| 1941 | if key == "y" then | |
| 1942 | if Debounces.CanAttack == true then | |
| 1943 | Debounces.CanAttack = false | |
| 1944 | Debounces.on = true | |
| 1945 | Debounces.NoIdl = true | |
| 1946 | for i = 1, 15 do | |
| 1947 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
| 1948 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
| 1949 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
| 1950 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
| 1951 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.2, -0.5) * CFrame.Angles(-0.2, 0, math.rad(-10)), 0.2) | |
| 1952 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.7, 0.1) * CFrame.Angles(-0.3, 0, math.rad(10)), 0.2) | |
| 1953 | if Debounces.on == false then break end | |
| 1954 | rs:wait(3) | |
| 1955 | end | |
| 1956 | so("http://roblox.com/asset/?id=231917788",hed,1,0.7)
| |
| 1957 | x = Instance.new("Sound",char.Head)
| |
| 1958 | x.SoundId = "rbxassetid://183763515" | |
| 1959 | x.Pitch = 0.7 | |
| 1960 | x.Volume = .8 | |
| 1961 | x3 = Instance.new("Sound",char.Head)
| |
| 1962 | x3.SoundId = "rbxassetid://183763487" | |
| 1963 | x3.Pitch = 1 | |
| 1964 | x3.Volume = .8 | |
| 1965 | wait(.1) | |
| 1966 | x:Play() | |
| 1967 | x3:Play() | |
| 1968 | wait(.1) | |
| 1969 | if holy == true then | |
| 1970 | x3.SoundId = "rbxassetid://294188875" | |
| 1971 | x.SoundId = "rbxassetid://183763515" | |
| 1972 | end | |
| 1973 | Debounces.on = false | |
| 1974 | Debounces.Here = false | |
| 1975 | shot = shot + 1 | |
| 1976 | local rng = Instance.new("Part", larm)
| |
| 1977 | rng.Anchored = true | |
| 1978 | rng.BrickColor = BrickColor.new("Lime green")
| |
| 1979 | rng.CanCollide = false | |
| 1980 | rng.Name = "Ring" | |
| 1981 | rng.Size = Vector3.new(1, 1, 1) | |
| 1982 | rng.Transparency = 0.35 | |
| 1983 | rng.TopSurface = 0 | |
| 1984 | rng.BottomSurface = 0 | |
| 1985 | rng2 = rng:clone() | |
| 1986 | rng3 = rng2:clone() | |
| 1987 | rng4 = rng2:clone() | |
| 1988 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1989 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1990 | rngm.Scale = Vector3.new(100, 100, 1) | |
| 1991 | rngm2 = rngm:clone() | |
| 1992 | rngm2.Scale = Vector3.new(10, 10, 3) | |
| 1993 | rngm3 = rngm2:clone() | |
| 1994 | rngm3.Parent = rng3 | |
| 1995 | rngm3.Scale = Vector3.new(60, 160, 1) | |
| 1996 | rngm4 = rngm2:clone() | |
| 1997 | rngm4.Parent = rng4 | |
| 1998 | rngm4.Scale = Vector3.new(40, 120, 1) | |
| 1999 | local bem = Instance.new("Part", larm)
| |
| 2000 | bem.Anchored = true | |
| 2001 | bem.BrickColor = BrickColor.new("Really black")
| |
| 2002 | bem.CanCollide = false | |
| 2003 | bem.Name = "Beam" .. shot | |
| 2004 | bem.Size = Vector3.new(2, 4, 4) | |
| 2005 | bem.Transparency = 0.35 | |
| 2006 | bem.TopSurface = 0 | |
| 2007 | bem.BottomSurface = 0 | |
| 2008 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 2009 | bemm.MeshType = 4 | |
| 2010 | bemm.Scale = Vector3.new(1, 16, 16) | |
| 2011 | local out = Instance.new("Part", larm)
| |
| 2012 | out.Anchored = true | |
| 2013 | out.BrickColor = BrickColor.new("Really black")
| |
| 2014 | out.CanCollide = false | |
| 2015 | out.Name = "Out" | |
| 2016 | out.Size = Vector3.new(4, 16, 16) | |
| 2017 | out.Transparency = 0.35 | |
| 2018 | out.TopSurface = 0 | |
| 2019 | out.BottomSurface = 0 | |
| 2020 | local outm = Instance.new("SpecialMesh", out)
| |
| 2021 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 2022 | outm.Scale = Vector3.new(24, 4, 24) | |
| 2023 | local bnd = Instance.new("Part", larm)
| |
| 2024 | bnd.Anchored = true | |
| 2025 | bnd.BrickColor = BrickColor.new("Lime green")
| |
| 2026 | bnd.CanCollide = false | |
| 2027 | bnd.Name = "Bend" | |
| 2028 | bnd.Size = Vector3.new(1, 1, 1) | |
| 2029 | bnd.Transparency = 1 | |
| 2030 | bnd.TopSurface = 0 | |
| 2031 | bnd.BottomSurface = 0 | |
| 2032 | ||
| 2033 | if holy == true then | |
| 2034 | bnd.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2035 | rng.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2036 | out.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2037 | bem.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2038 | end | |
| 2039 | ||
| 2040 | ||
| 2041 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 2042 | bndm.MeshType = 3 | |
| 2043 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 2044 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 2045 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 2046 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 2047 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 2048 | rng3.CFrame = rng.CFrame * CFrame.new(0, -0.5, 0) | |
| 2049 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
| 2050 | Debounces.Shewt = true | |
| 2051 | coroutine.wrap(function() | |
| 2052 | for i = 1, 20, 0.2 do | |
| 2053 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 2054 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
| 2055 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
| 2056 | rng.Transparency = i/20 | |
| 2057 | rng3.Transparency = 1/24 | |
| 2058 | rng4.Transparency = i/26 | |
| 2059 | wait() | |
| 2060 | end | |
| 2061 | wait() | |
| 2062 | rng:Destroy() | |
| 2063 | end)() | |
| 2064 | if Debounces.Shewt == true then | |
| 2065 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 2066 | hit = ht.Parent | |
| 2067 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 2068 | if HasntTouched(hit.Name) == true and deb == false then | |
| 2069 | deb = true | |
| 2070 | coroutine.wrap(function() | |
| 2071 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 2072 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 2073 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(25,40))
| |
| 2074 | if holy == true then | |
| 2075 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(999999,9999999))
| |
| 2076 | end | |
| 2077 | end)() | |
| 2078 | table.insert(Touche, hit.Name) | |
| 2079 | deb = false | |
| 2080 | end | |
| 2081 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 2082 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 2083 | deb = true | |
| 2084 | coroutine.wrap(function() | |
| 2085 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 2086 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 2087 | wait(1) | |
| 2088 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 2089 | end)() | |
| 2090 | table.insert(Touche, hit.Parent.Name) | |
| 2091 | deb = false | |
| 2092 | for i, v in pairs(Touche) do | |
| 2093 | print(v) | |
| 2094 | end | |
| 2095 | end | |
| 2096 | end | |
| 2097 | end) | |
| 2098 | end | |
| 2099 | ||
| 2100 | ||
| 2101 | ||
| 2102 | ||
| 2103 | for i = 0, 260, 8 do | |
| 2104 | bem.Size = Vector3.new(i, 3, 3) | |
| 2105 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 2106 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 - i / 2, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 2107 | bnd.CFrame = bem.CFrame * CFrame.new(-i / 2, 0, 1.2) | |
| 2108 | bnd.Size = Vector3.new(1, 1, 1) | |
| 2109 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 2110 | if i % 10 == 0 then | |
| 2111 | local newRng = rng2:Clone() | |
| 2112 | newRng.Parent = larm | |
| 2113 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2 - i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 2114 | local newRngm = rngm2:clone() | |
| 2115 | newRngm.Parent = newRng | |
| 2116 | coroutine.wrap(function() | |
| 2117 | ||
| 2118 | if holy == true then | |
| 2119 | newRng.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2120 | rng2.BrickColor = BrickColor.new(BoostedColorScheme) | |
| 2121 | end | |
| 2122 | ||
| 2123 | for i = 1, 10, 0.2 do | |
| 2124 | newRngm.Scale = Vector3.new(20 + i * 10, 20 + i * 10, 3) | |
| 2125 | newRng.Transparency = i / 15 | |
| 2126 | wait() | |
| 2127 | end | |
| 2128 | wait() | |
| 2129 | newRng:Destroy() | |
| 2130 | end)() | |
| 2131 | end | |
| 2132 | wait() | |
| 2133 | end | |
| 2134 | wait() | |
| 2135 | Debounces.Shewt = false | |
| 2136 | bem:Destroy() | |
| 2137 | out:Destroy() | |
| 2138 | bnd:Destroy() | |
| 2139 | Debounces.Ready = false | |
| 2140 | for i, v in pairs(Touche) do | |
| 2141 | table.remove(Touche, i) | |
| 2142 | end | |
| 2143 | wait() | |
| 2144 | table.insert(Touche, char.Name) | |
| 2145 | Debounces.NoIdl = false | |
| 2146 | if Debounces.CanAttack == false then | |
| 2147 | Debounces.CanAttack = true | |
| 2148 | end | |
| 2149 | end | |
| 2150 | end | |
| 2151 | end) | |
| 2152 | ---------------------------------------------------- | |
| 2153 | mod4 = Instance.new("Model",char)
| |
| 2154 | ||
| 2155 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 2156 | ||
| 2157 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 2158 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 2159 | local List = {}
| |
| 2160 | for i,v in pairs(workspace:GetChildren())do | |
| 2161 | if v:IsA("Model")then
| |
| 2162 | if v:findFirstChild("Torso")then
| |
| 2163 | if v ~= char then | |
| 2164 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 2165 | table.insert(List,v) | |
| 2166 | end | |
| 2167 | end | |
| 2168 | end | |
| 2169 | end | |
| 2170 | end | |
| 2171 | return List | |
| 2172 | end | |
| 2173 | ||
| 2174 | function Slam() | |
| 2175 | local part=Instance.new('Part',mod4)
| |
| 2176 | part.Anchored=true | |
| 2177 | part.CanCollide=false | |
| 2178 | part.FormFactor='Custom' | |
| 2179 | part.Size=Vector3.new(.2,.2,.2) | |
| 2180 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
| 2181 | part.Transparency=.7 | |
| 2182 | part.BrickColor=BrickColor.new('Really black')
| |
| 2183 | mesh=Instance.new('SpecialMesh',part)
| |
| 2184 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 2185 | mesh.Scale=Vector3.new(3,3,3) | |
| 2186 | local part2=Instance.new('Part',mod4)
| |
| 2187 | part2.Anchored=true | |
| 2188 | part2.CanCollide=false | |
| 2189 | part2.FormFactor='Custom' | |
| 2190 | part2.Size=Vector3.new(.2,.2,.2) | |
| 2191 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
| 2192 | part2.Transparency=.7 | |
| 2193 | part2.BrickColor=BrickColor.new('Crimson')
| |
| 2194 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 2195 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 2196 | mesh2.Scale=Vector3.new(3,1.5,3) | |
| 2197 | x = Instance.new("Sound",larm)
| |
| 2198 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
| 2199 | x.Pitch = ptez[math.random(1,#ptez)] | |
| 2200 | x.Volume = 1 | |
| 2201 | wait(.1) | |
| 2202 | x1 = Instance.new("Sound",larm)
| |
| 2203 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
| 2204 | x1.Pitch = ptez[math.random(1,#ptez)] | |
| 2205 | x1.Volume = 1 | |
| 2206 | wait(.1) | |
| 2207 | x:Play() | |
| 2208 | x1:Play() | |
| 2209 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 2210 | if v:FindFirstChild('Humanoid') then
| |
| 2211 | v.Humanoid:TakeDamage(math.random(999999,9999999)) | |
| 2212 | end | |
| 2213 | end | |
| 2214 | coroutine.resume(coroutine.create(function() | |
| 2215 | for i=0,0.62,0.13 do | |
| 2216 | wait() | |
| 2217 | part.CFrame=part.CFrame | |
| 2218 | part.Transparency=i | |
| 2219 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 2220 | part2.CFrame=part2.CFrame | |
| 2221 | part2.Transparency=i | |
| 2222 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 2223 | end | |
| 2224 | part.Parent=nil | |
| 2225 | part2.Parent=nil | |
| 2226 | x:Destroy() | |
| 2227 | end)) | |
| 2228 | end | |
| 2229 | ---------------------------------------------------- | |
| 2230 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
| 2231 | local wp = Instance.new('WedgePart',parent or Weapon)
| |
| 2232 | wp.formFactor = 'Custom' | |
| 2233 | wp.Size = Vector3.new(x,y,z) | |
| 2234 | wp.BrickColor = BrickColor.new(color) | |
| 2235 | wp.CanCollide = cc | |
| 2236 | wp.Transparency = tr | |
| 2237 | wp.Anchored = an | |
| 2238 | wp.TopSurface,wp.BottomSurface = 0,0 | |
| 2239 | return wp | |
| 2240 | end | |
| 2241 | ||
| 2242 | Mesh = function(par,num,x,y,z) | |
| 2243 | local msh = _ | |
| 2244 | if num == 1 then | |
| 2245 | msh = Instance.new("CylinderMesh",par)
| |
| 2246 | elseif num == 2 then | |
| 2247 | msh = Instance.new("SpecialMesh",par)
| |
| 2248 | msh.MeshType = 3 | |
| 2249 | elseif num == 3 then | |
| 2250 | msh = Instance.new("BlockMesh",par)
| |
| 2251 | elseif num == 4 then | |
| 2252 | msh = Instance.new("SpecialMesh",par)
| |
| 2253 | msh.MeshType = "Torso" | |
| 2254 | elseif type(num) == 'string' then | |
| 2255 | msh = Instance.new("SpecialMesh",par)
| |
| 2256 | msh.MeshId = num | |
| 2257 | end | |
| 2258 | msh.Scale = Vector3.new(x,y,z) | |
| 2259 | return msh | |
| 2260 | end | |
| 2261 | ||
| 2262 | local function CFrameFromTopBack(at, top, back) | |
| 2263 | local right = top:Cross(back) | |
| 2264 | return CFrame.new(at.x, at.y, at.z, | |
| 2265 | right.x, top.x, back.x, | |
| 2266 | right.y, top.y, back.y, | |
| 2267 | right.z, top.z, back.z) | |
| 2268 | end | |
| 2269 | ||
| 2270 | function Triangle(a, b, c) | |
| 2271 | local edg1 = (c-a):Dot((b-a).unit) | |
| 2272 | local edg2 = (a-b):Dot((c-b).unit) | |
| 2273 | local edg3 = (b-c):Dot((a-c).unit) | |
| 2274 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 2275 | a, b, c = a, b, c | |
| 2276 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 2277 | a, b, c = b, c, a | |
| 2278 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 2279 | a, b, c = c, a, b | |
| 2280 | else | |
| 2281 | print("unreachable")
| |
| 2282 | end | |
| 2283 | local len1 = (c-a):Dot((b-a).unit) | |
| 2284 | local len2 = (b-a).magnitude - len1 | |
| 2285 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 2286 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 2287 | local list = {}
| |
| 2288 | if len1 > 0.01 then | |
| 2289 | local w1 = wPart(0,0,0,'White',0.5,false,true,char) | |
| 2290 | local sz = Vector3.new(0.2, width, len1) | |
| 2291 | w1.Size = sz | |
| 2292 | local sp = Mesh(w1,2,0,0,0) | |
| 2293 | sp.MeshType='Wedge' | |
| 2294 | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size | |
| 2295 | w1:BreakJoints() | |
| 2296 | w1.Anchored = true | |
| 2297 | w1.Transparency = 0.7 | |
| 2298 | Spawn(function() | |
| 2299 | for i=0,1,0.1 do | |
| 2300 | fat.Event:wait() | |
| 2301 | w1.Transparency=w1.Transparency+0.03 | |
| 2302 | end | |
| 2303 | end) | |
| 2304 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 2305 | table.insert(list,w1) | |
| 2306 | end | |
| 2307 | if len2 > 0.01 then | |
| 2308 | local w2 = wPart(0,0,0,'White',0.5,false,true,char) | |
| 2309 | local sz = Vector3.new(0.2, width, len2) | |
| 2310 | w2.Size = sz | |
| 2311 | local sp = Mesh(w2,2,0,0,0) | |
| 2312 | sp.MeshType='Wedge' | |
| 2313 | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size | |
| 2314 | w2:BreakJoints() | |
| 2315 | w2.Anchored = true | |
| 2316 | w2.Transparency = 0.7 | |
| 2317 | Spawn(function() | |
| 2318 | for i=0,1,0.1 do | |
| 2319 | fat.Event:wait() | |
| 2320 | w2.Transparency=w2.Transparency+0.03 | |
| 2321 | end | |
| 2322 | end) | |
| 2323 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 2324 | table.insert(list,w2) | |
| 2325 | end | |
| 2326 | return unpack(list) | |
| 2327 | end | |
| 2328 | ||
| 2329 | function trail(p,t,h) | |
| 2330 | Spawn(function() | |
| 2331 | local blcf = p.CFrame | |
| 2332 | local scfr = blcf | |
| 2333 | for i=1,t do | |
| 2334 | local blcf = p.CFrame | |
| 2335 | if scfr and (p.Position-scfr.p).magnitude > .1 then | |
| 2336 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 2337 | if a then game.Debris:AddItem(a,1) end | |
| 2338 | if b then game.Debris:AddItem(b,1) end | |
| 2339 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 2340 | if a then game.Debris:AddItem(a,1) end | |
| 2341 | if b then game.Debris:AddItem(b,1) end | |
| 2342 | scfr = blcf | |
| 2343 | elseif not scfr then | |
| 2344 | scfr = blcf | |
| 2345 | end | |
| 2346 | fat.Event:wait() | |
| 2347 | end | |
| 2348 | scfr=nil | |
| 2349 | end) | |
| 2350 | end | |
| 2351 | ---------------------------------------------------- | |
| 2352 | ||
| 2353 | Charging = false | |
| 2354 | mouse.KeyDown:connect(function(key) | |
| 2355 | if key == "r" then | |
| 2356 | if Charging == false then | |
| 2357 | Charging = true | |
| 2358 | if Debounces.CanAttack == true then | |
| 2359 | Debounces.CanAttack = false | |
| 2360 | Debounces.NoIdl = true | |
| 2361 | Debounces.on = true | |
| 2362 | for i = 1,20 do | |
| 2363 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
| 2364 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
| 2365 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 2366 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2367 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 2368 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 2369 | if Debounces.on == false then break end | |
| 2370 | rs:wait() | |
| 2371 | end | |
| 2372 | --[[for i = 1,20 do | |
| 2373 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
| 2374 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
| 2375 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 2376 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
| 2377 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 2378 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 2379 | if Debounces.on == false then break end | |
| 2380 | rs:wait() | |
| 2381 | end]]-- | |
| 2382 | ---------------------------------------------------- | |
| 2383 | pt=Instance.new('Part',torso)
| |
| 2384 | pt.Anchored=true | |
| 2385 | pt.CanCollide=false | |
| 2386 | pt.Locked = true | |
| 2387 | pt.FormFactor='Custom' | |
| 2388 | pt.Size=Vector3.new(1,1,1) | |
| 2389 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2390 | pt.Transparency=.6 | |
| 2391 | pt.BrickColor=BrickColor.new('Really black')
| |
| 2392 | msh=Instance.new('SpecialMesh',pt)
| |
| 2393 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 2394 | msh.Scale=Vector3.new(8,4,8) | |
| 2395 | pt2=pt:clone() | |
| 2396 | pt2.Parent = torso | |
| 2397 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2398 | pt2.BrickColor=BrickColor.new("Royal purple")
| |
| 2399 | msh2=msh:clone() | |
| 2400 | msh2.Parent=pt2 | |
| 2401 | msh2.Scale=Vector3.new(10,5,10) | |
| 2402 | ||
| 2403 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
| |
| 2404 | ||
| 2405 | ||
| 2406 | ||
| 2407 | bl = Instance.new("Part", char)
| |
| 2408 | bl.Locked = true | |
| 2409 | bl.Name = "Shell" | |
| 2410 | bl.BrickColor = BrickColor.new("Really black")
| |
| 2411 | bl.Anchored = true | |
| 2412 | bl.CanCollide = false | |
| 2413 | bl.Transparency = 0 | |
| 2414 | bl.Reflectance = 0 | |
| 2415 | bl.BottomSurface = 0 | |
| 2416 | bl.TopSurface = 0 | |
| 2417 | bl.Shape = 0 | |
| 2418 | blm = Instance.new("SpecialMesh",bl)
| |
| 2419 | blm.MeshType = "Sphere" | |
| 2420 | blm.Scale = Vector3.new(1,1,1) | |
| 2421 | blm.MeshId = "rbxassetid://9982590" | |
| 2422 | ||
| 2423 | ||
| 2424 | ||
| 2425 | local rot ={4}
| |
| 2426 | bc = BrickColor.new | |
| 2427 | ||
| 2428 | ||
| 2429 | wit = bc("Maroon").Color
| |
| 2430 | koy = bc("Royal purple").Color
| |
| 2431 | kiy = bc("Lavender").Color
| |
| 2432 | key = bc("Really black").Color
| |
| 2433 | kay = bc("Really black").Color
| |
| 2434 | ||
| 2435 | p=game.Players.LocalPlayer | |
| 2436 | char=p.Character | |
| 2437 | ||
| 2438 | aura = Instance.new("Part", char)
| |
| 2439 | aura.Parent = bl | |
| 2440 | aura.FormFactor = "Custom" | |
| 2441 | aura.Transparency = 1 | |
| 2442 | aura.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 2443 | aura.Name = "Aura" | |
| 2444 | aura.Anchored = true | |
| 2445 | aura2 = Instance.new("Part", char)
| |
| 2446 | aura2.Parent = bl | |
| 2447 | aura2.FormFactor = "Custom" | |
| 2448 | aura2.Transparency = 1 | |
| 2449 | aura2.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 2450 | aura2.Name = "Aura2" | |
| 2451 | aura2.Anchored = true | |
| 2452 | local w = Instance.new("Weld", torso)
| |
| 2453 | w.Part0 = torso | |
| 2454 | w.Part1 = aura | |
| 2455 | w.C0 = CFrame.new(0, -2, 0) | |
| 2456 | local ww = Instance.new("Weld", torso)
| |
| 2457 | ww.Part0 = torso | |
| 2458 | ww.Part1 = aura2 | |
| 2459 | ww.C0 = CFrame.new(0, 0, 0) | |
| 2460 | aura.Anchored = false | |
| 2461 | aura2.Anchored = false | |
| 2462 | local primary = Color3.new(1015,0,0) | |
| 2463 | local secondary = Color3.new(0.66666666666667, 0, 1) | |
| 2464 | pe = Instance.new("ParticleEmitter", aura)
| |
| 2465 | pe.Texture = "http://www.roblox.com/asset/?id=317180612" | |
| 2466 | pe.Color = ColorSequence.new(koy,kiy) | |
| 2467 | pe.LightEmission = 0.75 | |
| 2468 | pe.Size = NumberSequence.new(10) | |
| 2469 | pe.Transparency = NumberSequence.new(0) | |
| 2470 | pe.ZOffset = 0.8 | |
| 2471 | pe.LockedToPart = true | |
| 2472 | pe.Acceleration = Vector3.new(10, 10, 0) | |
| 2473 | pe.Lifetime = NumberRange.new(0.25) | |
| 2474 | pe.Speed = NumberRange.new(15) | |
| 2475 | pe.Rotation = NumberRange.new(-10, 10) | |
| 2476 | pe.Enabled = true | |
| 2477 | pe.Rate = 40 | |
| 2478 | pe.VelocitySpread = 10 | |
| 2479 | pe.Name = "Charge" | |
| 2480 | pe.Enabled = true | |
| 2481 | se1 = {NumberSequenceKeypoint.new(0, 10, 0), NumberSequenceKeypoint.new(1, 30, 0)}
| |
| 2482 | pe2 = Instance.new("ParticleEmitter", aura2)
| |
| 2483 | pe2.Texture = "http://www.roblox.com/asset/?id=305943367" | |
| 2484 | pe2.Color = ColorSequence.new(kiy,wit) | |
| 2485 | pe2.LightEmission = 0.39 | |
| 2486 | pe2.Size = NumberSequence.new(se1) | |
| 2487 | pe2.Transparency = NumberSequence.new(0) | |
| 2488 | pe2.ZOffset = 0 | |
| 2489 | pe2.LockedToPart = true | |
| 2490 | pe2.Acceleration = Vector3.new(0, 0, 0) | |
| 2491 | pe2.Lifetime = NumberRange.new(0.6) | |
| 2492 | pe2.Speed = NumberRange.new(0) | |
| 2493 | pe2.Rotation = NumberRange.new(0, 0) | |
| 2494 | pe2.Enabled = true | |
| 2495 | pe2.Rate = 12 | |
| 2496 | pe2.VelocitySpread = 0 | |
| 2497 | pe2.Name = "Charge" | |
| 2498 | pe2.Enabled = true | |
| 2499 | ||
| 2500 | dez = Instance.new("Sound", hed)
| |
| 2501 | dez.SoundId = "rbxassetid://262498439" | |
| 2502 | dez.Looped = true | |
| 2503 | dez.Pitch = 1 | |
| 2504 | dez.Volume = 1 | |
| 2505 | wait(0.1) | |
| 2506 | dez:Play() | |
| 2507 | ||
| 2508 | ||
| 2509 | ||
| 2510 | coroutine.resume(coroutine.create(function() | |
| 2511 | for i=1, math.huge, 4 do | |
| 2512 | if Charging == true then | |
| 2513 | rs:wait() | |
| 2514 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 2515 | blm.Scale = blm.Scale + Vector3.new(8.1, 8.1, 8.1) | |
| 2516 | bl.Transparency = bl.Transparency + 0.1 | |
| 2517 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 2518 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2519 | msh.Scale = msh.Scale + Vector3.new(8.1,0,8.1) | |
| 2520 | msh2.Scale = msh2.Scale + Vector3.new(8.1,0,8.1) | |
| 2521 | ||
| 2522 | elseif Charging == false then break | |
| 2523 | end | |
| 2524 | end | |
| 2525 | end)) | |
| 2526 | repeat | |
| 2527 | local p = Instance.new('Part',torso)
| |
| 2528 | p.formFactor = 'Custom' | |
| 2529 | p.Size = Vector3.new(1,1,1) | |
| 2530 | p.BrickColor = BrickColor.new("Dark indigo")
| |
| 2531 | p.CanCollide = false | |
| 2532 | p.Transparency = 0 | |
| 2533 | p.Anchored = true | |
| 2534 | p.Locked=true | |
| 2535 | p.Material = "Neon" | |
| 2536 | s = math.random(1,40)/10 | |
| 2537 | local m = Instance.new("BlockMesh",p)
| |
| 2538 | m.Scale = Vector3.new(s,s,s) | |
| 2539 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2540 | ||
| 2541 | if holy == false then | |
| 2542 | pe.Color = ColorSequence.new(kiy) | |
| 2543 | pe2.Color = ColorSequence.new(kay,key) | |
| 2544 | pe2.Texture = "http://www.roblox.com/asset/?id=0" | |
| 2545 | pt2.BrickColor=BrickColor.new("Really black")
| |
| 2546 | p.BrickColor = BrickColor.new("New Yeller")
| |
| 2547 | end | |
| 2548 | ||
| 2549 | ||
| 2550 | ------------------------------------------------- | |
| 2551 | ||
| 2552 | ||
| 2553 | ||
| 2554 | --[[coroutine.wrap(function() | |
| 2555 | wait(2) | |
| 2556 | while Charging == true do | |
| 2557 | wait(2) | |
| 2558 | GroundWave1() | |
| 2559 | wait(2) | |
| 2560 | end | |
| 2561 | end)()]]-- | |
| 2562 | Spawn(function() | |
| 2563 | while rs:wait() do | |
| 2564 | if Charging == true then | |
| 2565 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
| 2566 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
| 2567 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
| 2568 | torso.Weld.C0 = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 2569 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
| 2570 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
| 2571 | elseif Charging == false then break | |
| 2572 | end | |
| 2573 | end | |
| 2574 | end) | |
| 2575 | Spawn(function() | |
| 2576 | while rs:wait() do | |
| 2577 | if p.Transparency >= 1 then p:Destroy() break end | |
| 2578 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 2579 | p.Transparency = p.Transparency+0.01 | |
| 2580 | end | |
| 2581 | end) | |
| 2582 | wait(.3) | |
| 2583 | until Charging == false | |
| 2584 | end | |
| 2585 | end | |
| 2586 | end | |
| 2587 | end) | |
| 2588 | ||
| 2589 | ---------------------------------------------------- | |
| 2590 | mouse.KeyUp:connect(function(key) | |
| 2591 | if key == "r" then | |
| 2592 | if Charging == true then | |
| 2593 | ||
| 2594 | Charging = false | |
| 2595 | pt:Destroy() | |
| 2596 | pt2:Destroy() | |
| 2597 | bl:Destroy() | |
| 2598 | dez:Remove() | |
| 2599 | if Debounces.CanAttack == false then | |
| 2600 | Debounces.CanAttack = true | |
| 2601 | Debounces.NoIdl = false | |
| 2602 | Debounces.on = false | |
| 2603 | end | |
| 2604 | end | |
| 2605 | end | |
| 2606 | end) | |
| 2607 | ---------------------------------------------------- | |
| 2608 | ---------------------------------------------------- | |
| 2609 | mouse.KeyDown:connect(function(key) | |
| 2610 | if key == "j" then | |
| 2611 | if Debounces.CanJoke == true then | |
| 2612 | Debounces.CanJoke = false | |
| 2613 | z = Instance.new("Sound",hed)
| |
| 2614 | z.SoundId = "rbxassetid://415859013" | |
| 2615 | z.Pitch = pitches[math.random(1,#pitches)] | |
| 2616 | z.Volume = 1 | |
| 2617 | wait() | |
| 2618 | z:Play() | |
| 2619 | wait(2) | |
| 2620 | z:Destroy() | |
| 2621 | if Debounces.CanJoke == false then | |
| 2622 | Debounces.CanJoke = true | |
| 2623 | end | |
| 2624 | end | |
| 2625 | end | |
| 2626 | end) | |
| 2627 | ---------------------------------------------------- | |
| 2628 | mouse.KeyDown:connect(function(key) | |
| 2629 | if key == "k" then | |
| 2630 | if Debounces.CanJoke == true then | |
| 2631 | Debounces.CanJoke = false | |
| 2632 | z = Instance.new("Sound",hed)
| |
| 2633 | z.SoundId = "rbxassetid://415859085" | |
| 2634 | z.Pitch = pitches[math.random(1,#pitches)] | |
| 2635 | z.Volume = 1 | |
| 2636 | wait() | |
| 2637 | z:Play() | |
| 2638 | wait(2) | |
| 2639 | z:Destroy() | |
| 2640 | if Debounces.CanJoke == false then | |
| 2641 | Debounces.CanJoke = true | |
| 2642 | end | |
| 2643 | end | |
| 2644 | end | |
| 2645 | end) | |
| 2646 | ---------------------------------------------------- | |
| 2647 | Grab = false | |
| 2648 | ||
| 2649 | ---------------------------------------------------- | |
| 2650 | ||
| 2651 | mouse.KeyDown:connect(function(key) | |
| 2652 | if key == "q" then | |
| 2653 | if Debounces.CanAttack == true then | |
| 2654 | Debounces.CanAttack = false | |
| 2655 | Debounces.on = true | |
| 2656 | Debounces.NoIdl = true | |
| 2657 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 2658 | z = Instance.new("Sound", rarm)
| |
| 2659 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 2660 | z.Volume = 18 | |
| 2661 | z.Pitch = pt[math.random(1,#pt)] | |
| 2662 | z.Looped = false | |
| 2663 | z:Play() | |
| 2664 | Debounces.RPunch = true | |
| 2665 | Debounces.LPunch = true | |
| 2666 | Debounces.ks = true | |
| 2667 | for i = 1, 3 do | |
| 2668 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, -0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.7) | |
| 2669 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7) | |
| 2670 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-70), 0), 0.7) | |
| 2671 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.7) | |
| 2672 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-20), math.rad(-10)), 0.7) | |
| 2673 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.7) | |
| 2674 | wait(0.1) | |
| 2675 | end | |
| 2676 | Debounces.ks = false | |
| 2677 | Debounces.RPunch = false | |
| 2678 | Debounces.LPunch = false | |
| 2679 | if Debounces.CanAttack == false then | |
| 2680 | Debounces.CanAttack = true | |
| 2681 | Debounces.on = false | |
| 2682 | Debounces.NoIdl = false | |
| 2683 | z:Remove() | |
| 2684 | end | |
| 2685 | end | |
| 2686 | end | |
| 2687 | end) | |
| 2688 | ---------------------------------------------------- | |
| 2689 | mouse.KeyDown:connect(function(key) | |
| 2690 | if string.byte(key) == 52 then | |
| 2691 | Swing = 2 | |
| 2692 | char.Humanoid.WalkSpeed = 28 | |
| 2693 | end | |
| 2694 | end) | |
| 2695 | mouse.KeyUp:connect(function(key) | |
| 2696 | if string.byte(key) == 52 then | |
| 2697 | Swing = 1 | |
| 2698 | char.Humanoid.WalkSpeed = 16 | |
| 2699 | end | |
| 2700 | end) | |
| 2701 | ---------------------------------------------------- | |
| 2702 | ||
| 2703 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 2704 | if char.Humanoid.Jump == true then | |
| 2705 | jump = true | |
| 2706 | else | |
| 2707 | jump = false | |
| 2708 | end | |
| 2709 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2710 | if f then | |
| 2711 | ffing = true | |
| 2712 | else | |
| 2713 | ffing = false | |
| 2714 | end | |
| 2715 | end) | |
| 2716 | ||
| 2717 | RightLeg = CFrame.new(0.5,-1,0) | |
| 2718 | LeftLeg = CFrame.new(-0.5,-1,0) | |
| 2719 | ||
| 2720 | lefth = (torso.CFrame*LeftLeg) | |
| 2721 | righth = (torso.CFrame*RightLeg) | |
| 2722 | ||
| 2723 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 2724 | ||
| 2725 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
| 2726 | ||
| 2727 | ||
| 2728 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 2729 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 2730 | ||
| 2731 | sine = sine + change | |
| 2732 | if jump == true then | |
| 2733 | animpose = "Jumping" | |
| 2734 | elseif ffing == true then | |
| 2735 | animpose = "Freefalling" | |
| 2736 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2737 | animpose = "Idle" | |
| 2738 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2739 | animpose = "Walking" | |
| 2740 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2741 | animpose = "Running" | |
| 2742 | end | |
| 2743 | if animpose ~= lastanimpose then | |
| 2744 | sine = 0 | |
| 2745 | if Debounces.NoIdl == false then | |
| 2746 | if stanceToggle == "Normal" and holy ~= true then | |
| 2747 | for i = 1, 2 do | |
| 2748 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
| 2749 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
| 2750 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
| 2751 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
| 2752 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
| 2753 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
| 2754 | end | |
| 2755 | elseif stanceToggle == "Floating" then | |
| 2756 | change = 1 | |
| 2757 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(-16) - root.RotVelocity.Y / 20, math.rad(-20) - root.RotVelocity.Y / 20, math.rad(10 + 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2758 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2759 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
| 2760 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
| 2761 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
| 2762 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
| 2763 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
| 2764 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
| 2765 | wait() | |
| 2766 | end | |
| 2767 | else | |
| 2768 | end | |
| 2769 | end | |
| 2770 | lastanimpose = animpose | |
| 2771 | if Debounces.NoIdl == false then | |
| 2772 | if animpose == "Idle" then | |
| 2773 | if stanceToggle == "Normal" and holy ~= true then | |
| 2774 | change = 0.5 | |
| 2775 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
| 2776 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2777 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
| 2778 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2779 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
| 2780 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
| 2781 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
| 2782 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
| 2783 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2784 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
| 2785 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2786 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
| 2787 | elseif stanceToggle == "Idle2" then | |
| 2788 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
| 2789 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
| 2790 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
| 2791 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
| 2792 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2793 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2794 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
| 2795 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
| 2796 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2797 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2798 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
| 2799 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2800 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
| 2801 | elseif stanceToggle == "Normal" and holy == true then --- Floating anim | |
| 2802 | change = 0.5 | |
| 2803 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
| 2804 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
| 2805 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14 - 5 * math.cos(sine / 10)), math.rad(-20), 0), 0.4) | |
| 2806 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(-10 + 3 * math.cos(sine / 10)), math.rad(20), math.rad(0)), 0.05) | |
| 2807 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
| 2808 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
| 2809 | elseif stanceToggle == "Floating" then | |
| 2810 | change = 0.5 | |
| 2811 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(-16) - root.RotVelocity.Y / 20, math.rad(-20) - root.RotVelocity.Y / 20, math.rad(10 + 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2812 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2813 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
| 2814 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
| 2815 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
| 2816 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
| 2817 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
| 2818 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
| 2819 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
| 2820 | grab = true | |
| 2821 | ||
| 2822 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
| 2823 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
| 2824 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
| 2825 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
| 2826 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
| 2827 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2828 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
| 2829 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2830 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
| 2831 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2832 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
| 2833 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2834 | elseif stanceToggle == "Grabbed" and holy == true then | |
| 2835 | grab = true | |
| 2836 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2837 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2838 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2839 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2840 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
| 2841 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
| 2842 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
| 2843 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2844 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2845 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2846 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
| 2847 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2848 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2849 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
| 2850 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2851 | end | |
| 2852 | elseif animpose == "Walking" then | |
| 2853 | if stanceToggle == "Normal" and holy ~= true then | |
| 2854 | change = 1 | |
| 2855 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2856 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2857 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/-2.8, -math.sin(sine/4)/3, (math.rad(-10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2858 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2859 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
| 2860 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
| 2861 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
| 2862 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2863 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2864 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
| 2865 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2866 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
| 2867 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2868 | ||
| 2869 | elseif stanceToggle == "Normal" and holy == true then --- Floating walk anim | |
| 2870 | for i = 1, 2 do | |
| 2871 | change = 0.5 | |
| 2872 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(-16) - root.RotVelocity.Y / 20, math.rad(-20) - root.RotVelocity.Y / 20, math.rad(10 + 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2873 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2874 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
| 2875 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
| 2876 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
| 2877 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
| 2878 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
| 2879 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
| 2880 | end | |
| 2881 | elseif stanceToggle == "Floating" then | |
| 2882 | change = 1 | |
| 2883 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(-16) - root.RotVelocity.Y / 20, math.rad(-20) - root.RotVelocity.Y / 20, math.rad(10 + 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2884 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2885 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
| 2886 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
| 2887 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
| 2888 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
| 2889 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
| 2890 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
| 2891 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
| 2892 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
| 2893 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
| 2894 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
| 2895 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
| 2896 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
| 2897 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
| 2898 | elseif stanceToggle == "Grabbed" and holy == true then | |
| 2899 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
| 2900 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
| 2901 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
| 2902 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
| 2903 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
| 2904 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 2905 | end | |
| 2906 | elseif animpose == "Running" then | |
| 2907 | if stanceToggle == "Normal" and holy ~= true then | |
| 2908 | change = 1 | |
| 2909 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
| 2910 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2911 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
| 2912 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2913 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2) | |
| 2914 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5) | |
| 2915 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2) | |
| 2916 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2917 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
| 2918 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2919 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
| 2920 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2921 | elseif stanceToggle == "Normal" and holy == true then | |
| 2922 | change = 0.5 | |
| 2923 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
| 2924 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
| 2925 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14 - 5 * math.cos(sine / 10)), math.rad(-20), 0), 0.4) | |
| 2926 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(-10 + 3 * math.cos(sine / 10)), math.rad(20), math.rad(0)), 0.05) | |
| 2927 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
| 2928 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
| 2929 | elseif stanceToggle == "Floating" then | |
| 2930 | change = 1 | |
| 2931 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(-16) - root.RotVelocity.Y / 20, math.rad(-20) - root.RotVelocity.Y / 20, math.rad(10 + 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2932 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
| 2933 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
| 2934 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
| 2935 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
| 2936 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
| 2937 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
| 2938 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
| 2939 | end | |
| 2940 | ||
| 2941 | elseif animpose == "Jumping" then --JUMPING ANIM | |
| 2942 | ||
| 2943 | if stanceToggle == "Normal" and holy ~= true then | |
| 2944 | change = 0.8 | |
| 2945 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2) | |
| 2946 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2947 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
| 2948 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2949 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
| 2950 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2951 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2952 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2953 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2954 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2955 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2956 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
| 2957 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-18),math.rad(0), math.rad(0)),0.3) | |
| 2958 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-13), math.rad (0), math.rad(0)), 0.3) | |
| 2959 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3) | |
| 2960 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), 0.3) | |
| 2961 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -0.6) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
| 2962 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.4) * CFrame.Angles(math.rad(-20), 0, 0), 0.3) | |
| 2963 | elseif stanceToggle == "Grabbed" and holy == true then | |
| 2964 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
| 2965 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
| 2966 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
| 2967 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
| 2968 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
| 2969 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 2970 | end | |
| 2971 | ||
| 2972 | elseif animpose == "Freefalling" then --FF ANIM | |
| 2973 | ||
| 2974 | if stanceToggle == "Normal" and holy ~= true then | |
| 2975 | change = 0.8 | |
| 2976 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2) | |
| 2977 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2978 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2) | |
| 2979 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2980 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
| 2981 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
| 2982 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2983 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
| 2984 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2985 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
| 2986 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2987 | end | |
| 2988 | elseif stanceToggle == "Normal" and holy == true then | |
| 2989 | change = 0.8 | |
| 2990 | change = 0.5 | |
| 2991 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
| 2992 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
| 2993 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14 - 5 * math.cos(sine / 10)), math.rad(-20), 0), 0.4) | |
| 2994 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(-10 + 3 * math.cos(sine / 10)), math.rad(20), math.rad(0)), 0.05) | |
| 2995 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
| 2996 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
| 2997 | end | |
| 2998 | end | |
| 2999 | end) | |
| 3000 | hum.MaxHealth = 5000 | |
| 3001 | wait(3) | |
| 3002 | hum.Health = 5000 |