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 | --[[ | |
| 153 | Black Goku - Rose | |
| 154 | Credits: | |
| 155 | KingAbsalom | |
| 156 | VoIquin | |
| 157 | RevenntOfDespair | |
| 158 | ]] | |
| 159 | ||
| 160 | local p = game.Players.LocalPlayer | |
| 161 | local char = p.Character | |
| 162 | local mouse = p:GetMouse() | |
| 163 | local larm = char["Left Arm"] | |
| 164 | local rarm = char["Right Arm"] | |
| 165 | local lleg = char["Left Leg"] | |
| 166 | local rleg = char["Right Leg"] | |
| 167 | local hed = char.Head | |
| 168 | local torso = char.Torso | |
| 169 | local hum = char.Humanoid | |
| 170 | local cam = game.Workspace.CurrentCamera | |
| 171 | local root = char.HumanoidRootPart | |
| 172 | local deb = false | |
| 173 | local shot = 0 | |
| 174 | local potential = false | |
| 175 | local debris=game:service"Debris" | |
| 176 | local l = game:GetService("Lighting")
| |
| 177 | local rs = game:GetService("RunService").RenderStepped
| |
| 178 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 179 | math.randomseed(os.time()) | |
| 180 | for i,v in pairs(char:children()) do | |
| 181 | if v:IsA("Accessory") then
| |
| 182 | v:Destroy() | |
| 183 | end | |
| 184 | end | |
| 185 | for i,v in pairs (hed:GetChildren()) do | |
| 186 | if v:IsA("Sound") then
| |
| 187 | v:Destroy() | |
| 188 | end | |
| 189 | end | |
| 190 | ---------------------------------------------------- | |
| 191 | Debounces = {
| |
| 192 | CanAttack = true; | |
| 193 | NoIdl = false; | |
| 194 | Slashing = false; | |
| 195 | Slashed = false; | |
| 196 | RPunch = false; | |
| 197 | Invisible = false; | |
| 198 | RPunched = false; | |
| 199 | LPunch = false; | |
| 200 | LPunched = false; | |
| 201 | } | |
| 202 | local Touche = {char.Name, }
| |
| 203 | ---------------------------------------------------- | |
| 204 | hed.face.Texture = "rbxassetid://439123785" | |
| 205 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
| |
| 206 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
| |
| 207 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
| |
| 208 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
| |
| 209 | ---------------------------------------------------- | |
| 210 | ypcall(function() | |
| 211 | shirt = Instance.new("Shirt", char)
| |
| 212 | shirt.Name = "Shirt" | |
| 213 | pants = Instance.new("Pants", char)
| |
| 214 | pants.Name = "Pants" | |
| 215 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=513620832" | |
| 216 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=513621366" | |
| 217 | end) | |
| 218 | ---------------------------------------------------- | |
| 219 | ---------------------------------------------------- | |
| 220 | --[[Additional Functions]] | |
| 221 | ||
| 222 | cf=CFrame.new | |
| 223 | vt=Vector3.new | |
| 224 | ||
| 225 | function swait(num) | |
| 226 | if num==0 or num==nil then | |
| 227 | game:service'RunService'.Stepped:wait(0) | |
| 228 | else | |
| 229 | for i=0,num do | |
| 230 | game:service'RunService'.Stepped:wait(0) | |
| 231 | end | |
| 232 | end | |
| 233 | end | |
| 234 | ||
| 235 | so = function(id,par,vol,pit) | |
| 236 | coroutine.resume(coroutine.create(function() | |
| 237 | local sou = Instance.new("Sound",par or workspace)
| |
| 238 | sou.Volume=vol | |
| 239 | sou.Pitch=pit or 1 | |
| 240 | sou.SoundId=id | |
| 241 | swait() | |
| 242 | sou:play() | |
| 243 | game:GetService("Debris"):AddItem(sou,6)
| |
| 244 | end)) | |
| 245 | end | |
| 246 | ||
| 247 | ---------------------------------------------------- | |
| 248 | ||
| 249 | function lerp(a, b, t) -- Linear interpolation | |
| 250 | return a + (b - a)*t | |
| 251 | end | |
| 252 | ||
| 253 | function slerp(a, b, t) --Spherical interpolation | |
| 254 | dot = a:Dot(b) | |
| 255 | if dot > 0.99999 or dot < -0.99999 then | |
| 256 | return t <= 0.5 and a or b | |
| 257 | else | |
| 258 | r = math.acos(dot) | |
| 259 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 260 | end | |
| 261 | end | |
| 262 | ||
| 263 | function matrixInterpolate(a, b, t) | |
| 264 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 265 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 266 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 267 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 268 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 269 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 270 | local t = v1:Dot(v2) | |
| 271 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 272 | return CFrame.new() | |
| 273 | end | |
| 274 | return CFrame.new( | |
| 275 | v0.x, v0.y, v0.z, | |
| 276 | v1.x, v1.y, v1.z, | |
| 277 | v2.x, v2.y, v2.z, | |
| 278 | v3.x, v3.y, v3.z) | |
| 279 | end | |
| 280 | lmod = Instance.new("Model",char)
| |
| 281 | ---------------------------------------------------- | |
| 282 | function Landing() | |
| 283 | part=Instance.new('Part',lmod)
| |
| 284 | part.Anchored=true | |
| 285 | part.CanCollide=false | |
| 286 | part.FormFactor='Custom' | |
| 287 | part.Size=Vector3.new(.2,.2,.2) | |
| 288 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
| 289 | part.Transparency=.7 | |
| 290 | part.BrickColor=BrickColor.new('Institutional white')
| |
| 291 | mesh=Instance.new('SpecialMesh',part)
| |
| 292 | mesh.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 293 | mesh.Scale=Vector3.new(8,3,8) | |
| 294 | ||
| 295 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,20))do | |
| 296 | if v:FindFirstChild('Humanoid') then
| |
| 297 | v.Humanoid:TakeDamage(math.random(20,30)) | |
| 298 | v.Humanoid.PlatformStand = true | |
| 299 | coroutine.resume(coroutine.create(function() | |
| 300 | wait(2) | |
| 301 | v.Humanoid.PlatformStand = false | |
| 302 | end)) | |
| 303 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 304 | end | |
| 305 | end | |
| 306 | ||
| 307 | coroutine.resume(coroutine.create(function() | |
| 308 | for i=0,3.8,0.05 do | |
| 309 | wait() | |
| 310 | part.CFrame=part.CFrame | |
| 311 | part.Transparency=i + 0.5 | |
| 312 | mesh.Scale=mesh.Scale+Vector3.new(1, -0.1 ,1) | |
| 313 | end | |
| 314 | part.Parent = nil | |
| 315 | end)) | |
| 316 | end | |
| 317 | function newRay(start,face,range,wat) | |
| 318 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 319 | hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 320 | return rey,hit,pos | |
| 321 | end | |
| 322 | ---------------------------------------------------- | |
| 323 | partic2 = Instance.new("ParticleEmitter",torso)
| |
| 324 | partic2.Color = ColorSequence.new(Color3.new(100/225,100/255,100/255),Color3.new(100/255,100/255,100/255)) | |
| 325 | partic2.LightEmission = .95 | |
| 326 | partic2.VelocityInheritance = 0.2 | |
| 327 | partic2.Rate = 300 | |
| 328 | partic2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 329 | partic2.Lifetime = NumberRange.new(0.1,0.2) | |
| 330 | partic2.RotSpeed = NumberRange.new(100,100) | |
| 331 | partic2.Speed = NumberRange.new(2,6) | |
| 332 | partic2.Enabled = false | |
| 333 | partic2.LockedToPart = false | |
| 334 | -------------------- | |
| 335 | function Charge() | |
| 336 | pt=Instance.new('Part',torso)
| |
| 337 | pt.Anchored=true | |
| 338 | pt.CanCollide=false | |
| 339 | pt.Locked = true | |
| 340 | pt.FormFactor='Custom' | |
| 341 | pt.Size=Vector3.new(1,1,1) | |
| 342 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 343 | pt.Transparency=0.2 | |
| 344 | pt.BrickColor=BrickColor.new("Dark Indigo")
| |
| 345 | msh=Instance.new('SpecialMesh',pt)
| |
| 346 | msh.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 347 | msh.Scale=Vector3.new(6,3,6) | |
| 348 | pt2=pt:clone() | |
| 349 | pt2.Parent = torso | |
| 350 | pt2.Transparency=0.4 | |
| 351 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 352 | pt2.BrickColor=BrickColor.new("Dark Indigo")
| |
| 353 | msh2=msh:clone() | |
| 354 | msh2.Parent=pt2 | |
| 355 | msh2.Scale=Vector3.new(8,4,8) | |
| 356 | pt3=Instance.new('Part',torso)
| |
| 357 | pt3.Anchored=true | |
| 358 | pt3.CanCollide=false | |
| 359 | pt3.Locked = true | |
| 360 | pt3.FormFactor='Custom' | |
| 361 | pt3.Size=Vector3.new(1,1,1) | |
| 362 | pt3.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 363 | pt3.Transparency=0.6 | |
| 364 | pt3.BrickColor=BrickColor.new("Dark Indigo")
| |
| 365 | msh3=Instance.new('SpecialMesh',pt3)
| |
| 366 | msh3.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 367 | msh3.Scale=Vector3.new(12,6,12) | |
| 368 | pt4=pt:clone() | |
| 369 | pt4.Parent = torso | |
| 370 | pt4.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 371 | pt4.Transparency=0.8 | |
| 372 | pt4.BrickColor=BrickColor.new("Dark Indigo")
| |
| 373 | msh4=msh:clone() | |
| 374 | msh4.Parent=pt4 | |
| 375 | msh4.Scale=Vector3.new(16,8,16) | |
| 376 | coroutine.resume(coroutine.create(function() | |
| 377 | for i=1, math.huge, 4 do | |
| 378 | if Charging == true then | |
| 379 | wait() | |
| 380 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2+0.11*math.cos(sine/10)),0) | |
| 381 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2+0.12*math.cos(sine/12)),0) | |
| 382 | pt3.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2+0.13*math.cos(sine/14)),0) | |
| 383 | pt4.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2+0.14*math.cos(sine/16)),0) | |
| 384 | pt.CFrame = pt.CFrame+Vector3.new(0,0.01,0) | |
| 385 | pt2.CFrame = pt2.CFrame+Vector3.new(0,0.01,0) | |
| 386 | pt3.CFrame = pt3.CFrame+Vector3.new(0,0.01,0) | |
| 387 | pt4.CFrame = pt4.CFrame+Vector3.new(0,0.01,0) | |
| 388 | msh.Scale = msh.Scale + Vector3.new(0.05,0.04+0.8*math.cos(sine/9),0.05) | |
| 389 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0.04+0.8*math.cos(sine/7),0.05) | |
| 390 | msh3.Scale = msh3.Scale + Vector3.new(0.05,0.04+0.8*math.cos(sine/5),0.05) | |
| 391 | msh4.Scale = msh4.Scale + Vector3.new(0.05,0.04+0.8*math.cos(sine/3),0.05) | |
| 392 | elseif Charging == false then | |
| 393 | pt:Remove() | |
| 394 | pt2:Remove() | |
| 395 | pt3:Remove() | |
| 396 | pt4:Remove() | |
| 397 | break | |
| 398 | end | |
| 399 | end | |
| 400 | end)) | |
| 401 | end | |
| 402 | --------------- | |
| 403 | Magik = function() | |
| 404 | Spawn(function() | |
| 405 | if Debounces.Invisible == false then | |
| 406 | local function lerp(a,b,c) | |
| 407 | return a+(b-a)*c | |
| 408 | end | |
| 409 | local function rndRange(rng) | |
| 410 | return math.random(-rng*1000,rng*1000)/1000 | |
| 411 | end | |
| 412 | local magik = Instance.new("Part", larm)
| |
| 413 | local Colors = {"Carnation pink", "Crimson", "Black"}
| |
| 414 | magik.Anchored = true | |
| 415 | magik.Locked = true | |
| 416 | magik.FormFactor = "Custom" | |
| 417 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 418 | magik.TopSurface = "Smooth" | |
| 419 | magik.Transparency = 0 | |
| 420 | magik.Material = "Neon" | |
| 421 | ||
| 422 | magik.BottomSurface = "Smooth" | |
| 423 | magik.CanCollide = false | |
| 424 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 425 | local mr = math.rad | |
| 426 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 427 | local cf = lleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)--bad argument #1 to '?' | |
| 428 | magik.CFrame = cf | |
| 429 | for i = 0, 1, .05 do | |
| 430 | local newTrans = lerp(0.5, 1, i) | |
| 431 | local ns = lerp(1,1.2,i) | |
| 432 | magik.Transparency = newTrans | |
| 433 | magik.Size = Vector3.new(ns,ns,ns) | |
| 434 | magik.CFrame = cf | |
| 435 | rs:wait() | |
| 436 | end | |
| 437 | magik:Destroy() | |
| 438 | elseif Debounces.Invisible == true then | |
| 439 | wait() | |
| 440 | end | |
| 441 | end) | |
| 442 | end | |
| 443 | ---------------------------------------------------- | |
| 444 | Magik2 = function() | |
| 445 | Spawn(function() | |
| 446 | if Debounces.Invisible == false then | |
| 447 | local function lerp(a,b,c) | |
| 448 | return a+(b-a)*c | |
| 449 | end | |
| 450 | local function rndRange(rng) | |
| 451 | return math.random(-rng*1000,rng*1000)/1000 | |
| 452 | end | |
| 453 | local magik2 = Instance.new("Part", larm)
| |
| 454 | local Colors = {"Carnation pink", "Crimson", "Black"}
| |
| 455 | magik2.Anchored = true | |
| 456 | magik2.Locked = true | |
| 457 | magik2.FormFactor = "Custom" | |
| 458 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 459 | magik2.TopSurface = "Smooth" | |
| 460 | magik2.Transparency = 0 | |
| 461 | magik2.Material = "Neon" | |
| 462 | ||
| 463 | magik2.BottomSurface = "Smooth" | |
| 464 | magik2.CanCollide = false | |
| 465 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 466 | local mr = math.rad | |
| 467 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 468 | local cf = rleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)--bad argument #1 to '?' | |
| 469 | magik2.CFrame = cf | |
| 470 | for i = 0, 1, .05 do | |
| 471 | local newTrans = lerp(0.5, 1, i) | |
| 472 | local ns = lerp(1,1.2,i) | |
| 473 | magik2.Transparency = newTrans | |
| 474 | magik2.Size = Vector3.new(ns,ns,ns) | |
| 475 | magik2.CFrame = cf | |
| 476 | rs:wait() | |
| 477 | end | |
| 478 | magik2:Destroy() | |
| 479 | elseif Debounces.Invisible == true then | |
| 480 | wait() | |
| 481 | end | |
| 482 | end) | |
| 483 | end | |
| 484 | ---------------------------------------------------- | |
| 485 | function NewPart(prnt,siz,cf,col,mat) | |
| 486 | local prt=Instance.new("Part")
| |
| 487 | prt.Parent=prnt | |
| 488 | prt.FormFactor=3 | |
| 489 | prt.Name="Part" | |
| 490 | prt.Size=siz | |
| 491 | prt.CanCollide=false | |
| 492 | prt.Anchored=true | |
| 493 | prt.Locked=true | |
| 494 | prt.TopSurface=10 | |
| 495 | prt.BottomSurface=10 | |
| 496 | prt.FrontSurface=10 | |
| 497 | prt.BackSurface=10 | |
| 498 | prt.LeftSurface=10 | |
| 499 | prt.RightSurface=10 | |
| 500 | prt:BreakJoints() | |
| 501 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 502 | prt.Material=mat | |
| 503 | prt.BrickColor=BrickColor.new(col) | |
| 504 | m=Instance.new("SpecialMesh",prt)
| |
| 505 | m.MeshType=6 | |
| 506 | return prt | |
| 507 | end | |
| 508 | ----------------------------------------- | |
| 509 | ||
| 510 | function genWeld(a,b) | |
| 511 | local w = Instance.new("Weld",a)
| |
| 512 | w.Part0 = a | |
| 513 | w.Part1 = b | |
| 514 | return w | |
| 515 | end | |
| 516 | function weld(a, b) | |
| 517 | local weld = Instance.new("Weld")
| |
| 518 | weld.Name = "W" | |
| 519 | weld.Part0 = a | |
| 520 | weld.Part1 = b | |
| 521 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 522 | weld.Parent = a | |
| 523 | return weld; | |
| 524 | end | |
| 525 | ---------------------------------------------------- | |
| 526 | function Lerp(c1,c2,al) | |
| 527 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 528 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 529 | for i,v in pairs(com1) do | |
| 530 | com1[i] = v+(com2[i]-v)*al | |
| 531 | end | |
| 532 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 533 | end | |
| 534 | ---------------------------------------------------- | |
| 535 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 536 | local wld = Instance.new("Weld", wp1)
| |
| 537 | wld.Part0 = wp0 | |
| 538 | wld.Part1 = wp1 | |
| 539 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 540 | end | |
| 541 | ---------------------------------------------------- | |
| 542 | function weld5(part0, part1, c0, c1) | |
| 543 | weeld=Instance.new("Weld", part0)
| |
| 544 | weeld.Part0=part0 | |
| 545 | weeld.Part1=part1 | |
| 546 | weeld.C0=c0 | |
| 547 | weeld.C1=c1 | |
| 548 | return weeld | |
| 549 | end | |
| 550 | ---------------------------------------------------- | |
| 551 | function HasntTouched(plrname) | |
| 552 | local ret = true | |
| 553 | for _, v in pairs(Touche) do | |
| 554 | if v == plrname then | |
| 555 | ret = false | |
| 556 | end | |
| 557 | end | |
| 558 | return ret | |
| 559 | end | |
| 560 | ---------------------------------------------------- | |
| 561 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 562 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 563 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 564 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 565 | newWeld(torso, hed, 0, 1.5, 0) | |
| 566 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 567 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 568 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 569 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 570 | newWeld(root, torso, 0, -1, 0) | |
| 571 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 572 | ------------------------------------------------------music | |
| 573 | z = Instance.new("Sound", char)
| |
| 574 | z.SoundId = "rbxassetid://584633532"--552945114 | |
| 575 | z.Looped = true | |
| 576 | z.Pitch = 1 | |
| 577 | z.Volume = 1 | |
| 578 | wait(.1) | |
| 579 | z:Play() | |
| 580 | ---------------------------------------------------- | |
| 581 | local Transforming = false | |
| 582 | hum.WalkSpeed = 0 | |
| 583 | local fx = Instance.new("Part",torso)
| |
| 584 | fx.Anchored = true | |
| 585 | fx.Material = "Neon" | |
| 586 | fx.CanCollide = false | |
| 587 | fx.Locked = true | |
| 588 | fx.Transparency = 1 | |
| 589 | fx.Material = "SmoothPlastic" | |
| 590 | fx.Size = Vector3.new(1,1,1) | |
| 591 | fx.TopSurface = "SmoothNoOutlines" | |
| 592 | fx.BottomSurface = "SmoothNoOutlines" | |
| 593 | fx.BrickColor = BrickColor.new("Carnation pink")
| |
| 594 | fxm = Instance.new("SpecialMesh",fx)
| |
| 595 | fxm.MeshType = "Sphere" | |
| 596 | fxm.Scale = Vector3.new(1,1,1) | |
| 597 | for i = 1, 20 do rs:wait() | |
| 598 | fx.Transparency = fx.Transparency - (1/20) | |
| 599 | fx.CFrame = torso.CFrame | |
| 600 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
| 601 | ||
| 602 | end | |
| 603 | ------------------------------------------------ | |
| 604 | ||
| 605 | local m = Instance.new("Model")
| |
| 606 | m.Name = "Hair" | |
| 607 | p1 = Instance.new("Part", m)
| |
| 608 | p1.BrickColor = BrickColor.new("Carnation pink")
| |
| 609 | p1.Transparency = 1 | |
| 610 | p1.FormFactor = Enum.FormFactor.Symmetric | |
| 611 | p1.Size = Vector3.new(1, 1, 1) | |
| 612 | p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006) | |
| 613 | p1.CanCollide = false | |
| 614 | p1.Locked = true | |
| 615 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
| 616 | p1.TopSurface = Enum.SurfaceType.Smooth | |
| 617 | b1 = Instance.new("SpecialMesh", p1)
| |
| 618 | b1.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 619 | b1.TextureId = "" | |
| 620 | b1.MeshType = Enum.MeshType.FileMesh | |
| 621 | b1.Name = "Mesh" | |
| 622 | b1.VertexColor = Vector3.new(0, 0, 0) | |
| 623 | b1.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
| 624 | p2 = Instance.new("Part", m)
| |
| 625 | p2.BrickColor = BrickColor.new("Pastel brown")
| |
| 626 | p2.Transparency = 1 | |
| 627 | p2.Name = "Head" | |
| 628 | p2.FormFactor = Enum.FormFactor.Symmetric | |
| 629 | p2.Size = Vector3.new(2, 1, 1) | |
| 630 | p2.CFrame = CFrame.new(-1.70008016, 8.14794922, -3.40013027, 4.24603923e-006, 7.4505806e-008, -1, -1.50268988e-007, 1, 1.49011612e-008, 1.00000012, 6.79109462e-008, 4.23316806e-006) | |
| 631 | p2.CanCollide = false | |
| 632 | p2.Locked = true | |
| 633 | p2.TopSurface = Enum.SurfaceType.Smooth | |
| 634 | b2 = Instance.new("SpecialMesh", p2)
| |
| 635 | b2.MeshType = Enum.MeshType.Head | |
| 636 | b2.Name = "Mesh" | |
| 637 | b2.Scale = Vector3.new(1.25, 1.25, 1.25) | |
| 638 | p3 = Instance.new("Part", m)
| |
| 639 | p3.BrickColor = BrickColor.new("Carnation pink")
| |
| 640 | p3.Transparency = 1 | |
| 641 | p3.FormFactor = Enum.FormFactor.Symmetric | |
| 642 | p3.Size = Vector3.new(2, 2, 2) | |
| 643 | p3.CFrame = CFrame.new(-1.70003617, 8.71796131, -3.4000442, 2.57710985e-006, 6.95607483e-008, -1.00000012, -1.20466638e-007, 1, 9.95640903e-009, 1.00000024, 3.81086345e-008, 2.56423846e-006) | |
| 644 | p3.CanCollide = false | |
| 645 | p3.Locked = true | |
| 646 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
| 647 | p3.TopSurface = Enum.SurfaceType.Smooth | |
| 648 | b3 = Instance.new("SpecialMesh", p3)
| |
| 649 | b3.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
| 650 | b3.TextureId = "" | |
| 651 | b3.MeshType = Enum.MeshType.FileMesh | |
| 652 | b3.Name = "Mesh" | |
| 653 | b3.VertexColor = Vector3.new(0, 0, 0) | |
| 654 | b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
| 655 | p4 = Instance.new("Part", m)
| |
| 656 | p4.BrickColor = BrickColor.new("Carnation pink")
| |
| 657 | p4.FormFactor = Enum.FormFactor.Symmetric | |
| 658 | p4.Size = Vector3.new(1, 1, 1) | |
| 659 | p4.Transparency = 1 | |
| 660 | p4.CFrame = CFrame.new(-1.77981007, 8.84795475, -3.40016508, 5.79576135e-006, 7.9450956e-008, -1.00000012, -1.80071311e-007, 1, 1.98458743e-008, 1.00000024, 9.77132402e-008, 5.78289018e-006) | |
| 661 | p4.CanCollide = false | |
| 662 | p4.Locked = true | |
| 663 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
| 664 | p4.TopSurface = Enum.SurfaceType.Smooth | |
| 665 | b4 = Instance.new("SpecialMesh", p4)
| |
| 666 | b4.MeshId = "http://www.roblox.com/asset/?id=19326912" | |
| 667 | b4.TextureId = "" | |
| 668 | b4.MeshType = Enum.MeshType.FileMesh | |
| 669 | b4.Name = "Mesh" | |
| 670 | b4.VertexColor = Vector3.new(0, 0, 0) | |
| 671 | p5 = Instance.new("Part", m)
| |
| 672 | p5.BrickColor = BrickColor.new("Carnation pink")
| |
| 673 | p5.FormFactor = Enum.FormFactor.Symmetric | |
| 674 | p5.Size = Vector3.new(1, 1, 1) | |
| 675 | p5.CFrame = CFrame.new(-1.70003772, 8.46796131, -3.40004301, -3.43517968e-007, 2.98088111e-007, -1, -1.00421907e-007, 1, 2.38484063e-007, 1.00000012, 1.80640072e-008, -3.56389592e-007) | |
| 676 | p5.CanCollide = false | |
| 677 | p5.Transparency = 1 | |
| 678 | p5.Locked = true | |
| 679 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
| 680 | p5.TopSurface = Enum.SurfaceType.Smooth | |
| 681 | b5 = Instance.new("SpecialMesh", p5)
| |
| 682 | b5.MeshId = "http://www.roblox.com/asset/?id=45916884" | |
| 683 | b5.TextureId = "" | |
| 684 | b5.MeshType = Enum.MeshType.FileMesh | |
| 685 | b5.Name = "Mesh" | |
| 686 | b5.VertexColor = Vector3.new(0, 0, 0) | |
| 687 | b5.Scale = Vector3.new(1, 0.899999976, 1) | |
| 688 | p6 = Instance.new("Part", m)
| |
| 689 | p6.BrickColor = BrickColor.new("Carnation pink")
| |
| 690 | p6.FormFactor = Enum.FormFactor.Symmetric | |
| 691 | p6.Transparency = 1 | |
| 692 | p6.Size = Vector3.new(1, 1, 1) | |
| 693 | p6.CFrame = CFrame.new(-1.89967656, 8.58795834, -3.44990659, -5.81936433e-007, 5.36502284e-007, -0.99999994, -1.3998249e-007, 1, 4.76898265e-007, 1, 5.76247672e-008, -5.94808171e-007) | |
| 694 | p6.CanCollide = false | |
| 695 | p6.Locked = true | |
| 696 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
| 697 | p6.TopSurface = Enum.SurfaceType.Smooth | |
| 698 | b6 = Instance.new("SpecialMesh", p6)
| |
| 699 | b6.MeshId = "http://www.roblox.com/asset/?id=62246019" | |
| 700 | b6.TextureId = "" | |
| 701 | b6.MeshType = Enum.MeshType.FileMesh | |
| 702 | b6.Name = "Mesh" | |
| 703 | b6.VertexColor = Vector3.new(0, 0, 0) | |
| 704 | p7 = Instance.new("Part", m)
| |
| 705 | p7.BrickColor = BrickColor.new("Carnation pink")
| |
| 706 | p7.FormFactor = Enum.FormFactor.Symmetric | |
| 707 | p7.Transparency = 1 | |
| 708 | p7.Size = Vector3.new(1, 1, 1) | |
| 709 | p7.CFrame = CFrame.new(-1.89918542, 8.31796837, -3.50097537, -4.62727087e-007, 5.36502228e-007, -0.999999881, -1.39982518e-007, 1, 4.76898208e-007, 0.99999994, 5.76247459e-008, -4.75598938e-007) | |
| 710 | p7.CanCollide = false | |
| 711 | p7.Locked = true | |
| 712 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
| 713 | p7.TopSurface = Enum.SurfaceType.Smooth | |
| 714 | b7 = Instance.new("SpecialMesh", p7)
| |
| 715 | b7.MeshId = "http://www.roblox.com/asset/?id=76056263" | |
| 716 | b7.TextureId = "" | |
| 717 | b7.MeshType = Enum.MeshType.FileMesh | |
| 718 | b7.Name = "Mesh" | |
| 719 | b7.VertexColor = Vector3.new(0, 0, 0) | |
| 720 | p8 = Instance.new("Part", m)
| |
| 721 | p8.BrickColor = BrickColor.new("Carnation pink")
| |
| 722 | p8.FormFactor = Enum.FormFactor.Symmetric | |
| 723 | p8.Size = Vector3.new(1, 1, 1) | |
| 724 | p8.CFrame = CFrame.new(-2.62433338, 7.66397905, -3.4010179, -1.17798254e-006, -0.805111349, 0.593123376, -2.5008859e-007, -0.593123615, -0.805111527, 0.999999881, -9.58229293e-007, 4.4941558e-007) | |
| 725 | p8.CanCollide = false | |
| 726 | p8.Transparency = 1 | |
| 727 | p8.Locked = true | |
| 728 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
| 729 | p8.TopSurface = Enum.SurfaceType.Smooth | |
| 730 | b8 = Instance.new("SpecialMesh", p8)
| |
| 731 | b8.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 732 | b8.TextureId = "" | |
| 733 | b8.MeshType = Enum.MeshType.FileMesh | |
| 734 | b8.Name = "Mesh" | |
| 735 | b8.VertexColor = Vector3.new(0, 0, 0) | |
| 736 | b8.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
| 737 | p9 = Instance.new("Part", m)
| |
| 738 | p9.BrickColor = BrickColor.new("Carnation pink")
| |
| 739 | p9.FormFactor = Enum.FormFactor.Symmetric | |
| 740 | p9.Size = Vector3.new(2, 1, 2) | |
| 741 | p9.Transparency = 1 | |
| 742 | p9.CFrame = CFrame.new(-1.76505995, 8.56096649, -3.40065479, -9.73168881e-007, -0.0995008349, -0.995037436, -1.70322267e-007, 0.995037675, -0.0995009243, 1, 1.13823972e-007, -6.80968242e-007) | |
| 743 | p9.CanCollide = false | |
| 744 | p9.Locked = true | |
| 745 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
| 746 | p9.TopSurface = Enum.SurfaceType.Smooth | |
| 747 | b9 = Instance.new("SpecialMesh", p9)
| |
| 748 | b9.MeshId = "http://www.roblox.com/asset/?id=12259089" | |
| 749 | b9.TextureId = "" | |
| 750 | b9.MeshType = Enum.MeshType.FileMesh | |
| 751 | b9.Name = "Mesh" | |
| 752 | b9.VertexColor = Vector3.new(0, 0, 0) | |
| 753 | b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995) | |
| 754 | p10 = Instance.new("Part", m)
| |
| 755 | p10.BrickColor = BrickColor.new("Carnation pink")
| |
| 756 | p10.Transparency = 1 | |
| 757 | p10.FormFactor = Enum.FormFactor.Symmetric | |
| 758 | p10.Size = Vector3.new(1, 1, 1) | |
| 759 | p10.CFrame = CFrame.new(-2.0207715, 9.06097031, -3.39961624, -1.10652763e-006, -0.683569431, -0.729885519, -2.85231891e-007, 0.729885638, -0.68356967, 1.00000012, -3.22293062e-007, -8.40051371e-007) | |
| 760 | p10.CanCollide = false | |
| 761 | p10.Locked = true | |
| 762 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
| 763 | p10.TopSurface = Enum.SurfaceType.Smooth | |
| 764 | b10 = Instance.new("SpecialMesh", p10)
| |
| 765 | b10.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 766 | b10.TextureId = "" | |
| 767 | b10.MeshType = Enum.MeshType.FileMesh | |
| 768 | b10.Name = "Mesh" | |
| 769 | b10.VertexColor = Vector3.new(0, 0, 0) | |
| 770 | b10.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
| 771 | p11 = Instance.new("Part", m)
| |
| 772 | p11.BrickColor = BrickColor.new("Carnation pink")
| |
| 773 | p11.Transparency = 1 | |
| 774 | p11.FormFactor = Enum.FormFactor.Symmetric | |
| 775 | p11.Size = Vector3.new(1, 1, 1) | |
| 776 | p11.CFrame = CFrame.new(-2.16468835, 8.78595829, -3.40089417, -1.41617738e-006, -0.989475727, -0.144699216, -4.36450762e-007, 0.144699067, -0.989476085, 1.00000024, -9.47996682e-007, -7.38401468e-007) | |
| 777 | p11.CanCollide = false | |
| 778 | p11.Locked = true | |
| 779 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
| 780 | p11.TopSurface = Enum.SurfaceType.Smooth | |
| 781 | b11 = Instance.new("SpecialMesh", p11)
| |
| 782 | b11.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 783 | b11.TextureId = "" | |
| 784 | b11.MeshType = Enum.MeshType.FileMesh | |
| 785 | b11.Name = "Mesh" | |
| 786 | b11.VertexColor = Vector3.new(0, 0, 0) | |
| 787 | b11.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
| 788 | p12 = Instance.new("Part", m)
| |
| 789 | p12.BrickColor = BrickColor.new("Carnation pink")
| |
| 790 | p12.FormFactor = Enum.FormFactor.Custom | |
| 791 | p12.Size = Vector3.new(1, 3.5, 1) | |
| 792 | p12.CFrame = CFrame.new(-3.74216318, 6.74288082, -3.40101933, -1.20476273e-006, -0.553697288, 0.832718134, -3.31002866e-007, -0.832718611, -0.553697169, 1.00000036, -8.7345768e-007, 3.69213154e-007) | |
| 793 | p12.CanCollide = false | |
| 794 | p12.Transparency = 1 | |
| 795 | p12.Locked = true | |
| 796 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
| 797 | p12.TopSurface = Enum.SurfaceType.Smooth | |
| 798 | b12 = Instance.new("SpecialMesh", p12)
| |
| 799 | b12.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 800 | b12.TextureId = "" | |
| 801 | b12.MeshType = Enum.MeshType.FileMesh | |
| 802 | b12.Name = "Mesh" | |
| 803 | b12.VertexColor = Vector3.new(0, 0, 0) | |
| 804 | b12.Scale = Vector3.new(1, 3, 1.29999995) | |
| 805 | p13 = Instance.new("Part", m)
| |
| 806 | p13.Transparency = 1 | |
| 807 | p13.BrickColor = BrickColor.new("Carnation pink")
| |
| 808 | p13.FormFactor = Enum.FormFactor.Custom | |
| 809 | p13.Size = Vector3.new(1, 2, 1) | |
| 810 | p13.CFrame = CFrame.new(-3.32689047, 6.86741829, -3.40101862, -9.81709945e-007, -0.319307148, 0.947651446, -5.6545997e-007, -0.947651923, -0.31930691, 1.00000048, -8.39551717e-007, 1.79318391e-007) | |
| 811 | p13.CanCollide = false | |
| 812 | p13.Locked = true | |
| 813 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
| 814 | p13.TopSurface = Enum.SurfaceType.Smooth | |
| 815 | b13 = Instance.new("SpecialMesh", p13)
| |
| 816 | b13.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 817 | b13.TextureId = "" | |
| 818 | b13.MeshType = Enum.MeshType.FileMesh | |
| 819 | b13.Name = "Mesh" | |
| 820 | b13.VertexColor = Vector3.new(0, 0, 0) | |
| 821 | b13.Scale = Vector3.new(1, 3, 1.29999995) | |
| 822 | p14 = Instance.new("Part", m)
| |
| 823 | p14.Transparency = 1 | |
| 824 | p14.BrickColor = BrickColor.new("Carnation pink")
| |
| 825 | p14.FormFactor = Enum.FormFactor.Custom | |
| 826 | p14.Size = Vector3.new(1, 2, 1) | |
| 827 | p14.CFrame = CFrame.new(-3.02689028, 7.96740961, -3.40101862, -1.33478545e-006, -0.750354111, 0.661036491, -5.20037702e-008, -0.661037207, -0.750354171, 1.0000006, -6.31296757e-007, 2.01137496e-007) | |
| 828 | p14.CanCollide = false | |
| 829 | p14.Locked = true | |
| 830 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
| 831 | p14.TopSurface = Enum.SurfaceType.Smooth | |
| 832 | b14 = Instance.new("SpecialMesh", p14)
| |
| 833 | b14.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 834 | b14.TextureId = "" | |
| 835 | b14.MeshType = Enum.MeshType.FileMesh | |
| 836 | b14.Name = "Mesh" | |
| 837 | b14.VertexColor = Vector3.new(0, 0, 0) | |
| 838 | b14.Scale = Vector3.new(1, 3, 1.29999995) | |
| 839 | p15 = Instance.new("Part", m)
| |
| 840 | p15.BrickColor = BrickColor.new("Carnation pink")
| |
| 841 | p15.FormFactor = Enum.FormFactor.Custom | |
| 842 | p15.Size = Vector3.new(1, 2.5, 1) | |
| 843 | p15.CFrame = CFrame.new(-2.96531463, 7.75924349, -2.90101862, 0.342019022, -0.520305753, 0.782499552, -1.1920929e-007, -0.832718909, -0.553697407, 0.939693451, 0.189374983, -0.284806281) | |
| 844 | p15.CanCollide = false | |
| 845 | p15.Transparency = 1 | |
| 846 | p15.Locked = true | |
| 847 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
| 848 | p15.TopSurface = Enum.SurfaceType.Smooth | |
| 849 | b15 = Instance.new("SpecialMesh", p15)
| |
| 850 | b15.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 851 | b15.TextureId = "" | |
| 852 | b15.MeshType = Enum.MeshType.FileMesh | |
| 853 | b15.Name = "Mesh" | |
| 854 | b15.VertexColor = Vector3.new(0, 0, 0) | |
| 855 | b15.Scale = Vector3.new(1, 3, 1.29999995) | |
| 856 | p16 = Instance.new("Part", m)
| |
| 857 | p16.BrickColor = BrickColor.new("Carnation pink")
| |
| 858 | p16.FormFactor = Enum.FormFactor.Custom | |
| 859 | p16.Size = Vector3.new(1, 2.5, 1) | |
| 860 | p16.Transparency = 1 | |
| 861 | p16.CFrame = CFrame.new(-2.96531439, 7.75924349, -3.80101967, -0.258820295, -0.534830391, 0.804343879, -1.78813934e-007, -0.832718968, -0.553697228, 0.96592629, -0.143308073, 0.215523779) | |
| 862 | p16.CanCollide = false | |
| 863 | p16.Locked = true | |
| 864 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
| 865 | p16.TopSurface = Enum.SurfaceType.Smooth | |
| 866 | b16 = Instance.new("SpecialMesh", p16)
| |
| 867 | b16.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 868 | b16.TextureId = "" | |
| 869 | b16.MeshType = Enum.MeshType.FileMesh | |
| 870 | b16.Name = "Mesh" | |
| 871 | b16.VertexColor = Vector3.new(0, 0, 0) | |
| 872 | b16.Scale = Vector3.new(1, 3, 1.29999995) | |
| 873 | p17 = Instance.new("Part", m)
| |
| 874 | p17.BrickColor = BrickColor.new("Carnation pink")
| |
| 875 | p17.Transparency = 1 | |
| 876 | p17.FormFactor = Enum.FormFactor.Custom | |
| 877 | p17.Size = Vector3.new(1, 2.4000001, 1) | |
| 878 | p17.CFrame = CFrame.new(-2.69075108, 7.07788849, -3.40101933, -1.13248825e-006, -0.319307148, 0.947651625, -1.1920929e-006, -0.947652161, -0.319306791, 1.0000006, -1.54972076e-006, 1.04308128e-007) | |
| 879 | p17.CanCollide = false | |
| 880 | p17.Locked = true | |
| 881 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
| 882 | p17.TopSurface = Enum.SurfaceType.Smooth | |
| 883 | b17 = Instance.new("SpecialMesh", p17)
| |
| 884 | b17.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
| 885 | b17.TextureId = "" | |
| 886 | b17.MeshType = Enum.MeshType.FileMesh | |
| 887 | b17.Name = "Mesh" | |
| 888 | b17.VertexColor = Vector3.new(0, 0, 0) | |
| 889 | b17.Scale = Vector3.new(1, 3, 1.29999995) | |
| 890 | p18 = Instance.new("Part", m)
| |
| 891 | p18.BrickColor = BrickColor.new("Carnation pink")
| |
| 892 | p18.FormFactor = Enum.FormFactor.Custom | |
| 893 | p18.Size = Vector3.new(2, 2, 2) | |
| 894 | p18.Transparency = 1 | |
| 895 | p18.CFrame = CFrame.new(-1.70003319, 8.71796608, -3.40004444, -2.37434961e-006, 1.78813934e-007, 1.00000036, -2.35242567e-007, 1.00000072, 3.27825546e-007, -1.0000006, 7.95440158e-009, -2.91315405e-006) | |
| 896 | p18.CanCollide = false | |
| 897 | p18.Locked = true | |
| 898 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
| 899 | p18.TopSurface = Enum.SurfaceType.Smooth | |
| 900 | b18 = Instance.new("SpecialMesh", p18)
| |
| 901 | b18.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
| 902 | b18.TextureId = "" | |
| 903 | b18.MeshType = Enum.MeshType.FileMesh | |
| 904 | b18.Name = "Mesh" | |
| 905 | b18.VertexColor = Vector3.new(0, 0, 0) | |
| 906 | b18.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
| 907 | w1 = Instance.new("Weld", p1)
| |
| 908 | w1.Name = "Head_Weld" | |
| 909 | w1.Part0 = p1 | |
| 910 | w1.C0 = CFrame.new(3.40111661, -0.744508088, 8.58160019, -5.48362732e-006, 3.27825546e-007, 1, -0.978699088, -0.205299854, -5.30481339e-006, 0.205299824, -0.978699148, 1.49011612e-006) | |
| 911 | w1.Part1 = p2 | |
| 912 | w1.C1 = CFrame.new(3.40013766, -8.14794827, -1.70006609, 4.23192978e-006, -1.08796726e-007, 1.00000012, 2.9664772e-008, 1, 1.08796598e-007, -1.00000012, 2.96642924e-008, 4.23192978e-006) | |
| 913 | w2 = Instance.new("Weld", p2)
| |
| 914 | w2.Name = "Part_Weld" | |
| 915 | w2.Part0 = p2 | |
| 916 | w2.C0 = CFrame.new(3.40013766, -8.14794827, -1.70006609, 4.23192978e-006, -1.08796726e-007, 1.00000012, 2.9664772e-008, 1, 1.08796598e-007, -1.00000012, 2.96642924e-008, 4.23192978e-006) | |
| 917 | w2.Part1 = p3 | |
| 918 | w2.C1 = CFrame.new(3.40004802, -8.71796036, -1.70002759, 2.56299973e-006, -7.89943471e-008, 1, 2.47196947e-008, 1, 7.89942831e-008, -1, 2.47194887e-008, 2.56299973e-006) | |
| 919 | w3 = Instance.new("Weld", p3)
| |
| 920 | w3.Name = "Part_Weld" | |
| 921 | w3.Part0 = p3 | |
| 922 | w3.C0 = CFrame.new(3.40004802, -8.71796036, -1.70002759, 2.56299973e-006, -7.89943471e-008, 1, 2.47196947e-008, 1, 7.89942831e-008, -1, 2.47194887e-008, 2.56299973e-006) | |
| 923 | w3.Part1 = p4 | |
| 924 | w3.C1 = CFrame.new(3.40017533, -8.8479538, -1.77979064, 5.78165054e-006, -1.38599077e-007, 1, 3.46098972e-008, 1, 1.38598878e-007, -1, 3.46090907e-008, 5.78165054e-006) | |
| 925 | w4 = Instance.new("Weld", p4)
| |
| 926 | w4.Name = "Part_Weld" | |
| 927 | w4.Part0 = p4 | |
| 928 | w4.C0 = CFrame.new(3.40017533, -8.8479538, -1.77979064, 5.78165054e-006, -1.38599077e-007, 1, 3.46098972e-008, 1, 1.38598878e-007, -1, 3.46090907e-008, 5.78165054e-006) | |
| 929 | w4.Part1 = p5 | |
| 930 | w4.C1 = CFrame.new(3.40004182, -8.46796036, -1.70004117, -3.57627869e-007, -5.89495883e-008, 0.99999994, 2.53247009e-007, 1, 5.89496665e-008, -0.99999994, 2.53247009e-007, -3.57627869e-007) | |
| 931 | w5 = Instance.new("Weld", p5)
| |
| 932 | w5.Name = "Part_Weld" | |
| 933 | w5.Part0 = p5 | |
| 934 | w5.C0 = CFrame.new(3.40004182, -8.46796036, -1.70004117, -3.57627869e-007, -5.89495883e-008, 0.99999994, 2.53247009e-007, 1, 5.89496665e-008, -0.99999994, 2.53247009e-007, -3.57627869e-007) | |
| 935 | w5.Part1 = p6 | |
| 936 | w5.C1 = CFrame.new(3.44990563, -8.58795738, -1.89968324, -5.96046448e-007, -9.85101565e-008, 1, 4.91661183e-007, 1, 9.85104407e-008, -1, 4.9166124e-007, -5.96046448e-007) | |
| 937 | w6 = Instance.new("Weld", p6)
| |
| 938 | w6.Name = "Part_Weld" | |
| 939 | w6.Part0 = p6 | |
| 940 | w6.C0 = CFrame.new(3.44990563, -8.58795738, -1.89968324, -5.96046448e-007, -9.85101565e-008, 1, 4.91661183e-007, 1, 9.85104407e-008, -1, 4.9166124e-007, -5.96046448e-007) | |
| 941 | w6.Part1 = p7 | |
| 942 | w6.C1 = CFrame.new(3.50097466, -8.31796741, -1.89919162, -4.76837158e-007, -9.85101849e-008, 0.99999994, 4.91661126e-007, 1, 9.85104265e-008, -0.99999994, 4.91661183e-007, -4.76837158e-007) | |
| 943 | w7 = Instance.new("Weld", p7)
| |
| 944 | w7.Name = "Part_Weld" | |
| 945 | w7.Part0 = p7 | |
| 946 | w7.C0 = CFrame.new(3.50097466, -8.31796741, -1.89919162, -4.76837158e-007, -9.85101849e-008, 0.99999994, 4.91661126e-007, 1, 9.85104265e-008, -0.99999994, 4.91661183e-007, -4.76837158e-007) | |
| 947 | w7.Part1 = p8 | |
| 948 | w7.C1 = CFrame.new(3.40101647, 2.43280101, 7.72691393, -1.1920929e-006, -2.08616257e-007, 1, -0.805111527, -0.593123555, -9.83476639e-007, 0.593123496, -0.805111527, 4.17232513e-007) | |
| 949 | w8 = Instance.new("Weld", p8)
| |
| 950 | w8.Name = "Part_Weld" | |
| 951 | w8.Part0 = p8 | |
| 952 | w8.C0 = CFrame.new(3.40101647, 2.43280101, 7.72691393, -1.1920929e-006, -2.08616257e-007, 1, -0.805111527, -0.593123555, -9.83476639e-007, 0.593123496, -0.805111527, 4.17232513e-007) | |
| 953 | w8.Part1 = p9 | |
| 954 | w8.C1 = CFrame.new(3.40065455, -8.6941061, -0.904481649, -8.34465027e-007, -1.67638063e-007, 1.00000012, -0.0995008498, 0.995037496, 1.00582838e-007, -0.995037615, -0.0995008498, -8.34465027e-007) | |
| 955 | w9 = Instance.new("Weld", p9)
| |
| 956 | w9.Name = "Part_Weld" | |
| 957 | w9.Part0 = p9 | |
| 958 | w9.C0 = CFrame.new(3.40065455, -8.6941061, -0.904481649, -8.34465027e-007, -1.67638063e-007, 1.00000012, -0.0995008498, 0.995037496, 1.00582838e-007, -0.995037615, -0.0995008498, -8.34465027e-007) | |
| 959 | w9.Part1 = p10 | |
| 960 | w9.C1 = CFrame.new(3.39961672, -7.99480963, 4.71886492, -9.53674316e-007, -2.98023224e-007, 1, -0.683569372, 0.729885519, -4.47034836e-007, -0.729885459, -0.683569431, -9.53674316e-007) | |
| 961 | w10 = Instance.new("Weld", p10)
| |
| 962 | w10.Name = "Part_Weld" | |
| 963 | w10.Part0 = p10 | |
| 964 | w10.C0 = CFrame.new(3.39961672, -7.99480963, 4.71886492, -9.53674316e-007, -2.98023224e-007, 1, -0.683569372, 0.729885519, -4.47034836e-007, -0.729885459, -0.683569431, -9.53674316e-007) | |
| 965 | w10.Part1 = p11 | |
| 966 | w10.C1 = CFrame.new(3.40089583, -3.41323304, 8.38025856, -1.31130219e-006, -4.76837158e-007, 1.00000012, -0.989475787, 0.144699097, -1.07288361e-006, -0.144699246, -0.989475787, -7.15255737e-007) | |
| 967 | w11 = Instance.new("Weld", p11)
| |
| 968 | w11.Name = "Part_Weld" | |
| 969 | w11.Part0 = p11 | |
| 970 | w11.C0 = CFrame.new(3.40089583, -3.41323304, 8.38025856, -1.31130219e-006, -4.76837158e-007, 1.00000012, -0.989475787, 0.144699097, -1.07288361e-006, -0.144699246, -0.989475787, -7.15255737e-007) | |
| 971 | w11.Part1 = p12 | |
| 972 | w11.C1 = CFrame.new(3.40101814, 3.54288888, 6.84968376, -9.53674316e-007, -4.47034836e-007, 1, -0.553697109, -0.832718134, -9.23871994e-007, 0.832718134, -0.553697109, 6.55651093e-007) | |
| 973 | w12 = Instance.new("Weld", p12)
| |
| 974 | w12.Name = "Part_Weld" | |
| 975 | w12.Part0 = p12 | |
| 976 | w12.C0 = CFrame.new(3.40101814, 3.54288888, 6.84968376, -9.53674316e-007, -4.47034836e-007, 1, -0.553697109, -0.832718134, -9.23871994e-007, 0.832718134, -0.553697109, 6.55651093e-007) | |
| 977 | w12.Part1 = p13 | |
| 978 | w12.C1 = CFrame.new(3.40102005, 5.44561195, 5.34554911, -8.34465027e-007, -6.40749931e-007, 1.00000012, -0.319307029, -0.947651505, -8.19563866e-007, 0.947651386, -0.319307029, 3.57627869e-007) | |
| 979 | w13 = Instance.new("Weld", p13)
| |
| 980 | w13.Name = "Part_Weld" | |
| 981 | w13.Part0 = p13 | |
| 982 | w13.C0 = CFrame.new(3.40102005, 5.44561195, 5.34554911, -8.34465027e-007, -6.40749931e-007, 1.00000012, -0.319307029, -0.947651505, -8.19563866e-007, 0.947651386, -0.319307029, 3.57627869e-007) | |
| 983 | w13.Part1 = p14 | |
| 984 | w13.C1 = CFrame.new(3.40101624, 2.99550176, 7.97925997, -9.53674316e-007, -1.49011612e-007, 1, -0.750353813, -0.661036491, -8.64267349e-007, 0.661036491, -0.750353813, 5.36441803e-007) | |
| 985 | w14 = Instance.new("Weld", p14)
| |
| 986 | w14.Name = "Part_Weld" | |
| 987 | w14.Part0 = p14 | |
| 988 | w14.C0 = CFrame.new(3.40101624, 2.99550176, 7.97925997, -9.53674316e-007, -1.49011612e-007, 1, -0.750353813, -0.661036491, -8.64267349e-007, 0.661036491, -0.750353813, 5.36441803e-007) | |
| 989 | w14.Part1 = p15 | |
| 990 | w14.C1 = CFrame.new(3.74026394, 5.46776819, 5.79039907, 0.34201923, -3.27825546e-007, 0.939692974, -0.520305395, -0.832718134, 0.189374775, 0.782499313, -0.553697109, -0.284805775) | |
| 991 | w15 = Instance.new("Weld", p15)
| |
| 992 | w15.Name = "Part_Weld" | |
| 993 | w15.Part0 = p15 | |
| 994 | w15.C0 = CFrame.new(3.74026394, 5.46776819, 5.79039907, 0.34201923, -3.27825546e-007, 0.939692974, -0.520305395, -0.832718134, 0.189374775, 0.782499313, -0.553697109, -0.284805775) | |
| 995 | w15.Part1 = p16 | |
| 996 | w15.C1 = CFrame.new(2.90401983, 4.33060169, 7.50061178, -0.258819938, -2.68220901e-007, 0.965925574, -0.534830093, -0.832718134, -0.143308043, 0.80434382, -0.55369705, 0.215523928) | |
| 997 | w16 = Instance.new("Weld", p16)
| |
| 998 | w16.Name = "Part_Weld" | |
| 999 | w16.Part0 = p16 | |
| 1000 | w16.C0 = CFrame.new(2.90401983, 4.33060169, 7.50061178, -0.258819938, -2.68220901e-007, 0.965925574, -0.534830093, -0.832718134, -0.143308043, 0.80434382, -0.55369705, 0.215523928) | |
| 1001 | w16.Part1 = p17 | |
| 1002 | w16.C1 = CFrame.new(3.4010253, 5.84818506, 4.80991411, -8.56413749e-007, -1.3483392e-006, 1, -0.31930685, -0.947651386, -1.55121427e-006, 0.947651386, -0.31930685, 3.81047698e-007) | |
| 1003 | w17 = Instance.new("Weld", p17)
| |
| 1004 | w17.Name = "Part_Weld" | |
| 1005 | w17.Part0 = p17 | |
| 1006 | w17.C0 = CFrame.new(3.4010253, 5.84818506, 4.80991411, -8.56413749e-007, -1.3483392e-006, 1, -0.31930685, -0.947651386, -1.55121427e-006, 0.947651386, -0.31930685, 3.81047698e-007) | |
| 1007 | w17.Part1 = p18 | |
| 1008 | w17.C1 = CFrame.new(-3.40004683, -8.71796036, 1.70002675, -2.6504224e-006, -7.89943471e-008, -1, -2.47197018e-008, 1, -7.89942831e-008, 1, 2.47194887e-008, -2.6504224e-006) | |
| 1009 | m.Parent = char | |
| 1010 | m:MakeJoints() | |
| 1011 | ||
| 1012 | ||
| 1013 | ---------------------------------------------------- | |
| 1014 | local cor = Instance.new("Part", char.Hair)
| |
| 1015 | cor.Name = "Link" | |
| 1016 | cor.Locked = true | |
| 1017 | cor.BottomSurface = 0 | |
| 1018 | cor.CanCollide = false | |
| 1019 | cor.Size = Vector3.new(1, 9, 1) | |
| 1020 | cor.Transparency = 1 | |
| 1021 | cor.TopSurface = 0 | |
| 1022 | corw = Instance.new("Weld", cor)
| |
| 1023 | corw.Part0 = hed | |
| 1024 | corw.Part1 = cor | |
| 1025 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1026 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1027 | weld1 = Instance.new("Weld", char.Hair)
| |
| 1028 | weld1.Part0 = cor | |
| 1029 | weld1.Part1 = char.Hair.Head | |
| 1030 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1031 | ----------------------------------------------------betterhair | |
| 1032 | pr = Instance.new("Part",hed)
| |
| 1033 | pr.BrickColor = BrickColor.new("Carnation pink")
| |
| 1034 | pr.Material = "Metal" | |
| 1035 | pr.Reflectance = 0.04 | |
| 1036 | pr.Anchored = false | |
| 1037 | pr.CanCollide = false | |
| 1038 | pr.Archivable = false | |
| 1039 | pr.Locked = true | |
| 1040 | pr.Size = Vector3.new(1,1,1) | |
| 1041 | prm = Instance.new("SpecialMesh",pr)
| |
| 1042 | prm.MeshType = "FileMesh" | |
| 1043 | prm.MeshId = "rbxassetid://560718478" | |
| 1044 | prm.Scale = Vector3.new(6,6,6) | |
| 1045 | newWeld(hed, pr, 0, 0, 0) | |
| 1046 | pr.Weld.C1 = CFrame.new(0,-.8,-.43) * CFrame.Angles(0,0,0) | |
| 1047 | ---------------------------------------------------- | |
| 1048 | ||
| 1049 | GroundWave1 = function() | |
| 1050 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1051 | local Colors = {"Crimson", "Carnation pink"}
| |
| 1052 | local wave = Instance.new("Part", torso)
| |
| 1053 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 1054 | wave.Anchored = true | |
| 1055 | wave.CanCollide = false | |
| 1056 | wave.Locked = true | |
| 1057 | wave.Size = Vector3.new(1, 1, 1) | |
| 1058 | wave.TopSurface = "Smooth" | |
| 1059 | wave.BottomSurface = "Smooth" | |
| 1060 | wave.Transparency = 0.35 | |
| 1061 | wave.CFrame = HandCF | |
| 1062 | wm = Instance.new("SpecialMesh", wave)
| |
| 1063 | wm.MeshId = "rbxassetid://24388358" | |
| 1064 | coroutine.wrap(function() | |
| 1065 | for i = 1, 30, 1 do | |
| 1066 | wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1) | |
| 1067 | wave.Size = wm.Scale | |
| 1068 | wave.CFrame = HandCF | |
| 1069 | wave.Transparency = i/30 | |
| 1070 | wait() | |
| 1071 | end | |
| 1072 | wait() | |
| 1073 | wave:Destroy() | |
| 1074 | end)() | |
| 1075 | end | |
| 1076 | ---------------------------------------------------- | |
| 1077 | GroundWave = function() | |
| 1078 | if Transforming == true then | |
| 1079 | local wave = Instance.new("Part", torso)
| |
| 1080 | wave.BrickColor = BrickColor.new("Carnation pink")
| |
| 1081 | wave.Anchored = true | |
| 1082 | wave.CanCollide = false | |
| 1083 | wave.Locked = true | |
| 1084 | wave.Size = Vector3.new(1, 1, 1) | |
| 1085 | wave.TopSurface = "Smooth" | |
| 1086 | wave.BottomSurface = "Smooth" | |
| 1087 | wave.Transparency = 0.35 | |
| 1088 | wave.CFrame = fx.CFrame | |
| 1089 | wm = Instance.new("SpecialMesh", wave)
| |
| 1090 | wm.MeshType = "Sphere" | |
| 1091 | wm.Scale = Vector3.new(1,1,1) | |
| 1092 | coroutine.wrap(function() | |
| 1093 | for i = 1, 18, 1 do | |
| 1094 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
| 1095 | --wave.Size = wm.Scale | |
| 1096 | wave.CFrame = fx.CFrame | |
| 1097 | wave.Transparency = i/14 | |
| 1098 | wait() | |
| 1099 | end | |
| 1100 | wait() | |
| 1101 | wave:Destroy() | |
| 1102 | end)() | |
| 1103 | elseif Transforming == false then | |
| 1104 | wait() | |
| 1105 | end | |
| 1106 | end | |
| 1107 | ||
| 1108 | for i = 1, 100 do rs:wait() | |
| 1109 | fx.CFrame = torso.CFrame | |
| 1110 | end | |
| 1111 | ||
| 1112 | Spawn(function() | |
| 1113 | while wait(1) do | |
| 1114 | GroundWave() | |
| 1115 | end | |
| 1116 | end) | |
| 1117 | ||
| 1118 | wait(4) | |
| 1119 | ||
| 1120 | Transforming = false | |
| 1121 | ||
| 1122 | for i = 1, 20 do rs:wait() | |
| 1123 | fx.Transparency = fx.Transparency + (1/20) | |
| 1124 | fx.CFrame = torso.CFrame | |
| 1125 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
| 1126 | rs:wait() | |
| 1127 | end | |
| 1128 | ||
| 1129 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1130 | local wave = Instance.new("Part", torso)
| |
| 1131 | wave.BrickColor = BrickColor.new("Institutional white")
| |
| 1132 | wave.Anchored = true | |
| 1133 | wave.CanCollide = false | |
| 1134 | wave.Locked = true | |
| 1135 | wave.Size = Vector3.new(1, 1, 1) | |
| 1136 | wave.TopSurface = "Smooth" | |
| 1137 | wave.BottomSurface = "Smooth" | |
| 1138 | wave.Transparency = 0.35 | |
| 1139 | wave.CFrame = HandCF | |
| 1140 | wm = Instance.new("SpecialMesh", wave)
| |
| 1141 | wm.MeshId = "rbxassetid://24388358" | |
| 1142 | coroutine.wrap(function() | |
| 1143 | for i = 1, 14, 1 do | |
| 1144 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
| 1145 | wave.Size = wm.Scale | |
| 1146 | wave.CFrame = HandCF | |
| 1147 | wave.Transparency = i/14 | |
| 1148 | wait() | |
| 1149 | end | |
| 1150 | wait() | |
| 1151 | wave:Destroy() | |
| 1152 | end)() | |
| 1153 | hum.WalkSpeed = 16 | |
| 1154 | ---------------------------------------------------- | |
| 1155 | Blast = function() | |
| 1156 | local Colors = {"Carnation pink", "Crimson"}
| |
| 1157 | local wave = Instance.new("Part", torso)
| |
| 1158 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 1159 | wave.Anchored = true | |
| 1160 | wave.CanCollide = false | |
| 1161 | wave.Locked = true | |
| 1162 | wave.Size = Vector3.new(1, 1, 1) | |
| 1163 | wave.TopSurface = "Smooth" | |
| 1164 | wave.BottomSurface = "Smooth" | |
| 1165 | wave.Transparency = 0.35 | |
| 1166 | wave.CFrame = rarm.CFrame | |
| 1167 | wm = Instance.new("SpecialMesh", wave)
| |
| 1168 | wm.MeshType = "Sphere" | |
| 1169 | wm.Scale = Vector3.new(1,1,1) | |
| 1170 | z = Instance.new("Sound",wave)
| |
| 1171 | z.SoundId = "rbxassetid://237035051" | |
| 1172 | z.Volume = 1 | |
| 1173 | z.Pitch = .9 | |
| 1174 | z:Play() | |
| 1175 | coroutine.wrap(function() | |
| 1176 | for i = 1, 30, 1 do | |
| 1177 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
| 1178 | --wave.Size = wm.Scale | |
| 1179 | wave.CFrame = rarm.CFrame | |
| 1180 | wave.Transparency = (1/14) | |
| 1181 | rs:wait() | |
| 1182 | end | |
| 1183 | rs:wait() | |
| 1184 | wave:Destroy() | |
| 1185 | z:Destroy() | |
| 1186 | end)() | |
| 1187 | end | |
| 1188 | ||
| 1189 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 1190 | local a= Part(1,1,1,col1,.5,false,true,game:GetService("Workspace"))
| |
| 1191 | local a2= Part(1,1,1,col2,.5,false,true,game:GetService("Workspace"))
| |
| 1192 | local a3= Part(1,1,1,col2,.5,false,true,game:GetService("Workspace"))
| |
| 1193 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 1194 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 1195 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 1196 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 1197 | a.CFrame=cfr | |
| 1198 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1199 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1200 | for i,v in pairs(game:GetService("Workspace"):children()) do
| |
| 1201 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 1202 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 1203 | if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= char.Name then
| |
| 1204 | local hit=v | |
| 1205 | hit.Humanoid.Health=v.Humanoid.Health-dmg | |
| 1206 | hit.Humanoid.PlatformStand=true | |
| 1207 | hit.Torso.Velocity=Vector3.new(math.random(-100,100),100,math.random(- 100,-100)) | |
| 1208 | wait(.1) | |
| 1209 | Spawn(function()wait(2)hit.Humanoid.PlatformStand=false end) | |
| 1210 | end | |
| 1211 | end | |
| 1212 | end | |
| 1213 | end | |
| 1214 | Spawn(function() | |
| 1215 | while wait() do | |
| 1216 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 1217 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 1218 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 1219 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 1220 | a.Transparency=a.Transparency+0.05 | |
| 1221 | a2.Transparency=a2.Transparency+0.05 | |
| 1222 | a3.Transparency=a3.Transparency+0.05 | |
| 1223 | end | |
| 1224 | end) | |
| 1225 | end | |
| 1226 | ||
| 1227 | ---------------------------------------------------- | |
| 1228 | rarm.Touched:connect(function(ht) | |
| 1229 | hit = ht.Parent | |
| 1230 | if ht and hit:IsA("Model") then
| |
| 1231 | if hit:FindFirstChild("Humanoid") then
| |
| 1232 | if hit.Name ~= p.Name then | |
| 1233 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1234 | Debounces.RPunched = true | |
| 1235 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1236 | if Debounces.ks==true then | |
| 1237 | z = Instance.new("Sound",hed)
| |
| 1238 | z.SoundId = "rbxassetid://169380525" | |
| 1239 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1240 | z.Volume = 1 | |
| 1241 | z:Play() | |
| 1242 | end | |
| 1243 | wait(.2) | |
| 1244 | Debounces.RPunched = false | |
| 1245 | end | |
| 1246 | end | |
| 1247 | end | |
| 1248 | elseif ht and hit:IsA("Hat") then
| |
| 1249 | if hit.Parent.Name ~= p.Name then | |
| 1250 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1251 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1252 | Debounces.RPunched = true | |
| 1253 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1254 | if Debounces.ks==true then | |
| 1255 | z = Instance.new("Sound",hed)
| |
| 1256 | z.SoundId = "rbxassetid://169380525" | |
| 1257 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1258 | z.Volume = 1 | |
| 1259 | z:Play() | |
| 1260 | end | |
| 1261 | wait(.2) | |
| 1262 | Debounces.RPunched = false | |
| 1263 | end | |
| 1264 | end | |
| 1265 | end | |
| 1266 | end | |
| 1267 | end) | |
| 1268 | larm.Touched:connect(function(ht) | |
| 1269 | hit = ht.Parent | |
| 1270 | if ht and hit:IsA("Model") then
| |
| 1271 | if hit:FindFirstChild("Humanoid") then
| |
| 1272 | if hit.Name ~= p.Name then | |
| 1273 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1274 | Debounces.LPunched = true | |
| 1275 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1276 | if Debounces.ks2==true then | |
| 1277 | z = Instance.new("Sound",hed)
| |
| 1278 | z.SoundId = "rbxassetid://169380525" | |
| 1279 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1280 | z.Volume = 1 | |
| 1281 | z:Play() | |
| 1282 | end | |
| 1283 | wait(.2) | |
| 1284 | Debounces.LPunched = false | |
| 1285 | end | |
| 1286 | end | |
| 1287 | end | |
| 1288 | elseif ht and hit:IsA("Hat") then
| |
| 1289 | if hit.Parent.Name ~= p.Name then | |
| 1290 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1291 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1292 | Debounces.LPunched = true | |
| 1293 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1294 | if Debounces.ks2==true then | |
| 1295 | z = Instance.new("Sound",hed)
| |
| 1296 | z.SoundId = "rbxassetid://169380525" | |
| 1297 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1298 | z.Volume = 1 | |
| 1299 | z:Play() | |
| 1300 | end | |
| 1301 | wait(.2) | |
| 1302 | Debounces.LPunched = false | |
| 1303 | end | |
| 1304 | end | |
| 1305 | end | |
| 1306 | end | |
| 1307 | end) | |
| 1308 | ---------------------------------------------------- | |
| 1309 | ||
| 1310 | mod4 = Instance.new("Model",char)
| |
| 1311 | ||
| 1312 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 1313 | ||
| 1314 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1315 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1316 | local List = {}
| |
| 1317 | for i,v in pairs(workspace:GetChildren())do | |
| 1318 | if v:IsA("Model")then
| |
| 1319 | if v:findFirstChild("Torso")then
| |
| 1320 | if v ~= char then | |
| 1321 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1322 | table.insert(List,v) | |
| 1323 | end | |
| 1324 | end | |
| 1325 | end | |
| 1326 | end | |
| 1327 | end | |
| 1328 | return List | |
| 1329 | end | |
| 1330 | ||
| 1331 | function Punch() | |
| 1332 | part=Instance.new('Part',mod4)
| |
| 1333 | part.Anchored=true | |
| 1334 | part.CanCollide=false | |
| 1335 | part.FormFactor='Custom' | |
| 1336 | part.Size=Vector3.new(.2,.2,.2) | |
| 1337 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
| 1338 | part.Transparency=.7 | |
| 1339 | part.BrickColor=BrickColor.new('Carnation pink')
| |
| 1340 | mesh=Instance.new('SpecialMesh',part)
| |
| 1341 | mesh.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 1342 | mesh.Scale=Vector3.new(3,3,3) | |
| 1343 | part2=Instance.new('Part',mod4)
| |
| 1344 | part2.Anchored=true | |
| 1345 | part2.CanCollide=false | |
| 1346 | part2.FormFactor='Custom' | |
| 1347 | part2.Size=Vector3.new(.2,.2,.2) | |
| 1348 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
| 1349 | part2.Transparency=.7 | |
| 1350 | part2.BrickColor=BrickColor.new('Carnation pink')
| |
| 1351 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 1352 | mesh2.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 1353 | mesh2.Scale=Vector3.new(3,1.5,3) | |
| 1354 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 1355 | if v:FindFirstChild('Humanoid') then
| |
| 1356 | v.Humanoid:TakeDamage(math.random(2,6)) | |
| 1357 | end | |
| 1358 | end | |
| 1359 | coroutine.resume(coroutine.create(function() | |
| 1360 | for i=0,0.62,0.4 do | |
| 1361 | wait() | |
| 1362 | part.CFrame=part.CFrame | |
| 1363 | part.Transparency=i | |
| 1364 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 1365 | part2.CFrame=part2.CFrame | |
| 1366 | part2.Transparency=i | |
| 1367 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 1368 | end | |
| 1369 | part.Parent=nil | |
| 1370 | part2.Parent=nil | |
| 1371 | end)) | |
| 1372 | end | |
| 1373 | ---------------------------------------------------- | |
| 1374 | rarm.Touched:connect(function(ht) | |
| 1375 | hit = ht.Parent | |
| 1376 | if ht and hit:IsA("Model") then
| |
| 1377 | if hit:FindFirstChild("Humanoid") then
| |
| 1378 | if hit.Name ~= p.Name then | |
| 1379 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1380 | Debounces.RPunched = true | |
| 1381 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1382 | if Debounces.ks==true then | |
| 1383 | z = Instance.new("Sound",hed)
| |
| 1384 | z.SoundId = "rbxassetid://169380525" | |
| 1385 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1386 | z.Volume = 1 | |
| 1387 | z:Play() | |
| 1388 | end | |
| 1389 | wait(.2) | |
| 1390 | Debounces.RPunched = false | |
| 1391 | end | |
| 1392 | end | |
| 1393 | end | |
| 1394 | elseif ht and hit:IsA("Hat") then
| |
| 1395 | if hit.Parent.Name ~= p.Name then | |
| 1396 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1397 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1398 | Debounces.RPunched = true | |
| 1399 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1400 | if Debounces.ks==true then | |
| 1401 | z = Instance.new("Sound",hed)
| |
| 1402 | z.SoundId = "rbxassetid://169380525" | |
| 1403 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1404 | z.Volume = 1 | |
| 1405 | z:Play() | |
| 1406 | end | |
| 1407 | wait(.2) | |
| 1408 | Debounces.RPunched = false | |
| 1409 | end | |
| 1410 | end | |
| 1411 | end | |
| 1412 | end | |
| 1413 | end) | |
| 1414 | larm.Touched:connect(function(ht) | |
| 1415 | hit = ht.Parent | |
| 1416 | if ht and hit:IsA("Model") then
| |
| 1417 | if hit:FindFirstChild("Humanoid") then
| |
| 1418 | if hit.Name ~= p.Name then | |
| 1419 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1420 | Debounces.LPunched = true | |
| 1421 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1422 | if Debounces.ks2==true then | |
| 1423 | z = Instance.new("Sound",hed)
| |
| 1424 | z.SoundId = "rbxassetid://169380525" | |
| 1425 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1426 | z.Volume = 1 | |
| 1427 | z:Play() | |
| 1428 | end | |
| 1429 | wait(.2) | |
| 1430 | Debounces.LPunched = false | |
| 1431 | end | |
| 1432 | end | |
| 1433 | end | |
| 1434 | elseif ht and hit:IsA("Hat") then
| |
| 1435 | if hit.Parent.Name ~= p.Name then | |
| 1436 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1437 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1438 | Debounces.LPunched = true | |
| 1439 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1440 | if Debounces.ks2==true then | |
| 1441 | z = Instance.new("Sound",hed)
| |
| 1442 | z.SoundId = "rbxassetid://169380525" | |
| 1443 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1444 | z.Volume = 1 | |
| 1445 | z:Play() | |
| 1446 | end | |
| 1447 | wait(.2) | |
| 1448 | Debounces.LPunched = false | |
| 1449 | end | |
| 1450 | end | |
| 1451 | end | |
| 1452 | end | |
| 1453 | end) | |
| 1454 | ---------------------------------------------------- | |
| 1455 | local player = game.Players.LocalPlayer | |
| 1456 | local pchar = player.Character | |
| 1457 | local mouse = player:GetMouse() | |
| 1458 | local cam = workspace.CurrentCamera | |
| 1459 | ||
| 1460 | local rad = math.rad | |
| 1461 | ||
| 1462 | local keysDown = {}
| |
| 1463 | local flySpeed = 0 | |
| 1464 | local MAX_FLY_SPEED = 150 | |
| 1465 | ||
| 1466 | local canFly = false | |
| 1467 | local flyToggled = false | |
| 1468 | ||
| 1469 | local forward, side = 0, 0 | |
| 1470 | local lastForward, lastSide = 0, 0 | |
| 1471 | ||
| 1472 | local floatBP = Instance.new("BodyPosition")
| |
| 1473 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 1474 | local flyBV = Instance.new("BodyVelocity")
| |
| 1475 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 1476 | local turnBG = Instance.new("BodyGyro")
| |
| 1477 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1478 | ||
| 1479 | mouse.KeyDown:connect(function(key) | |
| 1480 | keysDown[key] = true | |
| 1481 | ||
| 1482 | if key == "f" then | |
| 1483 | flyToggled = not flyToggled | |
| 1484 | ||
| 1485 | if not flyToggled then | |
| 1486 | stanceToggle = "Normal" | |
| 1487 | floatBP.Parent = nil | |
| 1488 | flyBV.Parent = nil | |
| 1489 | turnBG.Parent = nil | |
| 1490 | root.Velocity = Vector3.new() | |
| 1491 | pchar.Humanoid.PlatformStand = false | |
| 1492 | end | |
| 1493 | end | |
| 1494 | ||
| 1495 | end) | |
| 1496 | mouse.KeyUp:connect(function(key) | |
| 1497 | keysDown[key] = nil | |
| 1498 | end) | |
| 1499 | ||
| 1500 | local function updateFly() | |
| 1501 | ||
| 1502 | if not flyToggled then return end | |
| 1503 | ||
| 1504 | lastForward = forward | |
| 1505 | lastSide = side | |
| 1506 | ||
| 1507 | forward = 0 | |
| 1508 | side = 0 | |
| 1509 | ||
| 1510 | if keysDown.w then | |
| 1511 | forward = forward + 1 | |
| 1512 | end | |
| 1513 | if keysDown.s then | |
| 1514 | forward = forward - 1 | |
| 1515 | end | |
| 1516 | if keysDown.a then | |
| 1517 | side = side - 1 | |
| 1518 | end | |
| 1519 | if keysDown.d then | |
| 1520 | side = side + 1 | |
| 1521 | end | |
| 1522 | ||
| 1523 | canFly = (forward ~= 0 or side ~= 0) | |
| 1524 | ||
| 1525 | if canFly then | |
| 1526 | stanceToggle = "Floating" | |
| 1527 | turnBG.Parent = root | |
| 1528 | floatBP.Parent = nil | |
| 1529 | flyBV.Parent = root | |
| 1530 | ||
| 1531 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 1532 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 1533 | else | |
| 1534 | floatBP.position = root.Position | |
| 1535 | floatBP.Parent = root | |
| 1536 | ||
| 1537 | flySpeed = flySpeed - 1 | |
| 1538 | if flySpeed < 0 then flySpeed = 0 end | |
| 1539 | end | |
| 1540 | ||
| 1541 | local camCF = cam.CoordinateFrame | |
| 1542 | local in_forward = canFly and forward or lastForward | |
| 1543 | local in_side = canFly and side or lastSide | |
| 1544 | ||
| 1545 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 1546 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 1547 | ||
| 1548 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 1549 | 0) | |
| 1550 | end | |
| 1551 | ||
| 1552 | game:service'RunService'.RenderStepped:connect(function() | |
| 1553 | if flyToggled then | |
| 1554 | pchar.Humanoid.PlatformStand = true | |
| 1555 | end | |
| 1556 | updateFly() | |
| 1557 | end) | |
| 1558 | ------------------------------- | |
| 1559 | ---------------------------------------------------- | |
| 1560 | pt = {0.7, 0.8, 0.9}
| |
| 1561 | mouse.KeyDown:connect(function(key) | |
| 1562 | if key == "h" then | |
| 1563 | if Debounces.CanJoke == true then | |
| 1564 | Debounces.CanJoke = false | |
| 1565 | u = Instance.new("Sound")
| |
| 1566 | u.SoundId = "http://www.roblox.com/asset/?id=430315987" | |
| 1567 | u.Parent = char | |
| 1568 | u.Looped = false | |
| 1569 | u.Pitch = 1 | |
| 1570 | u.Volume = 1 | |
| 1571 | u2 = Instance.new("Sound")
| |
| 1572 | u2.SoundId = "http://www.roblox.com/asset/?id=430315987" | |
| 1573 | u2.Parent = char | |
| 1574 | u2.Looped = false | |
| 1575 | u2.Pitch = 1 | |
| 1576 | u2.Volume = 1 | |
| 1577 | wait(.01) | |
| 1578 | u:Play() | |
| 1579 | u2:Play() | |
| 1580 | wait(6) | |
| 1581 | u:Destroy() | |
| 1582 | u2:Destroy() | |
| 1583 | if Debounces.CanJoke == false then | |
| 1584 | Debounces.CanJoke = true | |
| 1585 | end | |
| 1586 | end | |
| 1587 | end | |
| 1588 | end) | |
| 1589 | ---------------------------------------------------- | |
| 1590 | ---------------------------------------------------- | |
| 1591 | mouse.KeyDown:connect(function(key) | |
| 1592 | if key == "j" then | |
| 1593 | if Debounces.CanJoke == true then | |
| 1594 | Debounces.CanJoke = false | |
| 1595 | u = Instance.new("Sound")
| |
| 1596 | u.SoundId = "http://www.roblox.com/asset/?id=154733167" | |
| 1597 | u.Parent = hed | |
| 1598 | u.Looped = false | |
| 1599 | u.Pitch = 1 | |
| 1600 | u.Volume = 1 | |
| 1601 | wait(.01) | |
| 1602 | u:Play() | |
| 1603 | wait(10) | |
| 1604 | u:Destroy() | |
| 1605 | if Debounces.CanJoke == false then | |
| 1606 | Debounces.CanJoke = true | |
| 1607 | end | |
| 1608 | end | |
| 1609 | end | |
| 1610 | end) | |
| 1611 | ---------------------------------------------------- | |
| 1612 | ||
| 1613 | ---------------------------------------------------- | |
| 1614 | mouse.KeyDown:connect(function(key) | |
| 1615 | if key == "g" then | |
| 1616 | hum.WalkSpeed = 0 | |
| 1617 | if Debounces.CanAttack == true then | |
| 1618 | Debounces.CanAttack = false | |
| 1619 | Debounces.on = true | |
| 1620 | Debounces.NoIdl = true | |
| 1621 | wait(.1) | |
| 1622 | so("http://www.roblox.com/asset/?id=169445572",hed,1.5,1.5)
| |
| 1623 | so("http://www.roblox.com/asset/?id=169380495",hed,1.5,1.5)
| |
| 1624 | for i = 1, 20 do | |
| 1625 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
| 1626 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
| 1627 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
| 1628 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
| 1629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
| 1630 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
| 1631 | if Debounces.on == false then break end | |
| 1632 | wait() | |
| 1633 | end | |
| 1634 | wait(0.5) | |
| 1635 | local rng = Instance.new("Part", char)
| |
| 1636 | rng.Anchored = true | |
| 1637 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 1638 | rng.CanCollide = false | |
| 1639 | rng.FormFactor = 3 | |
| 1640 | rng.Name = "Ring" | |
| 1641 | rng.Size = Vector3.new(1, 1, 1) | |
| 1642 | rng.Transparency = 0.5 | |
| 1643 | rng.TopSurface = 0 | |
| 1644 | rng.BottomSurface = 0 | |
| 1645 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
| 1646 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1647 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1648 | rngm.MeshId = "http://www.roblox.com/asset/?id=156292355" | |
| 1649 | rngm.Scale = Vector3.new(1, 1, 2) | |
| 1650 | x = Instance.new("Sound",torso)
| |
| 1651 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
| 1652 | x.Looped = false | |
| 1653 | x.Pitch = .7 | |
| 1654 | x.Volume = 2 | |
| 1655 | x:Play() | |
| 1656 | partic2.Enabled = true | |
| 1657 | coroutine.wrap(function() | |
| 1658 | for i = 1, 60, 8 do | |
| 1659 | rngm.Scale = Vector3.new(1.2 + i*1.1, 1.2 + i*1.1, 1) | |
| 1660 | rng.Transparency = i/60 | |
| 1661 | wait() | |
| 1662 | end | |
| 1663 | wait() | |
| 1664 | rng:Destroy() | |
| 1665 | end)() | |
| 1666 | hum.WalkSpeed = 50 | |
| 1667 | BV = Instance.new("BodyVelocity", torso)
| |
| 1668 | BV.maxForce = Vector3.new(0,200000,0) | |
| 1669 | BV.P = 100000 | |
| 1670 | BV.velocity = Vector3.new(0,150,0) | |
| 1671 | for i = 1, 20 do | |
| 1672 | 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) | |
| 1673 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
| 1674 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
| 1675 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
| 1676 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
| 1677 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
| 1678 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 200, 0), 0.3) | |
| 1679 | if Debounces.on == false then break end | |
| 1680 | wait() | |
| 1681 | end | |
| 1682 | x:Destroy() | |
| 1683 | BV:Destroy() | |
| 1684 | ||
| 1685 | coroutine.resume(coroutine.create(function() | |
| 1686 | for i = 1, 2880, 48 do | |
| 1687 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(i), math.rad(0), math.rad(0)) | |
| 1688 | rs:wait(4) | |
| 1689 | end | |
| 1690 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 1691 | end)) | |
| 1692 | ||
| 1693 | for i = 1, 30 do | |
| 1694 | 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) | |
| 1695 | 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) | |
| 1696 | 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) | |
| 1697 | 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) | |
| 1698 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
| 1699 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
| 1700 | if Debounces.on == false then break end | |
| 1701 | wait() | |
| 1702 | end | |
| 1703 | ||
| 1704 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
| 1705 | for i = 1, 30 do | |
| 1706 | 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) | |
| 1707 | 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) | |
| 1708 | 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) | |
| 1709 | 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) | |
| 1710 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -0.6) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
| 1711 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.4) * CFrame.Angles(math.rad(-20), 0, 0), 0.3) | |
| 1712 | if Debounces.on == false then break end | |
| 1713 | wait() | |
| 1714 | end | |
| 1715 | end | |
| 1716 | local ry,ht,ps=nil,nil,nil | |
| 1717 | while ht==nil do | |
| 1718 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
| |
| 1719 | wait() | |
| 1720 | end | |
| 1721 | Landing() | |
| 1722 | z = Instance.new("Sound",torso)
| |
| 1723 | z.SoundId = "rbxassetid://142070127" | |
| 1724 | z.Volume = 2 | |
| 1725 | wait(.1) | |
| 1726 | z:Play() | |
| 1727 | partic2.Enabled = false | |
| 1728 | hum.WalkSpeed = 0 | |
| 1729 | for i = 1, 25 do | |
| 1730 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.3) *CFrame.Angles (math.rad(120),math.rad(10),math.rad(32)), 0.2) | |
| 1731 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-20)), 0.2) | |
| 1732 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (-8),math.rad(-40), math.rad(-8)),0.2) | |
| 1733 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-50), math.rad(40), math.rad(0)), 0.2) | |
| 1734 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, 0, -.6) * CFrame.Angles(math.rad(30), 0, math.rad(20)), 0.2) | |
| 1735 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(0)), 0.2) | |
| 1736 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 229.5, 0), 0.3) | |
| 1737 | if Debounces.on == false then break end | |
| 1738 | wait() | |
| 1739 | end | |
| 1740 | wait(0.2) | |
| 1741 | Debounces.on = false | |
| 1742 | Debounces.NoIdl = false | |
| 1743 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
| 1744 | ||
| 1745 | if Debounces.CanAttack == false then | |
| 1746 | Debounces.CanAttack = true | |
| 1747 | hum.WalkSpeed = 14 | |
| 1748 | end | |
| 1749 | end | |
| 1750 | end | |
| 1751 | end) | |
| 1752 | ---------------------------------------------------- | |
| 1753 | ---------------------------------------------------- | |
| 1754 | ------------------------------- | |
| 1755 | mouse.KeyDown:connect(function(key) | |
| 1756 | if key == "q" then | |
| 1757 | if Debounces.CanAttack == true then | |
| 1758 | Debounces.CanAttack = false | |
| 1759 | Debounces.NoIdl = true | |
| 1760 | Debounces.on = true | |
| 1761 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1762 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1763 | local List = {}
| |
| 1764 | for i,v in pairs(workspace:GetChildren())do | |
| 1765 | if v:IsA("Model")then
| |
| 1766 | if v:findFirstChild("Torso")then
| |
| 1767 | if v ~= char then | |
| 1768 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1769 | table.insert(List,v) | |
| 1770 | end | |
| 1771 | end | |
| 1772 | end | |
| 1773 | end | |
| 1774 | end | |
| 1775 | return List | |
| 1776 | end | |
| 1777 | z = Instance.new("Sound",hed)
| |
| 1778 | z.SoundId = "rbxassetid://232213955" | |
| 1779 | z.Pitch = 1 | |
| 1780 | z.Volume = 1 | |
| 1781 | wait(0.2) | |
| 1782 | z:Play() | |
| 1783 | sp = Instance.new("Part",rarm)
| |
| 1784 | sp.Anchored = true | |
| 1785 | sp.CanCollide = false | |
| 1786 | sp.Locked = true | |
| 1787 | sp.Transparency = 0 | |
| 1788 | sp.Material = "Neon" | |
| 1789 | sp.Size = Vector3.new(1,1,1) | |
| 1790 | sp.TopSurface = "SmoothNoOutlines" | |
| 1791 | sp.BottomSurface = "SmoothNoOutlines" | |
| 1792 | sp.BrickColor = BrickColor.new("Crimson")
| |
| 1793 | spm = Instance.new("SpecialMesh",sp)
| |
| 1794 | spm.MeshType = "Sphere" | |
| 1795 | spm.Scale = Vector3.new(21,21,21) | |
| 1796 | sp2 = Instance.new("Part", rarm)
| |
| 1797 | sp2.Name = "Energy" | |
| 1798 | sp2.BrickColor = BrickColor.new("Crimson")
| |
| 1799 | sp2.Size = Vector3.new(1, 1, 1) | |
| 1800 | sp2.Shape = "Ball" | |
| 1801 | sp2.CanCollide = false | |
| 1802 | sp2.Anchored = true | |
| 1803 | sp2.Locked = true | |
| 1804 | sp2.TopSurface = 0 | |
| 1805 | sp2.BottomSurface = 0 | |
| 1806 | sp2.Transparency = 1 | |
| 1807 | spm2 = Instance.new("SpecialMesh",sp2)
| |
| 1808 | spm2.MeshId = "rbxassetid://9982590" | |
| 1809 | spm2.Scale = Vector3.new(2,2,2) | |
| 1810 | for i = 1, 20 do | |
| 1811 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 1812 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1813 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
| 1814 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
| 1815 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 1816 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1817 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1818 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1819 | if Debounces.on == false then break end | |
| 1820 | rs:wait() | |
| 1821 | end | |
| 1822 | for i = 1, 100, 20 do rs:wait() | |
| 1823 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1824 | end | |
| 1825 | for i = 1, 20 do | |
| 1826 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1827 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 1828 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
| 1829 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
| 1830 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
| 1831 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1832 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1833 | if Debounces.on == false then break end | |
| 1834 | rs:wait() | |
| 1835 | end | |
| 1836 | sp.Transparency = 1 | |
| 1837 | for i = 1, 20 do | |
| 1838 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 1839 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
| 1840 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
| 1841 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
| 1842 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1843 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1844 | if Debounces.on == false then break end | |
| 1845 | rs:wait() | |
| 1846 | end | |
| 1847 | wait(1) | |
| 1848 | sp.Transparency = 0 | |
| 1849 | sp2.Transparency = 0.84 | |
| 1850 | for i = 1, 20 do | |
| 1851 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 1852 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1853 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 1854 | 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) | |
| 1855 | 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) | |
| 1856 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 1857 | 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) | |
| 1858 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 1859 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 1860 | if Debounces.on == false then break end | |
| 1861 | rs:wait() | |
| 1862 | end | |
| 1863 | for i = 1, 2880, 50 do | |
| 1864 | rs:wait() | |
| 1865 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1866 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 1867 | rs:wait() | |
| 1868 | end | |
| 1869 | sp:Destroy() | |
| 1870 | sp2:Destroy() | |
| 1871 | local X = Instance.new("Part",char)
| |
| 1872 | local O = Instance.new("ObjectValue",X)
| |
| 1873 | O.Name = "creator" | |
| 1874 | X.Locked = true | |
| 1875 | X.Name = "Shell" | |
| 1876 | X.Anchored = false | |
| 1877 | X.CanCollide = false | |
| 1878 | X.Transparency = 0 | |
| 1879 | X.Reflectance = 0 | |
| 1880 | X.BottomSurface = 0 | |
| 1881 | X.TopSurface = 0 | |
| 1882 | X.Shape = 0 | |
| 1883 | local V = Instance.new("ObjectValue",X)
| |
| 1884 | V.Value = char | |
| 1885 | V.Name = "creator" | |
| 1886 | X.BrickColor = BrickColor.new("Crimson")
| |
| 1887 | X.Size = Vector3.new(2,2,2) | |
| 1888 | X.Material = "Neon" | |
| 1889 | local Z = Instance.new("SpecialMesh",X)
| |
| 1890 | Z.MeshType = "Sphere" | |
| 1891 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 1892 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
| 1893 | local bv = Instance.new("BodyVelocity",X)
| |
| 1894 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 1895 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
| 1896 | bv.velocity = X.CFrame.lookVector*65 | |
| 1897 | ||
| 1898 | Explode = X.Touched:connect(function(hit) | |
| 1899 | if hit ~= char and hit.Name ~= "Shell" then | |
| 1900 | local cf = X.CFrame | |
| 1901 | bv:Destroy() | |
| 1902 | X.Anchored = true | |
| 1903 | Z:Remove() | |
| 1904 | Explode:disconnect() | |
| 1905 | X.Size = Vector3.new(3,3,3) | |
| 1906 | X.Touched:connect(function(hit) end) | |
| 1907 | X.CanCollide = false | |
| 1908 | local part3 = Instance.new("Part", rarm)
| |
| 1909 | part3.Anchored=true | |
| 1910 | part3.CanCollide=false | |
| 1911 | part3.Locked = true | |
| 1912 | part3.TopSurface = "SmoothNoOutlines" | |
| 1913 | part3.BottomSurface = "SmoothNoOutlines" | |
| 1914 | part3.FormFactor='Custom' | |
| 1915 | part3.Size=Vector3.new(1,1, 1) | |
| 1916 | part3.CFrame=X.CFrame | |
| 1917 | part3.Transparency=0 | |
| 1918 | part3.BrickColor=BrickColor.new("Crimson")
| |
| 1919 | local mesh3 = Instance.new("SpecialMesh",part3)
| |
| 1920 | mesh3.MeshType = "Sphere" | |
| 1921 | mesh3.Scale = Vector3.new(1,1,1) | |
| 1922 | --debris:AddItem(X,8) | |
| 1923 | local part4 = Instance.new("Part", rarm)
| |
| 1924 | part4.Material = "Neon" | |
| 1925 | part4.Anchored=true | |
| 1926 | part4.CanCollide=false | |
| 1927 | part4.Locked = true | |
| 1928 | part4.TopSurface = "SmoothNoOutlines" | |
| 1929 | part4.BottomSurface = "SmoothNoOutlines" | |
| 1930 | part4.FormFactor='Custom' | |
| 1931 | part4.Size=Vector3.new(1,1, 1) | |
| 1932 | part4.CFrame=X.CFrame | |
| 1933 | part4.Transparency=0 | |
| 1934 | part4.BrickColor=BrickColor.new("Hot pink")
| |
| 1935 | local mesh4 = Instance.new("SpecialMesh",part4)
| |
| 1936 | mesh4.MeshType = "Sphere" | |
| 1937 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
| 1938 | local part7 = Instance.new("Part", rarm)
| |
| 1939 | part7.Material = "Neon" | |
| 1940 | part7.Anchored=true | |
| 1941 | part7.CanCollide=false | |
| 1942 | part7.Locked = true | |
| 1943 | part7.TopSurface = "SmoothNoOutlines" | |
| 1944 | part7.BottomSurface = "SmoothNoOutlines" | |
| 1945 | part7.FormFactor='Custom' | |
| 1946 | part7.Size=Vector3.new(1,1, 1) | |
| 1947 | part7.CFrame=X.CFrame | |
| 1948 | part7.Transparency=0 | |
| 1949 | part7.BrickColor=BrickColor.new("Crimson")
| |
| 1950 | local mesh7 = Instance.new("SpecialMesh",part7)
| |
| 1951 | mesh7.MeshType = "Sphere" | |
| 1952 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
| 1953 | --[[X.Touched:connect(function(ht) | |
| 1954 | hit = ht.Parent | |
| 1955 | if ht and hit:IsA("Model") then
| |
| 1956 | if hit:FindFirstChild("Humanoid") then
| |
| 1957 | if hit.Name ~= p.Name then | |
| 1958 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1959 | wait(.3) | |
| 1960 | end | |
| 1961 | end | |
| 1962 | elseif ht and hit:IsA("Hat") then
| |
| 1963 | if hit.Parent.Name ~= p.Name then | |
| 1964 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1965 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1966 | wait(.3) | |
| 1967 | end | |
| 1968 | end | |
| 1969 | end | |
| 1970 | end) | |
| 1971 | part3.Touched:connect(function(ht) | |
| 1972 | hit = ht.Parent | |
| 1973 | if ht and hit:IsA("Model") then
| |
| 1974 | if hit:FindFirstChild("Humanoid") then
| |
| 1975 | if hit.Name ~= p.Name then | |
| 1976 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1977 | wait(.3) | |
| 1978 | end | |
| 1979 | end | |
| 1980 | elseif ht and hit:IsA("Hat") then
| |
| 1981 | if hit.Parent.Name ~= p.Name then | |
| 1982 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1983 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1984 | wait(.3) | |
| 1985 | end | |
| 1986 | end | |
| 1987 | end | |
| 1988 | end)]]-- | |
| 1989 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
| 1990 | if v:FindFirstChild('Humanoid') then
| |
| 1991 | v.Humanoid:TakeDamage(math.random(60,90)) | |
| 1992 | v.Humanoid.PlatformStand = true | |
| 1993 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 1994 | end | |
| 1995 | end | |
| 1996 | ||
| 1997 | local acos = math.acos | |
| 1998 | local sqrt = math.sqrt | |
| 1999 | local Vec3 = Vector3.new | |
| 2000 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 2001 | ||
| 2002 | local function toAxisAngle(CFr) | |
| 2003 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 2004 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 2005 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2006 | A = A == 0 and 0.00001 or A | |
| 2007 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2008 | B = B == 0 and 0.00001 or B | |
| 2009 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2010 | C = C == 0 and 0.00001 or C | |
| 2011 | local x = (R21-R12)/sqrt(A) | |
| 2012 | local y = (R02-R20)/sqrt(B) | |
| 2013 | local z = (R10-R01)/sqrt(C) | |
| 2014 | return Vec3(x,y,z),Angle | |
| 2015 | end | |
| 2016 | ||
| 2017 | function ApplyTrig(Num,Func) | |
| 2018 | local Min,Max = Func(0),Func(1) | |
| 2019 | local i = Func(Num) | |
| 2020 | return (i-Min)/(Max-Min) | |
| 2021 | end | |
| 2022 | ||
| 2023 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 2024 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 2025 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 2026 | end | |
| 2027 | ||
| 2028 | function Crater(Torso,Radius) | |
| 2029 | Spawn(function() | |
| 2030 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
| 2031 | local Ignore = {}
| |
| 2032 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 2033 | if v.Character ~= nil then | |
| 2034 | Ignore[#Ignore+1] = v.Character | |
| 2035 | end | |
| 2036 | end | |
| 2037 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 2038 | if Hit == nil then return end | |
| 2039 | local Parts = {}
| |
| 2040 | for i = 1,360,10 do | |
| 2041 | local P = Instance.new("Part",Torso.Parent)
| |
| 2042 | P.Anchored = true | |
| 2043 | P.FormFactor = "Custom" | |
| 2044 | P.BrickColor = Hit.BrickColor | |
| 2045 | P.Material = Hit.Material | |
| 2046 | P.TopSurface = "Smooth" | |
| 2047 | P.BottomSurface = "Smooth" | |
| 2048 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
| 2049 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 2050 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
| |
| 2051 | if math.random(0,5) == 0 then -- rubble | |
| 2052 | local P = Instance.new("Part",Torso.Parent)
| |
| 2053 | P.Anchored = true | |
| 2054 | P.FormFactor = "Custom" | |
| 2055 | P.BrickColor = Hit.BrickColor | |
| 2056 | P.Material = Hit.Material | |
| 2057 | P.TopSurface = "Smooth" | |
| 2058 | P.BottomSurface = "Smooth" | |
| 2059 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
| 2060 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 2061 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
| |
| 2062 | end | |
| 2063 | end | |
| 2064 | for i = 0,1,0.05 do | |
| 2065 | for i2,v in pairs(Parts) do | |
| 2066 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 2067 | end | |
| 2068 | wait(0.02) | |
| 2069 | end | |
| 2070 | for i,v in pairs(Parts) do | |
| 2071 | if v[1].Size.X > 2.1 then | |
| 2072 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 2073 | end | |
| 2074 | v[1].Anchored = false | |
| 2075 | end | |
| 2076 | for i = 0,1,0.05 do | |
| 2077 | for i2,v in pairs(Parts) do | |
| 2078 | v[1].Transparency = i | |
| 2079 | if i == 1 then | |
| 2080 | v[1]:Destroy() | |
| 2081 | elseif i >= 0.25 then | |
| 2082 | v[1].CanCollide = false | |
| 2083 | end | |
| 2084 | end | |
| 2085 | wait(0.02) | |
| 2086 | end | |
| 2087 | Parts = nil | |
| 2088 | end) | |
| 2089 | end | |
| 2090 | ||
| 2091 | ROW = function(out, trans, s, wt, t, ang, plus) | |
| 2092 | for i = 1, 360, 360/t do | |
| 2093 | local c = Instance.new("Part", game.Workspace)
| |
| 2094 | c.FormFactor = 3 | |
| 2095 | c.TopSurface = 0 | |
| 2096 | c.BottomSurface = 0 | |
| 2097 | c.Size = s | |
| 2098 | c.Anchored = true | |
| 2099 | c.CanCollide = wt | |
| 2100 | c.Material=workspace.Base.Material | |
| 2101 | c.Transparency = trans | |
| 2102 | c.BrickColor = workspace.Base.BrickColor | |
| 2103 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
| 2104 | c.Locked=true | |
| 2105 | game.Debris:AddItem(c,15) | |
| 2106 | end | |
| 2107 | end | |
| 2108 | ||
| 2109 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 2110 | local p = Instance.new('Part',parent or Weapon)
| |
| 2111 | p.formFactor = 'Custom' | |
| 2112 | p.Size = Vector3.new(x,y,z) | |
| 2113 | p.BrickColor = BrickColor.new(color) | |
| 2114 | p.CanCollide = cc | |
| 2115 | p.Transparency = tr | |
| 2116 | p.Anchored = an | |
| 2117 | p.TopSurface,p.BottomSurface = 0,0 | |
| 2118 | p.Locked=true | |
| 2119 | p:BreakJoints() | |
| 2120 | return p end | |
| 2121 | ||
| 2122 | Mesh = function(par,num,x,y,z) | |
| 2123 | local msh = _ | |
| 2124 | if num == 1 then msh = Instance.new("CylinderMesh",par)
| |
| 2125 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
| |
| 2126 | elseif num == 3 then msh = Instance.new("BlockMesh",par)
| |
| 2127 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
| |
| 2128 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
| |
| 2129 | end msh.Scale = Vector3.new(x,y,z) | |
| 2130 | return msh end | |
| 2131 | ||
| 2132 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 2133 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
| 2134 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
| 2135 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
| 2136 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 2137 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 2138 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 2139 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 2140 | a.CFrame=cfr | |
| 2141 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2142 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2143 | ||
| 2144 | Spawn(function() | |
| 2145 | while wait() do | |
| 2146 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 2147 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 2148 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 2149 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 2150 | a.Transparency=a.Transparency+0.05 | |
| 2151 | a2.Transparency=a2.Transparency+0.05 | |
| 2152 | a3.Transparency=a3.Transparency+0.05 | |
| 2153 | end | |
| 2154 | end) | |
| 2155 | end | |
| 2156 | ||
| 2157 | Crater(X,20) | |
| 2158 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
| 2159 | z = Instance.new("Sound",X)
| |
| 2160 | z.SoundId = "rbxassetid://231917744" | |
| 2161 | z.Pitch = .5 | |
| 2162 | z.Volume = 10 | |
| 2163 | z1 = Instance.new("Sound",X)
| |
| 2164 | z1.SoundId = "rbxassetid://231917744" | |
| 2165 | z1.Pitch = .5 | |
| 2166 | z1.Volume = 10 | |
| 2167 | z2 = Instance.new("Sound",X)
| |
| 2168 | z2.SoundId = "rbxassetid://231917744" | |
| 2169 | z2.Pitch = .5 | |
| 2170 | z2.Volume = 10 | |
| 2171 | z3 = Instance.new("Sound",X)
| |
| 2172 | z3.SoundId = "rbxassetid://245537790" | |
| 2173 | z3.Pitch = .7 | |
| 2174 | z3.Volume = 1 | |
| 2175 | z4 = Instance.new("Sound",X)
| |
| 2176 | z4.SoundId = "rbxassetid://245537790" | |
| 2177 | z4.Pitch = .7 | |
| 2178 | z4.Volume = 1 | |
| 2179 | wait(0.1) | |
| 2180 | z:Play() | |
| 2181 | z1:Play() | |
| 2182 | z2:Play() | |
| 2183 | z3:Play() | |
| 2184 | z4:Play() | |
| 2185 | ||
| 2186 | local part=Instance.new('Part',rarm)
| |
| 2187 | part.Anchored=true | |
| 2188 | part.CanCollide=false | |
| 2189 | part.Locked = true | |
| 2190 | part.FormFactor='Custom' | |
| 2191 | part.Size=Vector3.new(1,1,1) | |
| 2192 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
| 2193 | part.Transparency=0 | |
| 2194 | part.BrickColor=BrickColor.new('Crimson')
| |
| 2195 | local mesh=Instance.new('SpecialMesh',part)
| |
| 2196 | mesh.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 2197 | mesh.Scale=Vector3.new(2,2,2) | |
| 2198 | local part2=part:clone() | |
| 2199 | part2.Parent = rarm | |
| 2200 | part2.BrickColor=BrickColor.new("Crimson")
| |
| 2201 | local part5=part:clone() | |
| 2202 | part5.Parent = rarm | |
| 2203 | part5.BrickColor=BrickColor.new("Magenta")
| |
| 2204 | local part6=part:clone() | |
| 2205 | part6.Parent = rarm | |
| 2206 | part6.BrickColor=BrickColor.new("Black")
| |
| 2207 | local mesh2=mesh:clone() | |
| 2208 | mesh2.Parent=part2 | |
| 2209 | mesh2.Scale=Vector3.new(3, 3, 3) | |
| 2210 | local mesh5=mesh:clone() | |
| 2211 | mesh5.Parent=part5 | |
| 2212 | mesh5.Scale=Vector3.new(3, 3, 3) | |
| 2213 | local mesh6=mesh:clone() | |
| 2214 | mesh6.Parent=part6 | |
| 2215 | mesh6.Scale=Vector3.new(3, 3, 3) | |
| 2216 | local blast = Instance.new("Part", rarm)
| |
| 2217 | blast.BrickColor = BrickColor.new("Crimson")
| |
| 2218 | blast.Anchored = true | |
| 2219 | blast.CanCollide = false | |
| 2220 | blast.Locked = true | |
| 2221 | blast.Size = Vector3.new(1, 1, 1) | |
| 2222 | blast.TopSurface = "Smooth" | |
| 2223 | blast.BottomSurface = "Smooth" | |
| 2224 | blast.Transparency = 0 | |
| 2225 | blast.CFrame = HandCF | |
| 2226 | local bm = Instance.new("SpecialMesh", blast)
| |
| 2227 | bm.Scale = Vector3.new(5,1,5) | |
| 2228 | bm.MeshId = "rbxassetid://24388358" | |
| 2229 | local blast2 = Instance.new("Part", rarm)
| |
| 2230 | blast2.BrickColor = BrickColor.new("Crimson")
| |
| 2231 | blast2.Anchored = true | |
| 2232 | blast2.CanCollide = false | |
| 2233 | blast2.Locked = true | |
| 2234 | blast2.Size = Vector3.new(1, 1, 1) | |
| 2235 | blast2.TopSurface = "Smooth" | |
| 2236 | blast2.BottomSurface = "Smooth" | |
| 2237 | blast2.Transparency = 0 | |
| 2238 | blast2.CFrame = HandCF | |
| 2239 | local bm2 = Instance.new("SpecialMesh", blast2)
| |
| 2240 | bm2.Scale = Vector3.new(3,1,3) | |
| 2241 | bm2.MeshId = "rbxassetid://24388358" | |
| 2242 | local blast3 = Instance.new("Part", rarm)
| |
| 2243 | blast3.BrickColor = BrickColor.new("Crimson")
| |
| 2244 | blast3.Anchored = true | |
| 2245 | blast3.CanCollide = false | |
| 2246 | blast3.Locked = true | |
| 2247 | blast3.Size = Vector3.new(1, 1, 1) | |
| 2248 | blast3.TopSurface = "Smooth" | |
| 2249 | blast3.BottomSurface = "Smooth" | |
| 2250 | blast3.Transparency = 0 | |
| 2251 | blast3.CFrame = HandCF | |
| 2252 | local bm3 = Instance.new("SpecialMesh", blast3)
| |
| 2253 | bm3.Scale = Vector3.new(3,1,3) | |
| 2254 | bm3.MeshId = "rbxassetid://24388358" | |
| 2255 | for i = 1,120 do rs:wait() | |
| 2256 | X.Transparency = X.Transparency + (1/120) | |
| 2257 | part.Transparency = part.Transparency + (1/120) | |
| 2258 | part2.Transparency = part2.Transparency + (1/120) | |
| 2259 | part3.Transparency = part3.Transparency + (1/120) | |
| 2260 | part4.Transparency = part4.Transparency + (1/120) | |
| 2261 | part5.Transparency = part5.Transparency + (1/120) | |
| 2262 | part6.Transparency = part6.Transparency + (1/120) | |
| 2263 | part7.Transparency = part7.Transparency + (1/120) | |
| 2264 | blast.Transparency = blast.Transparency + (1/120) | |
| 2265 | blast2.Transparency = blast2.Transparency + (1/120) | |
| 2266 | blast3.Transparency = blast3.Transparency + (1/120) | |
| 2267 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
| 2268 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
| 2269 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
| 2270 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
| 2271 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
| 2272 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
| 2273 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
| 2274 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
| 2275 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
| 2276 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
| 2277 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
| 2278 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
| 2279 | X.CFrame = cf | |
| 2280 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
| 2281 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2282 | part3.CFrame=X.CFrame | |
| 2283 | part4.CFrame=X.CFrame | |
| 2284 | part7.CFrame=X.CFrame | |
| 2285 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
| 2286 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
| 2287 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 2288 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
| 2289 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
| 2290 | rs:wait() | |
| 2291 | end | |
| 2292 | X:Destroy() | |
| 2293 | part:Destroy() | |
| 2294 | part2:Destroy() | |
| 2295 | part3:Destroy() | |
| 2296 | part4:Destroy() | |
| 2297 | part5:Destroy() | |
| 2298 | part6:Destroy() | |
| 2299 | blast:Destroy() | |
| 2300 | blast2:Destroy() | |
| 2301 | blast3:Destroy() | |
| 2302 | z:Destroy() | |
| 2303 | z1:Destroy() | |
| 2304 | z2:Destroy() | |
| 2305 | z3:Destroy() | |
| 2306 | z4:Destroy() | |
| 2307 | end | |
| 2308 | end) | |
| 2309 | for i = 1, 20 do | |
| 2310 | 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) | |
| 2311 | 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) | |
| 2312 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2313 | 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) | |
| 2314 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 2315 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 2316 | if Debounces.on == false then break end | |
| 2317 | rs:wait() | |
| 2318 | end | |
| 2319 | if Debounces.CanAttack == false then | |
| 2320 | Debounces.CanAttack = true | |
| 2321 | Debounces.NoIdl = false | |
| 2322 | Debounces.on = false | |
| 2323 | end | |
| 2324 | end | |
| 2325 | end | |
| 2326 | end) | |
| 2327 | ---------------------------------------------------- | |
| 2328 | mouse.KeyDown:connect(function(key) | |
| 2329 | if key == "e" then | |
| 2330 | if Debounces.CanAttack == true then | |
| 2331 | Debounces.CanAttack = false | |
| 2332 | Debounces.on = true | |
| 2333 | Debounces.NoIdl = true | |
| 2334 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 2335 | z = Instance.new("Sound", rarm)
| |
| 2336 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 2337 | z.Volume = .6 | |
| 2338 | z.Pitch = pt[math.random(1,#pt)] | |
| 2339 | z.Looped = false | |
| 2340 | z:Play() | |
| 2341 | Debounces.RPunch = true | |
| 2342 | Debounces.LPunch = true | |
| 2343 | Debounces.ks = true | |
| 2344 | Debounces.ks2 = true | |
| 2345 | for i = 1, 3 do | |
| 2346 | 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) | |
| 2347 | 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) | |
| 2348 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2349 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2350 | 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) | |
| 2351 | 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) | |
| 2352 | if Debounces.on == false then break end | |
| 2353 | wait() | |
| 2354 | end | |
| 2355 | z2 = Instance.new("Sound", larm)
| |
| 2356 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2357 | z2.Volume = .6 | |
| 2358 | z2.Pitch = pt[math.random(1,#pt)] | |
| 2359 | z2.Looped = false | |
| 2360 | z2:Play() | |
| 2361 | for i = 1, 3 do | |
| 2362 | 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) | |
| 2363 | 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) | |
| 2364 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2365 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2366 | 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) | |
| 2367 | 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) | |
| 2368 | if Debounces.on == false then break end | |
| 2369 | wait() | |
| 2370 | end | |
| 2371 | z3 = Instance.new("Sound", rarm)
| |
| 2372 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2373 | z3.Volume = 0.6 | |
| 2374 | z3.Pitch = pt[math.random(1,#pt)] | |
| 2375 | z3.Looped = false | |
| 2376 | z3:Play() | |
| 2377 | for i = 1, 3 do | |
| 2378 | 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) | |
| 2379 | 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) | |
| 2380 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2381 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2382 | 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) | |
| 2383 | 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) | |
| 2384 | if Debounces.on == false then break end | |
| 2385 | wait() | |
| 2386 | end | |
| 2387 | z4 = Instance.new("Sound", larm)
| |
| 2388 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2389 | z4.Volume = .6 | |
| 2390 | z4.Pitch = pt[math.random(1,#pt)] | |
| 2391 | z4.Looped = false | |
| 2392 | z4:Play() | |
| 2393 | for i = 1, 3 do | |
| 2394 | 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) | |
| 2395 | 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) | |
| 2396 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2397 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2398 | 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) | |
| 2399 | 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) | |
| 2400 | if Debounces.on == false then break end | |
| 2401 | wait() | |
| 2402 | end | |
| 2403 | z5 = Instance.new("Sound", rarm)
| |
| 2404 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2405 | z5.Volume = .6 | |
| 2406 | z5.Pitch = pt[math.random(1,#pt)] | |
| 2407 | z5.Looped = false | |
| 2408 | z5:Play() | |
| 2409 | for i = 1, 3 do | |
| 2410 | 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) | |
| 2411 | 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) | |
| 2412 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2413 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2414 | 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) | |
| 2415 | 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) | |
| 2416 | if Debounces.on == false then break end | |
| 2417 | wait() | |
| 2418 | end | |
| 2419 | z6 = Instance.new("Sound", larm)
| |
| 2420 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2421 | z6.Volume = .6 | |
| 2422 | z6.Pitch = pt[math.random(1,#pt)] | |
| 2423 | z6.Looped = false | |
| 2424 | z6:Play() | |
| 2425 | for i = 1, 3 do | |
| 2426 | 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) | |
| 2427 | 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) | |
| 2428 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2429 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2430 | 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) | |
| 2431 | 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) | |
| 2432 | if Debounces.on == false then break end | |
| 2433 | wait() | |
| 2434 | end | |
| 2435 | z7 = Instance.new("Sound", rarm)
| |
| 2436 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 2437 | z7.Volume = .6 | |
| 2438 | z7.Pitch = pt[math.random(1,#pt)] | |
| 2439 | z7.Looped = false | |
| 2440 | z7:Play() | |
| 2441 | for i = 1, 3 do | |
| 2442 | 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) | |
| 2443 | 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) | |
| 2444 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2445 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2446 | 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) | |
| 2447 | 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) | |
| 2448 | if Debounces.on == false then break end | |
| 2449 | wait() | |
| 2450 | end | |
| 2451 | z8 = Instance.new("Sound", larm)
| |
| 2452 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2453 | z8.Volume = .6 | |
| 2454 | z8.Pitch = pt[math.random(1,#pt)] | |
| 2455 | z8.Looped = false | |
| 2456 | z8:Play() | |
| 2457 | for i = 1, 3 do | |
| 2458 | 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) | |
| 2459 | 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) | |
| 2460 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2461 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2462 | 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) | |
| 2463 | 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) | |
| 2464 | if Debounces.on == false then break end | |
| 2465 | wait() | |
| 2466 | end | |
| 2467 | z9 = Instance.new("Sound", rarm)
| |
| 2468 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2469 | z9.Volume = 0.6 | |
| 2470 | z9.Pitch = pt[math.random(1,#pt)] | |
| 2471 | z9.Looped = false | |
| 2472 | z9:Play() | |
| 2473 | for i = 1, 3 do | |
| 2474 | 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) | |
| 2475 | 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) | |
| 2476 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2477 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2478 | 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) | |
| 2479 | 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) | |
| 2480 | if Debounces.on == false then break end | |
| 2481 | wait() | |
| 2482 | end | |
| 2483 | z10 = Instance.new("Sound", larm)
| |
| 2484 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2485 | z10.Volume = .6 | |
| 2486 | z10.Pitch = pt[math.random(1,#pt)] | |
| 2487 | z10.Looped = false | |
| 2488 | z10:Play() | |
| 2489 | for i = 1, 3 do | |
| 2490 | 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) | |
| 2491 | 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) | |
| 2492 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2493 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2494 | 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) | |
| 2495 | 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) | |
| 2496 | if Debounces.on == false then break end | |
| 2497 | wait() | |
| 2498 | end | |
| 2499 | z11 = Instance.new("Sound", rarm)
| |
| 2500 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2501 | z11.Volume = .6 | |
| 2502 | z11.Pitch = pt[math.random(1,#pt)] | |
| 2503 | z11.Looped = false | |
| 2504 | z11:Play() | |
| 2505 | for i = 1, 3 do | |
| 2506 | 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) | |
| 2507 | 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) | |
| 2508 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2510 | 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) | |
| 2511 | 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) | |
| 2512 | if Debounces.on == false then break end | |
| 2513 | wait() | |
| 2514 | end | |
| 2515 | z12 = Instance.new("Sound", larm)
| |
| 2516 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2517 | z12.Volume = .6 | |
| 2518 | z12.Pitch = pt[math.random(1,#pt)] | |
| 2519 | z12.Looped = false | |
| 2520 | z12:Play() | |
| 2521 | for i = 1, 3 do | |
| 2522 | 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) | |
| 2523 | 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) | |
| 2524 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2525 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2526 | 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) | |
| 2527 | 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) | |
| 2528 | if Debounces.on == false then break end | |
| 2529 | wait() | |
| 2530 | end | |
| 2531 | z13 = Instance.new("Sound", rarm)
| |
| 2532 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2533 | z13.Volume = 0.6 | |
| 2534 | z13.Pitch = pt[math.random(1,#pt)] | |
| 2535 | z13.Looped = false | |
| 2536 | z13:Play() | |
| 2537 | for i = 1, 3 do | |
| 2538 | 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) | |
| 2539 | 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) | |
| 2540 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2541 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2542 | 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) | |
| 2543 | 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) | |
| 2544 | if Debounces.on == false then break end | |
| 2545 | wait() | |
| 2546 | end | |
| 2547 | z14 = Instance.new("Sound", larm)
| |
| 2548 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2549 | z14.Volume = .6 | |
| 2550 | z14.Pitch = pt[math.random(1,#pt)] | |
| 2551 | z14.Looped = false | |
| 2552 | z14:Play() | |
| 2553 | for i = 1, 3 do | |
| 2554 | 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) | |
| 2555 | 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) | |
| 2556 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2557 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2558 | 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) | |
| 2559 | 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) | |
| 2560 | if Debounces.on == false then break end | |
| 2561 | wait() | |
| 2562 | end | |
| 2563 | z15 = Instance.new("Sound", rarm)
| |
| 2564 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2565 | z15.Volume = .6 | |
| 2566 | z15.Pitch = pt[math.random(1,#pt)] | |
| 2567 | z15.Looped = false | |
| 2568 | z15:Play() | |
| 2569 | for i = 1, 3 do | |
| 2570 | 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) | |
| 2571 | 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) | |
| 2572 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2573 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2574 | 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) | |
| 2575 | 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) | |
| 2576 | if Debounces.on == false then break end | |
| 2577 | wait() | |
| 2578 | end | |
| 2579 | z16 = Instance.new("Sound", larm)
| |
| 2580 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2581 | z16.Volume = .6 | |
| 2582 | z16.Pitch = pt[math.random(1,#pt)] | |
| 2583 | z16.Looped = false | |
| 2584 | z16:Play() | |
| 2585 | for i = 1, 3 do | |
| 2586 | 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) | |
| 2587 | 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) | |
| 2588 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2589 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2590 | 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) | |
| 2591 | 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) | |
| 2592 | if Debounces.on == false then break end | |
| 2593 | wait() | |
| 2594 | end | |
| 2595 | z17 = Instance.new("Sound", rarm)
| |
| 2596 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 2597 | z17.Volume = .6 | |
| 2598 | z17.Pitch = pt[math.random(1,#pt)] | |
| 2599 | z17.Looped = false | |
| 2600 | z17:Play() | |
| 2601 | for i = 1, 3 do | |
| 2602 | 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) | |
| 2603 | 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) | |
| 2604 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2605 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2606 | 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) | |
| 2607 | 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) | |
| 2608 | if Debounces.on == false then break end | |
| 2609 | wait() | |
| 2610 | end | |
| 2611 | z18 = Instance.new("Sound", larm)
| |
| 2612 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2613 | z18.Volume = .6 | |
| 2614 | z18.Pitch = pt[math.random(1,#pt)] | |
| 2615 | z18.Looped = false | |
| 2616 | z18:Play() | |
| 2617 | for i = 1, 3 do | |
| 2618 | 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) | |
| 2619 | 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) | |
| 2620 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2621 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2622 | 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) | |
| 2623 | 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) | |
| 2624 | if Debounces.on == false then break end | |
| 2625 | wait() | |
| 2626 | end | |
| 2627 | z19 = Instance.new("Sound", rarm)
| |
| 2628 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2629 | z19.Volume = 0.6 | |
| 2630 | z19.Pitch = pt[math.random(1,#pt)] | |
| 2631 | z19.Looped = false | |
| 2632 | z19:Play() | |
| 2633 | for i = 1, 3 do | |
| 2634 | 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) | |
| 2635 | 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) | |
| 2636 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2637 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2638 | 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) | |
| 2639 | 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) | |
| 2640 | if Debounces.on == false then break end | |
| 2641 | wait() | |
| 2642 | end | |
| 2643 | z20 = Instance.new("Sound", larm)
| |
| 2644 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 2645 | z20.Volume = .6 | |
| 2646 | z20.Pitch = pt[math.random(1,#pt)] | |
| 2647 | z20.Looped = false | |
| 2648 | z20:Play() | |
| 2649 | for i = 1, 3 do | |
| 2650 | 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) | |
| 2651 | 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) | |
| 2652 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2653 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2654 | 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) | |
| 2655 | 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) | |
| 2656 | if Debounces.on == false then break end | |
| 2657 | wait() | |
| 2658 | end | |
| 2659 | z:Destroy() | |
| 2660 | z2:Destroy() | |
| 2661 | z3:Destroy() | |
| 2662 | z4:Destroy() | |
| 2663 | z5:Destroy() | |
| 2664 | z6:Destroy() | |
| 2665 | z7:Destroy() | |
| 2666 | z8:Destroy() | |
| 2667 | z9:Destroy() | |
| 2668 | z10:Destroy() | |
| 2669 | z11:Destroy() | |
| 2670 | z12:Destroy() | |
| 2671 | z13:Destroy() | |
| 2672 | z14:Destroy() | |
| 2673 | z15:Destroy() | |
| 2674 | z16:Destroy() | |
| 2675 | z17:Destroy() | |
| 2676 | z18:Destroy() | |
| 2677 | z19:Destroy() | |
| 2678 | z20:Destroy() | |
| 2679 | Debounces.LPunch = false | |
| 2680 | Debounces.RPunch = false | |
| 2681 | Debounces.ks = false | |
| 2682 | Debounces.ks2 = false | |
| 2683 | if Debounces.CanAttack == false then | |
| 2684 | Debounces.CanAttack = true | |
| 2685 | Debounces.on = false | |
| 2686 | Debounces.NoIdl = false | |
| 2687 | end | |
| 2688 | end | |
| 2689 | end | |
| 2690 | end) | |
| 2691 | ------------------------------- | |
| 2692 | mouse.KeyDown:connect(function(key) | |
| 2693 | if key == "t" then | |
| 2694 | if Debounces.CanAttack == true then | |
| 2695 | Debounces.CanAttack = false | |
| 2696 | Debounces.NoIdl = true | |
| 2697 | Debounces.on = true | |
| 2698 | Debounces.ks = true | |
| 2699 | kik = rleg.Touched:connect(function(ht) | |
| 2700 | hit = ht.Parent | |
| 2701 | if ht and hit:IsA("Model") then
| |
| 2702 | if hit:FindFirstChild("Humanoid") then
| |
| 2703 | if hit.Name ~= p.Name then | |
| 2704 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 2705 | Debounces.Slashed = true]]-- | |
| 2706 | if Debounces.ks==true then | |
| 2707 | z = Instance.new("Sound",hed)
| |
| 2708 | z.SoundId = "rbxassetid://169380525" | |
| 2709 | z.Volume = 1 | |
| 2710 | z:Play() | |
| 2711 | Debounces.ks=false | |
| 2712 | end | |
| 2713 | hit:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 2714 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 2715 | --Debounces.Slashed = false | |
| 2716 | --end | |
| 2717 | end | |
| 2718 | end | |
| 2719 | elseif ht and hit:IsA("Hat") then
| |
| 2720 | if hit.Parent.Name ~= p.Name then | |
| 2721 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 2722 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 2723 | Debounces.Slashed = true]]-- | |
| 2724 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 2725 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 2726 | --Debounces.Slashed = false | |
| 2727 | --end | |
| 2728 | end | |
| 2729 | end | |
| 2730 | end | |
| 2731 | end) | |
| 2732 | for i = 1,20 do | |
| 2733 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 2734 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
| 2735 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 2736 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
| 2737 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
| 2738 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
| 2739 | if Debounces.on == false then break end | |
| 2740 | rs:wait() | |
| 2741 | end | |
| 2742 | kik:disconnect() | |
| 2743 | if Debounces.CanAttack == false then | |
| 2744 | Debounces.CanAttack = true | |
| 2745 | Debounces.NoIdl = false | |
| 2746 | Debounces.on = false | |
| 2747 | end | |
| 2748 | end | |
| 2749 | end | |
| 2750 | end) | |
| 2751 | ---------------------------------------------------- | |
| 2752 | mouse.KeyDown:connect(function(key) | |
| 2753 | if key == "y" then | |
| 2754 | if Debounces.CanAttack == true then | |
| 2755 | Debounces.CanAttack = false | |
| 2756 | Debounces.on = true | |
| 2757 | Debounces.NoIdl = true | |
| 2758 | for i = 1, 15 do | |
| 2759 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(90+1), math.rad(0), math.rad(-60)), 0.2) | |
| 2760 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(93),math.rad(0),math.rad(10)), 0.2) | |
| 2761 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-20),math.rad(-10),0), 0.2) | |
| 2762 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(10), 0), 0.2) | |
| 2763 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
| 2764 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
| 2765 | if Debounces.on == false then break end if Debounces.on == false then break end | |
| 2766 | rs:wait(2.7) | |
| 2767 | end | |
| 2768 | x = Instance.new("Sound",char)
| |
| 2769 | x.SoundId = "rbxassetid://228343271" | |
| 2770 | x.Pitch = 1 | |
| 2771 | x.Volume = .8 | |
| 2772 | wait(.1) | |
| 2773 | x:Play() | |
| 2774 | Debounces.on = false | |
| 2775 | Debounces.Here = false | |
| 2776 | shot = shot + 1 | |
| 2777 | local rng = Instance.new("Part", larm)
| |
| 2778 | rng.Anchored = true | |
| 2779 | rng.BrickColor = BrickColor.new("Crimson")
| |
| 2780 | rng.CanCollide = false | |
| 2781 | rng.FormFactor = 3 | |
| 2782 | rng.Name = "Ring" | |
| 2783 | rng.Size = Vector3.new(1, 1, 1) | |
| 2784 | rng.Transparency = 0.35 | |
| 2785 | rng.TopSurface = 0 | |
| 2786 | rng.BottomSurface = 0 | |
| 2787 | rng2 = rng:clone() | |
| 2788 | rng3 = rng2:clone() | |
| 2789 | rng4 = rng2:clone() | |
| 2790 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2791 | rngm.MeshId = "http://www.roblox.com/asset/?id=1125473" -- 1125473 | |
| 2792 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 2793 | rngm2 = rngm:clone() | |
| 2794 | rngm2.Scale = Vector3.new(5, 5, 3) | |
| 2795 | rngm3=rngm2:clone() | |
| 2796 | rngm3.Parent = rng3 | |
| 2797 | rngm3.Scale = Vector3.new(8, 8, 1) | |
| 2798 | rngm4 = rngm2:clone() | |
| 2799 | rngm4.Parent = rng4 | |
| 2800 | rngm4.Scale = Vector3.new(6, 6, 1) | |
| 2801 | local bem = Instance.new("Part", larm)
| |
| 2802 | bem.Anchored = true | |
| 2803 | bem.BrickColor = BrickColor.new("Crimson")
| |
| 2804 | bem.CanCollide = false | |
| 2805 | bem.FormFactor = 3 | |
| 2806 | bem.Name = "Beam" .. shot | |
| 2807 | bem.Size = Vector3.new(1, 1, 1) | |
| 2808 | bem.Transparency = 0.35 | |
| 2809 | bem.TopSurface = 0 | |
| 2810 | bem.BottomSurface = 0 | |
| 2811 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 2812 | bemm.MeshType = 4 | |
| 2813 | bemm.Scale = Vector3.new(1, 4, 4) | |
| 2814 | local out = Instance.new("Part", larm)
| |
| 2815 | out.Anchored = true | |
| 2816 | out.BrickColor = BrickColor.new("Crimson")
| |
| 2817 | out.CanCollide = false | |
| 2818 | out.FormFactor = 3 | |
| 2819 | out.Name = "Out" | |
| 2820 | out.Size = Vector3.new(4, 4, 4) | |
| 2821 | out.Transparency = 0.35 | |
| 2822 | out.TopSurface = 0 | |
| 2823 | out.BottomSurface = 0 | |
| 2824 | local outm = Instance.new("SpecialMesh", out)
| |
| 2825 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
| 2826 | outm.Scale = Vector3.new(6, 4, 6) | |
| 2827 | local bnd = Instance.new("Part", larm)
| |
| 2828 | bnd.Anchored = true | |
| 2829 | bnd.BrickColor = BrickColor.new("Carnation pink")
| |
| 2830 | bnd.CanCollide = false | |
| 2831 | bnd.FormFactor = 3 | |
| 2832 | bnd.Name = "Bend" | |
| 2833 | bnd.Size = Vector3.new(1, 1, 1) | |
| 2834 | bnd.Transparency = 1 | |
| 2835 | bnd.TopSurface = 0 | |
| 2836 | bnd.BottomSurface = 0 | |
| 2837 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 2838 | bndm.MeshType = 3 | |
| 2839 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 2840 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 2841 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 2842 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 2843 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 2844 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
| 2845 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
| 2846 | Debounces.Shewt = true | |
| 2847 | coroutine.wrap(function() | |
| 2848 | for i = 1, 20, 0.2 do | |
| 2849 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 2850 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
| 2851 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
| 2852 | rng.Transparency = i/20 | |
| 2853 | rng3.Transparency = 1/24 | |
| 2854 | rng4.Transparency = i/26 | |
| 2855 | wait() | |
| 2856 | end | |
| 2857 | wait() | |
| 2858 | rng:Destroy() | |
| 2859 | end)() | |
| 2860 | if Debounces.Shewt == true then | |
| 2861 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 2862 | hit = ht.Parent | |
| 2863 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 2864 | if HasntTouched(hit.Name) == true and deb == false then | |
| 2865 | deb = true | |
| 2866 | coroutine.wrap(function() | |
| 2867 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 2868 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 2869 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 2870 | end)() | |
| 2871 | table.insert(Touche, hit.Name) | |
| 2872 | deb = false | |
| 2873 | end | |
| 2874 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 2875 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 2876 | deb = true | |
| 2877 | coroutine.wrap(function() | |
| 2878 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 2879 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 2880 | wait(1) | |
| 2881 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 2882 | end)() | |
| 2883 | table.insert(Touche, hit.Parent.Name) | |
| 2884 | deb = false | |
| 2885 | for i, v in pairs(Touche) do | |
| 2886 | print(v) | |
| 2887 | end | |
| 2888 | end | |
| 2889 | end | |
| 2890 | end) | |
| 2891 | end | |
| 2892 | for i = 0, 260, 8 do | |
| 2893 | bem.Size = Vector3.new(i, 3, 3) | |
| 2894 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 2895 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 2896 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 2897 | bnd.Size = Vector3.new(1,1,1) | |
| 2898 | bndm.Scale = Vector3.new(8,8,8) | |
| 2899 | if i % 10 == 0 then | |
| 2900 | local newRng = rng2:Clone() | |
| 2901 | newRng.Parent = larm | |
| 2902 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 2903 | local newRngm = rngm2:clone() | |
| 2904 | newRngm.Parent=newRng | |
| 2905 | coroutine.wrap(function() | |
| 2906 | for i = 1, 10, 0.2 do | |
| 2907 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
| 2908 | newRng.Transparency = i/10 | |
| 2909 | wait() | |
| 2910 | end | |
| 2911 | wait() | |
| 2912 | newRng:Destroy() | |
| 2913 | end)() | |
| 2914 | end | |
| 2915 | wait() | |
| 2916 | end | |
| 2917 | wait() | |
| 2918 | Debounces.Shewt = false | |
| 2919 | bem:Destroy() | |
| 2920 | out:Destroy() | |
| 2921 | bnd:Destroy() | |
| 2922 | Debounces.Ready = false | |
| 2923 | for i, v in pairs(Touche) do | |
| 2924 | table.remove(Touche, i) | |
| 2925 | end | |
| 2926 | wait() | |
| 2927 | table.insert(Touche, char.Name) | |
| 2928 | Debounces.NoIdl = false | |
| 2929 | if Debounces.CanAttack == false then | |
| 2930 | Debounces.CanAttack = true | |
| 2931 | end | |
| 2932 | end | |
| 2933 | end | |
| 2934 | end) | |
| 2935 | ---------------------------------------------------- | |
| 2936 | mouse.KeyDown:connect(function(key) | |
| 2937 | if key == "x" then | |
| 2938 | if Debounces.CanAttack == true then | |
| 2939 | Debounces.CanAttack = false | |
| 2940 | Debounces.NoIdl = true | |
| 2941 | Debounces.on = true | |
| 2942 | hed.Anchored=true | |
| 2943 | local shell = Instance.new("Part",torso)
| |
| 2944 | shell.BrickColor = BrickColor.new("Carnation pink")
| |
| 2945 | shell.Anchored = false | |
| 2946 | shell.CanCollide = false | |
| 2947 | shell.Locked = true | |
| 2948 | shell.Material = "Neon" | |
| 2949 | shell.TopSurface = "SmoothNoOutlines" | |
| 2950 | shell.BottomSurface = "SmoothNoOutlines" | |
| 2951 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
| 2952 | shell.FormFactor = 3 | |
| 2953 | local shellm = Instance.new("SpecialMesh",shell)
| |
| 2954 | shellm.MeshType = "Sphere" | |
| 2955 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 2956 | local Omega = function() | |
| 2957 | local X = Instance.new("Part",char)
| |
| 2958 | local O = Instance.new("ObjectValue",X)
| |
| 2959 | O.Name = "creator" | |
| 2960 | X.Locked = true | |
| 2961 | X.Name = "Shell" | |
| 2962 | X.Anchored = false | |
| 2963 | X.CanCollide = false | |
| 2964 | X.Transparency = 0.5 | |
| 2965 | X.Reflectance = 0 | |
| 2966 | X.BottomSurface = 0 | |
| 2967 | X.TopSurface = 0 | |
| 2968 | X.Shape = 0 | |
| 2969 | local V = Instance.new("ObjectValue",X)
| |
| 2970 | V.Value = char | |
| 2971 | V.Name = "creator" | |
| 2972 | X.BrickColor = BrickColor.new("Carnation pink")
| |
| 2973 | X.Size = Vector3.new(100,40,100) | |
| 2974 | X.CFrame=torso.CFrame*CFrame.new(0,0,-40) | |
| 2975 | X.Material = "Neon" | |
| 2976 | b = Instance.new("Sound")
| |
| 2977 | b.SoundId = "http://www.roblox.com/asset/?id=262498472" | |
| 2978 | b.Parent = char.Head | |
| 2979 | b.Looped = false | |
| 2980 | b.Pitch = 1 | |
| 2981 | b.Volume = 1 | |
| 2982 | wait(.1) | |
| 2983 | b:Play() | |
| 2984 | local Z = Instance.new("SpecialMesh",X)
| |
| 2985 | Z.MeshType = "Sphere" | |
| 2986 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
| 2987 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 2988 | local bv = Instance.new("BodyVelocity",X)
| |
| 2989 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 2990 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 2991 | bv.velocity = root.CFrame.lookVector*10 | |
| 2992 | Explode = X.Touched:connect(function(hit) | |
| 2993 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart") then
| |
| 2994 | local cf = X.CFrame | |
| 2995 | bv:Destroy() | |
| 2996 | X.Anchored = true | |
| 2997 | Z:Remove() | |
| 2998 | Explode:disconnect() | |
| 2999 | X.Size = Vector3.new(3,3,3) | |
| 3000 | X.Touched:connect(function(hit) end) | |
| 3001 | X.CanCollide = false | |
| 3002 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
| 3003 | if v:FindFirstChild('Humanoid') then
| |
| 3004 | v.Humanoid:TakeDamage(math.random(80,120)) | |
| 3005 | end | |
| 3006 | end | |
| 3007 | for i = 1, (40) do rs:wait() | |
| 3008 | X.Transparency = X.Transparency + (1/40) | |
| 3009 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 3010 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
| 3011 | end | |
| 3012 | X:Destroy() | |
| 3013 | end | |
| 3014 | end) | |
| 3015 | end | |
| 3016 | --Omega() | |
| 3017 | local function wat() | |
| 3018 | local sweld=Instance.new('ManualWeld',shell)
| |
| 3019 | sweld.Part0=shell | |
| 3020 | sweld.Part1=rarm | |
| 3021 | sweld.C0=CFrame.new(0,1,0) | |
| 3022 | return sweld | |
| 3023 | end | |
| 3024 | local watweld=wat() | |
| 3025 | for i = 1,200 do | |
| 3026 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
| 3027 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
| 3028 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3029 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3030 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3031 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3032 | if Debounces.on == false then break end | |
| 3033 | rs:wait() | |
| 3034 | end | |
| 3035 | b = Instance.new("Sound")
| |
| 3036 | b.SoundId = "http://www.roblox.com/asset/?id=245537790" | |
| 3037 | b.Parent = char.Head | |
| 3038 | b.Looped = false | |
| 3039 | b.Pitch = 1 | |
| 3040 | b.Volume = 1 | |
| 3041 | wait(.1) | |
| 3042 | b:Play() | |
| 3043 | watweld.Part1=torso | |
| 3044 | watweld.C0=CFrame.new(0,-4,0) | |
| 3045 | for i = 1,30 do | |
| 3046 | watweld.C0=watweld.C0*CFrame.new(0,-1,0) | |
| 3047 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
| 3048 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
| 3049 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3050 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3051 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3052 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3053 | if Debounces.on == false then break end | |
| 3054 | rs:wait() | |
| 3055 | end | |
| 3056 | local shelbx=true | |
| 3057 | --Experimental Damagefunction | |
| 3058 | coroutine.resume(coroutine.create(function() while shelbx do wait() | |
| 3059 | for _,v in pairs(game.workspace:GetChildren()) do | |
| 3060 | if v:IsA'Model' and v:FindFirstChild'Humanoid' and v:FindFirstChild'Torso' and v~=pchar then | |
| 3061 | local mag=(v.Torso.CFrame.p-shell.CFrame.p).magnitude | |
| 3062 | if mag <= shell.Size.x then | |
| 3063 | v.Humanoid.Health=v.Humanoid.Health-(v.Humanoid.MaxHealth/7) | |
| 3064 | end | |
| 3065 | end | |
| 3066 | end | |
| 3067 | end end)) | |
| 3068 | for i = 1,40 do | |
| 3069 | --shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
| 3070 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 3071 | local watweld=wat() | |
| 3072 | watweld.C0=CFrame.new(0,-14-i,0) | |
| 3073 | watweld.Part1=torso | |
| 3074 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
| 3075 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
| 3076 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3077 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3078 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3079 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3080 | if Debounces.on == false then break end | |
| 3081 | rs:wait() | |
| 3082 | end | |
| 3083 | for i = 1,40 do | |
| 3084 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
| 3085 | local watweld=wat() | |
| 3086 | watweld.Part1=torso | |
| 3087 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,40),1) | |
| 3088 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
| 3089 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
| 3090 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3091 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3092 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3093 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3094 | if Debounces.on == false then break end | |
| 3095 | rs:wait() | |
| 3096 | end | |
| 3097 | for i = 1,60 do | |
| 3098 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 3099 | local watweld=wat() | |
| 3100 | watweld.Part1=torso | |
| 3101 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,60),1) | |
| 3102 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
| 3103 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
| 3104 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3105 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3106 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3107 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3108 | if Debounces.on == false then break end | |
| 3109 | rs:wait() | |
| 3110 | end | |
| 3111 | for i = 1,60 do | |
| 3112 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 3113 | --shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 3114 | shell.Size=shell.Size+Vector3.new(1,1,1) | |
| 3115 | local watweld=wat() | |
| 3116 | watweld.Part1=torso | |
| 3117 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,62),1) | |
| 3118 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
| 3119 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
| 3120 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3121 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3122 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3123 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3124 | if Debounces.on == false then break end | |
| 3125 | rs:wait() | |
| 3126 | end | |
| 3127 | coroutine.resume(coroutine.create(function() | |
| 3128 | for i=0,1,.1 do wait() shell.Transparency=i end | |
| 3129 | shell:Destroy() | |
| 3130 | shelbx=false | |
| 3131 | end)) | |
| 3132 | hed.Anchored=false | |
| 3133 | if Debounces.CanAttack == false then | |
| 3134 | Debounces.CanAttack = true | |
| 3135 | Debounces.NoIdl = false | |
| 3136 | Debounces.on = false | |
| 3137 | b:Destroy() | |
| 3138 | ||
| 3139 | end | |
| 3140 | end | |
| 3141 | end | |
| 3142 | end) | |
| 3143 | ---------------------------------------------------- | |
| 3144 | mouse.KeyDown:connect(function(key) | |
| 3145 | if key == "z" then | |
| 3146 | if Debounces.CanAttack == true then | |
| 3147 | Debounces.CanAttack = false | |
| 3148 | Debounces.NoIdl = true | |
| 3149 | char.Humanoid.WalkSpeed = .01 | |
| 3150 | Debounces.on = true | |
| 3151 | for i = 1, 20 do | |
| 3152 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.3) | |
| 3153 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.3) | |
| 3154 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.3) | |
| 3155 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.3) | |
| 3156 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.3) | |
| 3157 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.3) | |
| 3158 | if Debounces.on == false then | |
| 3159 | break | |
| 3160 | end | |
| 3161 | wait() | |
| 3162 | end | |
| 3163 | for i = 1, 20 do | |
| 3164 | wait() | |
| 3165 | end | |
| 3166 | x = Instance.new("Sound")
| |
| 3167 | x.SoundId = "http://www.roblox.com/asset/?id=235097614" | |
| 3168 | x.Parent = char | |
| 3169 | x.Looped = false | |
| 3170 | x.Pitch = .7 | |
| 3171 | x.Volume = .6 | |
| 3172 | wait(.1) | |
| 3173 | x:Play() | |
| 3174 | Debounces.on = false | |
| 3175 | Debounces.Here = false | |
| 3176 | shot = shot + 1 | |
| 3177 | for i = 1, 6 do | |
| 3178 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
| 3179 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.4) | |
| 3180 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
| 3181 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
| 3182 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
| 3183 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 3) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
| 3184 | wait() | |
| 3185 | end | |
| 3186 | local rng = Instance.new("Part", char)
| |
| 3187 | rng.Anchored = true | |
| 3188 | rng.BrickColor = BrickColor.new("Crimson")
| |
| 3189 | rng.CanCollide = false | |
| 3190 | rng.FormFactor = 3 | |
| 3191 | rng.Name = "Ring" | |
| 3192 | rng.Size = Vector3.new(1, 1, 1) | |
| 3193 | rng.Transparency = 0.35 | |
| 3194 | rng.TopSurface = 0 | |
| 3195 | rng.BottomSurface = 0 | |
| 3196 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3197 | rngm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
| 3198 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 3199 | local bem = Instance.new("Part", char)
| |
| 3200 | bem.Anchored = true | |
| 3201 | bem.BrickColor = BrickColor.new("Crimson")
| |
| 3202 | bem.CanCollide = false | |
| 3203 | bem.FormFactor = 3 | |
| 3204 | bem.Name = "Beam" .. shot | |
| 3205 | bem.Size = Vector3.new(1, 1, 1) | |
| 3206 | bem.Transparency = 0.35 | |
| 3207 | bem.TopSurface = 0 | |
| 3208 | bem.BottomSurface = 0 | |
| 3209 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 3210 | bemm.MeshType = 4 | |
| 3211 | bemm.Scale = Vector3.new(1, 4, 4) | |
| 3212 | local out = Instance.new("Part", char)
| |
| 3213 | out.Anchored = true | |
| 3214 | out.BrickColor = BrickColor.new("Crimson")
| |
| 3215 | out.CanCollide = false | |
| 3216 | out.FormFactor = 3 | |
| 3217 | out.Name = "Out" | |
| 3218 | out.Size = Vector3.new(4, 4, 4) | |
| 3219 | out.Transparency = 0.35 | |
| 3220 | out.TopSurface = 0 | |
| 3221 | out.BottomSurface = 0 | |
| 3222 | local outm = Instance.new("SpecialMesh", out)
| |
| 3223 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" --24388358 | |
| 3224 | outm.Scale = Vector3.new(4, 4, 4) | |
| 3225 | local bnd = Instance.new("Part", char)
| |
| 3226 | bnd.Anchored = true | |
| 3227 | bnd.BrickColor = BrickColor.new("Crimson")
| |
| 3228 | bnd.CanCollide = false | |
| 3229 | bnd.FormFactor = 3 | |
| 3230 | bnd.Name = "Bend" | |
| 3231 | bnd.Size = Vector3.new(1, 1, 1) | |
| 3232 | bnd.Transparency = 1 | |
| 3233 | bnd.TopSurface = 0 | |
| 3234 | bnd.BottomSurface = 0 | |
| 3235 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 3236 | bndm.MeshType = 3 | |
| 3237 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 3238 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
| 3239 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 3240 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 3241 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 3242 | Debounces.Shewt = true | |
| 3243 | coroutine.wrap(function() | |
| 3244 | for i = 1, 20, 0.2 do | |
| 3245 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 3246 | rng.Transparency = i/20 | |
| 3247 | wait() | |
| 3248 | end | |
| 3249 | wait() | |
| 3250 | rng:Destroy() | |
| 3251 | end)() | |
| 3252 | if Debounces.Shewt == true then | |
| 3253 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 3254 | hit = ht.Parent | |
| 3255 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 3256 | if HasntTouched(hit.Name) == true and deb == false then | |
| 3257 | deb = true | |
| 3258 | coroutine.wrap(function() | |
| 3259 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3260 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 3261 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 3262 | end)() | |
| 3263 | table.insert(Touche, hit.Name) | |
| 3264 | deb = false | |
| 3265 | end | |
| 3266 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 3267 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 3268 | deb = true | |
| 3269 | coroutine.wrap(function() | |
| 3270 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3271 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 3272 | wait(1) | |
| 3273 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 3274 | end)() | |
| 3275 | table.insert(Touche, hit.Parent.Name) | |
| 3276 | deb = false | |
| 3277 | for i, v in pairs(Touche) do | |
| 3278 | print(v) | |
| 3279 | end | |
| 3280 | end | |
| 3281 | end | |
| 3282 | end) | |
| 3283 | end | |
| 3284 | for i = 0, 260, 8 do | |
| 3285 | bem.Size = Vector3.new(i, 2, 2) | |
| 3286 | bem.CFrame = rarm.CFrame * CFrame.new(0, -3.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 3287 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 3288 | bnd.Size = Vector3.new(1,1,1) | |
| 3289 | bndm.Scale = Vector3.new(8,8,8) | |
| 3290 | wait() | |
| 3291 | end | |
| 3292 | wait() | |
| 3293 | Debounces.Shewt = false | |
| 3294 | bem:Destroy() | |
| 3295 | out:Destroy() | |
| 3296 | bnd:Destroy() | |
| 3297 | char.Humanoid.WalkSpeed = 10 | |
| 3298 | Debounces.Ready = false | |
| 3299 | for i, v in pairs(Touche) do | |
| 3300 | table.remove(Touche, i) | |
| 3301 | end | |
| 3302 | wait() | |
| 3303 | table.insert(Touche, char.Name) | |
| 3304 | Debounces.NoIdl = false | |
| 3305 | if Debounces.CanAttack == false then | |
| 3306 | Debounces.CanAttack = true | |
| 3307 | for i = 1, 20 do | |
| 3308 | wait() | |
| 3309 | hum.WalkSpeed = 5 | |
| 3310 | end | |
| 3311 | end | |
| 3312 | end | |
| 3313 | end | |
| 3314 | end) | |
| 3315 | ||
| 3316 | ---------------------------------------------------- | |
| 3317 | Charging = false | |
| 3318 | mouse.KeyDown:connect(function(key) | |
| 3319 | if key == "r" then | |
| 3320 | if Charging == false then | |
| 3321 | Charging = true | |
| 3322 | if Debounces.CanAttack == true then | |
| 3323 | Debounces.CanAttack = false | |
| 3324 | Debounces.NoIdl = true | |
| 3325 | Debounces.on = true | |
| 3326 | ||
| 3327 | for i = 1,20 do | |
| 3328 | 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) | |
| 3329 | 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) | |
| 3330 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 3331 | 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) | |
| 3332 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 3333 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 3334 | if Debounces.on == false then break end | |
| 3335 | rs:wait() | |
| 3336 | end | |
| 3337 | ||
| 3338 | ||
| 3339 | pt=Instance.new('Part',torso)
| |
| 3340 | pt.Anchored=true | |
| 3341 | pt.CanCollide=false | |
| 3342 | pt.Locked = true | |
| 3343 | pt.FormFactor='Custom' | |
| 3344 | pt.Size=Vector3.new(1,1,1) | |
| 3345 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 3346 | pt.Transparency=.6 | |
| 3347 | pt.BrickColor=BrickColor.new('Crimson')
| |
| 3348 | msh=Instance.new('SpecialMesh',pt)
| |
| 3349 | msh.MeshId='http://www.roblox.com/asset/?id=24388358' | |
| 3350 | msh.Scale=Vector3.new(8,4,8) | |
| 3351 | pt2=pt:clone() | |
| 3352 | pt2.Parent = torso | |
| 3353 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 3354 | pt2.BrickColor=BrickColor.new("Crimson")
| |
| 3355 | msh2=msh:clone() | |
| 3356 | msh2.Parent=pt2 | |
| 3357 | msh2.Scale=Vector3.new(10,5,10) | |
| 3358 | particle = Instance.new("ParticleEmitter", pt)
| |
| 3359 | particle.Size = NumberSequence.new(1.2) | |
| 3360 | particle.LightEmission = 0.2 | |
| 3361 | particle.EmissionDirection = "Top" | |
| 3362 | particle.Lifetime = NumberRange.new(5,10) | |
| 3363 | particle.Rotation = NumberRange.new(5,10) | |
| 3364 | particle.RotSpeed = NumberRange.new(5) | |
| 3365 | particle.Speed = NumberRange.new(15) | |
| 3366 | particle.VelocitySpread = 500 | |
| 3367 | particle.Rate = 150 | |
| 3368 | if potential then | |
| 3369 | particle.Color = ColorSequence.new(Color3.new(.5,0,.5)) | |
| 3370 | else | |
| 3371 | particle.Color = ColorSequence.new(Color3.new(0,0,0)) | |
| 3372 | end | |
| 3373 | ------------------ | |
| 3374 | ||
| 3375 | 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}
| |
| 3376 | ||
| 3377 | bl = Instance.new("Part", char)
| |
| 3378 | bl.Locked = true | |
| 3379 | bl.Name = "Shell" | |
| 3380 | bl.BrickColor = BrickColor.new("Crimson")
| |
| 3381 | bl.Anchored = true | |
| 3382 | bl.CanCollide = false | |
| 3383 | bl.Transparency = 0 | |
| 3384 | bl.Reflectance = 0 | |
| 3385 | bl.BottomSurface = 0 | |
| 3386 | bl.TopSurface = 0 | |
| 3387 | bl.Shape = 0 | |
| 3388 | blm = Instance.new("SpecialMesh",bl)
| |
| 3389 | blm.MeshType = "Sphere" | |
| 3390 | blm.Scale = Vector3.new(1,1,1) | |
| 3391 | blm.MeshId = "rbxassetid://9982590" | |
| 3392 | -- | |
| 3393 | b = Instance.new("Sound")
| |
| 3394 | b.SoundId = "http://www.roblox.com/asset/?id=262498472" | |
| 3395 | b.Parent = char.Head | |
| 3396 | b.Looped = true | |
| 3397 | b.Pitch = 1 | |
| 3398 | b.Volume = 1 | |
| 3399 | wait(.1) | |
| 3400 | b:Play() | |
| 3401 | -- | |
| 3402 | coroutine.resume(coroutine.create(function() | |
| 3403 | for i=1, math.huge, 4 do | |
| 3404 | if Charging == true then | |
| 3405 | rs:wait() | |
| 3406 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 3407 | blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1) | |
| 3408 | bl.Transparency = bl.Transparency + 0.005 | |
| 3409 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 3410 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 3411 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
| 3412 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
| 3413 | elseif Charging == false then break | |
| 3414 | end | |
| 3415 | end | |
| 3416 | end)) | |
| 3417 | ||
| 3418 | repeat | |
| 3419 | local p = Instance.new('Part',torso)
| |
| 3420 | p.formFactor = 'Custom' | |
| 3421 | p.Size = Vector3.new(1,1,1) | |
| 3422 | p.BrickColor = workspace.Base.BrickColor | |
| 3423 | p.CanCollide = false | |
| 3424 | p.Transparency = 0 | |
| 3425 | p.Anchored = true | |
| 3426 | p.Locked=true | |
| 3427 | p.Material = workspace.Base.Material | |
| 3428 | s = math.random(1,40)/10 | |
| 3429 | local m = Instance.new("BlockMesh",p)
| |
| 3430 | m.Scale = Vector3.new(s,s,s) | |
| 3431 | 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()) | |
| 3432 | --[[coroutine.wrap(function() | |
| 3433 | wait(2) | |
| 3434 | while Charging == true do | |
| 3435 | wait(2) | |
| 3436 | GroundWave1() | |
| 3437 | wait(2) | |
| 3438 | end | |
| 3439 | end)()]]-- | |
| 3440 | Spawn(function() | |
| 3441 | while rs:wait() do | |
| 3442 | if Charging == true then | |
| 3443 | 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))) | |
| 3444 | 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))) | |
| 3445 | 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)) | |
| 3446 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 3447 | 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))) | |
| 3448 | 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))) | |
| 3449 | elseif Charging == false then break | |
| 3450 | end | |
| 3451 | end | |
| 3452 | end) | |
| 3453 | Spawn(function() | |
| 3454 | while rs:wait() do | |
| 3455 | if p.Transparency >= 1 then p:Destroy() break end | |
| 3456 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 3457 | p.Transparency = p.Transparency+0.01 | |
| 3458 | end | |
| 3459 | end) | |
| 3460 | wait(.3) | |
| 3461 | until Charging == false | |
| 3462 | end | |
| 3463 | end | |
| 3464 | end | |
| 3465 | end) | |
| 3466 | ---------------------------------------------------- | |
| 3467 | mouse.KeyUp:connect(function(key) | |
| 3468 | if key == "r" then | |
| 3469 | if Charging == true then | |
| 3470 | Charging = false | |
| 3471 | pt:Destroy() | |
| 3472 | pt2:Destroy() | |
| 3473 | bl:Destroy() | |
| 3474 | particle:Destroy() | |
| 3475 | if Debounces.CanAttack == false then | |
| 3476 | Debounces.CanAttack = true | |
| 3477 | Debounces.NoIdl = false | |
| 3478 | Debounces.on = false | |
| 3479 | end | |
| 3480 | end | |
| 3481 | b:Stop() | |
| 3482 | end | |
| 3483 | end) | |
| 3484 | ---------------------------------------------------- | |
| 3485 | ||
| 3486 | ---------------------------------------------------- | |
| 3487 | Search = false | |
| 3488 | mouse.KeyDown:connect(function(key) | |
| 3489 | if key == "n" then | |
| 3490 | if Search == false then | |
| 3491 | Search = true | |
| 3492 | for i,v in pairs(game.Players:getPlayers()) do | |
| 3493 | if v.Name~=char.Name then | |
| 3494 | for j,k in pairs(v.Character:GetChildren()) do | |
| 3495 | if k:IsA("BasePart") and k.Transparency >= 1 then
| |
| 3496 | bawx=Instance.new("SelectionBox",cam)
| |
| 3497 | bawx.Color = BrickColor.new("Bright red")
| |
| 3498 | bawx.Transparency = .5 | |
| 3499 | bawx.Adornee = k | |
| 3500 | end | |
| 3501 | end | |
| 3502 | end | |
| 3503 | end | |
| 3504 | elseif Search == true then | |
| 3505 | Search = false | |
| 3506 | for i, v in pairs(cam:GetChildren()) do | |
| 3507 | if v:IsA("SelectionBox") then
| |
| 3508 | v:Destroy() | |
| 3509 | end | |
| 3510 | end | |
| 3511 | end | |
| 3512 | end | |
| 3513 | end) | |
| 3514 | ---------------------------------------------------- | |
| 3515 | ||
| 3516 | ---------------------------------------------------- | |
| 3517 | mouse.KeyDown:connect(function(key) | |
| 3518 | if string.byte(key) == 52 then | |
| 3519 | char.Humanoid.WalkSpeed = 60 | |
| 3520 | end | |
| 3521 | end) | |
| 3522 | mouse.KeyUp:connect(function(key) | |
| 3523 | if string.byte(key) == 52 then | |
| 3524 | char.Humanoid.WalkSpeed = 8 | |
| 3525 | end | |
| 3526 | end) | |
| 3527 | ------------------------------- | |
| 3528 | local animpose = "Idle" | |
| 3529 | local lastanimpose = "Idle" | |
| 3530 | local sine = 0 | |
| 3531 | local change = 1 | |
| 3532 | local val = 0 | |
| 3533 | local ffing = false | |
| 3534 | ------------------------------- | |
| 3535 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 3536 | --[[if char.Humanoid.Jump == true then | |
| 3537 | jump = true | |
| 3538 | else | |
| 3539 | jump = false | |
| 3540 | end]] | |
| 3541 | char.Humanoid.FreeFalling:connect(function(f) | |
| 3542 | if f then | |
| 3543 | ffing = true | |
| 3544 | else | |
| 3545 | ffing = false | |
| 3546 | end | |
| 3547 | end) | |
| 3548 | sine = sine + change | |
| 3549 | if jumpn == true then | |
| 3550 | animpose = "Jumping" | |
| 3551 | elseif ffing == true then | |
| 3552 | animpose = "Freefalling" | |
| 3553 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 3554 | animpose = "Idle" | |
| 3555 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 3556 | animpose = "Walking" | |
| 3557 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 3558 | animpose = "Running" | |
| 3559 | end | |
| 3560 | if animpose ~= lastanimpose then | |
| 3561 | sine = 0 | |
| 3562 | if Debounces.NoIdl == false then | |
| 3563 | if animpose == "Idle" then | |
| 3564 | for i = 1, 2 do | |
| 3565 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
| 3566 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
| 3567 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 3568 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3569 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 3570 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 3571 | end | |
| 3572 | elseif animpose == "Walking" then | |
| 3573 | for i = 1, 2 do | |
| 3574 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 3575 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 3576 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 3577 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 3578 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 3579 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 3580 | end | |
| 3581 | elseif animpose == "Running" then | |
| 3582 | for i = 1, 2 do | |
| 3583 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) | |
| 3584 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) | |
| 3585 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) | |
| 3586 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) | |
| 3587 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) | |
| 3588 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) | |
| 3589 | wait() | |
| 3590 | end | |
| 3591 | end | |
| 3592 | else | |
| 3593 | end | |
| 3594 | end | |
| 3595 | lastanimpose = animpose | |
| 3596 | if Debounces.NoIdl == false then | |
| 3597 | if animpose == "Idle" then | |
| 3598 | change = 0.5 | |
| 3599 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4) | |
| 3600 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4) | |
| 3601 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
| 3602 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 3603 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
| 3604 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4) | |
| 3605 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
| 3606 | elseif animpose == "Walking" then | |
| 3607 | change = 1 | |
| 3608 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 3609 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 3610 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 3611 | 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) | |
| 3612 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 3613 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 3614 | elseif animpose == "Running" then | |
| 3615 | change = 1 | |
| 3616 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
| 3617 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
| 3618 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
| 3619 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
| 3620 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
| 3621 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
| 3622 | end | |
| 3623 | end | |
| 3624 | end) | |
| 3625 | ||
| 3626 | hum.MaxHealth = 9001 | |
| 3627 | wait(3) | |
| 3628 | hum.Health = 9001 | |
| 3629 | Spawn(function() | |
| 3630 | while wait(.1) do | |
| 3631 | Magik() | |
| 3632 | end | |
| 3633 | end) | |
| 3634 | ||
| 3635 | Spawn(function() | |
| 3636 | while wait(.1) do | |
| 3637 | Magik2() | |
| 3638 | end | |
| 3639 | end) | |
| 3640 | ----------------------------------------------- | |
| 3641 | ||
| 3642 | LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 3643 | local lastCF=char.Torso.Position | |
| 3644 | local x1=Instance.new("Part",game.Workspace)
| |
| 3645 | x1.Name="Lightning" | |
| 3646 | x1.Size=Vector3.new(1,1,1) | |
| 3647 | x1.CanCollide=false | |
| 3648 | x1.Anchored=true | |
| 3649 | x1.Transparency=1 | |
| 3650 | Spawn(function() | |
| 3651 | while true do | |
| 3652 | wait(-1) | |
| 3653 | x1.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(50,360)))*CFrame.new(0,0,2.6) | |
| 3654 | end | |
| 3655 | end) | |
| 3656 | for i = 1,math.huge do | |
| 3657 | local dist2 = (lastCF-x1.Position).magnitude | |
| 3658 | local x2=Instance.new("Part",game.Workspace)
| |
| 3659 | x2.Name="Lightning2" | |
| 3660 | x2.Size=Vector3.new(1,1,1) | |
| 3661 | x2.Material="Neon" | |
| 3662 | x2.BrickColor=BrickColor.new("Carnation pink")
| |
| 3663 | x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2) | |
| 3664 | x2.CanCollide=false | |
| 3665 | x2.Anchored=true | |
| 3666 | local m = Instance.new("BlockMesh",x2)
| |
| 3667 | m.Scale = Vector3.new(0.5,0.5,dist2) | |
| 3668 | lastCF=x1.Position | |
| 3669 | spawn(function() | |
| 3670 | for i = 1,20 do | |
| 3671 | xx=m.Scale.x/2 | |
| 3672 | y=m.Scale.x/2 | |
| 3673 | m.Scale=m.Scale-Vector3.new(xx,y,0) | |
| 3674 | wait() | |
| 3675 | end | |
| 3676 | end) | |
| 3677 | game.Debris:AddItem(x2,1.5) | |
| 3678 | wait() | |
| 3679 | end |