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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | --// Made by Cronizete | |
| 8 | --// There's some secret functions c; | |
| 9 | ||
| 10 | plr = game:GetService("Players").LocalPlayer
| |
| 11 | char = plr.Character | |
| 12 | hum = char:FindFirstChildOfClass'Humanoid' | |
| 13 | hum.BodyDepthScale.Value = 1 | |
| 14 | hum.BodyHeightScale.Value = 1 | |
| 15 | hum.BodyWidthScale.Value = 1 | |
| 16 | hum.HeadScale.Value = 1 | |
| 17 | lclick = false | |
| 18 | mouse = plr:GetMouse() | |
| 19 | size = 1 | |
| 20 | rlick = false | |
| 21 | human = char.Humanoid | |
| 22 | root = char.HumanoidRootPart | |
| 23 | head = char.Head | |
| 24 | lshold = char["LeftUpperArm"].LeftShoulder | |
| 25 | rshold = char["RightUpperArm"].RightShoulder | |
| 26 | lelbow = char["LeftLowerArm"].LeftElbow | |
| 27 | relbow = char["RightLowerArm"].RightElbow | |
| 28 | lelbo = lelbow.C0 | |
| 29 | relbo = relbow.C0 | |
| 30 | rsho = rshold.C0 | |
| 31 | lsho = lshold.C0 | |
| 32 | jumping = false | |
| 33 | chipmesh = "" | |
| 34 | rad = math.rad | |
| 35 | shield = false | |
| 36 | disguise = "" | |
| 37 | step = workspace:WaitForChild('Base')
| |
| 38 | slam = false | |
| 39 | ff=Instance.new('ForceField', char)
| |
| 40 | ff.Visible = false | |
| 41 | dis = false | |
| 42 | neck = char.Head.Neck | |
| 43 | local ang = -5 | |
| 44 | local ang2 = -5 | |
| 45 | local sine = 0 | |
| 46 | local change = 0.5 | |
| 47 | arm = 0 | |
| 48 | char:FindFirstChild'Animate':Destroy() | |
| 49 | hum.Animator.Parent = nil | |
| 50 | nec = neck.C0 | |
| 51 | punch = false | |
| 52 | spikek = false | |
| 53 | cooldown = true | |
| 54 | random = math.random | |
| 55 | mainc = char.Head.BrickColor | |
| 56 | chip = false | |
| 57 | color = char.Head.BrickColor | |
| 58 | mainf = char.Head.face.Texture | |
| 59 | wings = false | |
| 60 | face = mainf | |
| 61 | lleg = char["LeftUpperLeg"].LeftHip | |
| 62 | rleg = char["RightUpperLeg"].RightHip | |
| 63 | rle = rleg.C0 | |
| 64 | lle = lleg.C0 | |
| 65 | torso = char:FindFirstChild('UpperTorso')
| |
| 66 | butf = false | |
| 67 | previ = "" | |
| 68 | jir = false | |
| 69 | legslam = false | |
| 70 | waist = torso.Waist | |
| 71 | wais = waist.C0 | |
| 72 | rtorso = char.LowerTorso.Root | |
| 73 | rtors = rtorso.C0 | |
| 74 | float = false | |
| 75 | signs = false | |
| 76 | fold = Instance.new('Folder', char)
| |
| 77 | sat = false | |
| 78 | asdasd = false | |
| 79 | ||
| 80 | --// Configs | |
| 81 | ||
| 82 | vol1 = 6 | |
| 83 | vol2 = 3 | |
| 84 | parts = 30 | |
| 85 | damage = 50 | |
| 86 | size = Vector3.new(27.67, 0.05, 25.43) | |
| 87 | ||
| 88 | --// Sfx | |
| 89 | ||
| 90 | local s1 = Instance.new('Sound', lleg.Parent) -- Explosion
| |
| 91 | s1.SoundId = "rbxassetid://138210320" | |
| 92 | ||
| 93 | local s2 = Instance.new('Sound', char.RightUpperArm) -- Punch
| |
| 94 | s2.SoundId = "rbxassetid://145486953" | |
| 95 | ||
| 96 | local s3 = Instance.new('Sound', char.HumanoidRootPart) -- Wings
| |
| 97 | s3.SoundId = "rbxassetid://999998561" | |
| 98 | s3.Looped = true | |
| 99 | ||
| 100 | local s4 = Instance.new('Sound', char.Head) -- Crunch
| |
| 101 | s4.SoundId = "rbxassetid://181027147" | |
| 102 | s4.Looped = false | |
| 103 | ||
| 104 | local s5 = Instance.new('Sound', char.LeftFoot) -- walk (grass)
| |
| 105 | s5.Volume = 6 | |
| 106 | s5.SoundId = "rbxassetid://429617891" | |
| 107 | s5.Looped = true | |
| 108 | ||
| 109 | local s6 = Instance.new('Sound', char.LeftFoot) -- walk (metals)
| |
| 110 | s6.Volume = 6 | |
| 111 | s6.SoundId = "rbxassetid://174216216" | |
| 112 | s6.Looped = true | |
| 113 | ||
| 114 | local s7 = Instance.new('Sound', char.LeftFoot) -- walk (sand)
| |
| 115 | s7.Volume = 6 | |
| 116 | s7.SoundId = "rbxassetid://336575096" | |
| 117 | s7.Looped = true | |
| 118 | ||
| 119 | local s8 = Instance.new('Sound', char.LeftFoot) -- walk (ice)
| |
| 120 | s8.Volume = 6 | |
| 121 | s8.SoundId = "rbxassetid://138214900" | |
| 122 | s8.Looped = true | |
| 123 | ||
| 124 | local s9 = Instance.new('Sound', char.LeftHand) -- Chips take out
| |
| 125 | s9.Volume = 6 | |
| 126 | s9.SoundId = "rbxassetid://873073853" | |
| 127 | s9.Looped = false | |
| 128 | ||
| 129 | local s10 = Instance.new('Sound', char.LeftHand) -- Jutsu
| |
| 130 | s10.Volume = 4 | |
| 131 | s10.SoundId = "rbxassetid://147722098" | |
| 132 | s10.Looped = false | |
| 133 | ||
| 134 | local s11 = Instance.new('Sound') -- Jutsu
| |
| 135 | s11.Volume = 4 | |
| 136 | s11.SoundId = "rbxassetid://158712406" | |
| 137 | s11.Looped = false | |
| 138 | ||
| 139 | local s12 = Instance.new('Sound', char.LeftFoot) -- walk (metal)
| |
| 140 | s12.Volume = 6 | |
| 141 | s12.SoundId = "rbxassetid://549006073" | |
| 142 | s12.Looped = true | |
| 143 | ||
| 144 | local s13 = Instance.new('Sound', char.LeftFoot) -- walk (bricks and stuff)
| |
| 145 | s13.Volume = 6 | |
| 146 | s13.SoundId = "rbxassetid://156659098" | |
| 147 | s13.Looped = true | |
| 148 | ||
| 149 | local s14 = Instance.new('Sound', char.LeftFoot) -- walk (carpet)
| |
| 150 | s14.Volume = 9 | |
| 151 | s14.SoundId = "rbxassetid://133705377" | |
| 152 | s14.Looped = true | |
| 153 | ||
| 154 | local s15 = Instance.new('Sound', char.HumanoidRootPart) -- smoke
| |
| 155 | s15.Volume = 3 | |
| 156 | s15.SoundId = "rbxassetid://722960601" | |
| 157 | s15.Looped = false | |
| 158 | ||
| 159 | --// Outfit | |
| 160 | ||
| 161 | for _, a in pairs(char:children()) do | |
| 162 | if a:IsA('Pants') or a:IsA('Shirt') or a:IsA('CharacterMesh') or a:IsA('Accessory') then
| |
| 163 | a:Destroy() | |
| 164 | end | |
| 165 | end | |
| 166 | ||
| 167 | bc = char:FindFirstChild('Body Colors')
| |
| 168 | bc.HeadColor = BrickColor.new('Light orange')
| |
| 169 | bc.LeftArmColor = BrickColor.new('Light orange')
| |
| 170 | bc.RightArmColor = BrickColor.new('Light orange')
| |
| 171 | bc.LeftLegColor = BrickColor.new('Light orange')
| |
| 172 | bc.RightLegColor = BrickColor.new('Light orange')
| |
| 173 | bc.TorsoColor = BrickColor.new('Light orange')
| |
| 174 | ||
| 175 | local p1 = Instance.new('Part', char)
| |
| 176 | p1.Anchored = false | |
| 177 | p1.CanCollide = false | |
| 178 | p1.BrickColor = BrickColor.new('Rust')
| |
| 179 | local w = Instance.new('Weld', p1)
| |
| 180 | w.Part0 = p1 | |
| 181 | w.Part1 = char:FindFirstChild'Head' | |
| 182 | w.C0 = CFrame.new(0,1,-1.3) | |
| 183 | local m1 = Instance.new('SpecialMesh', p1)
| |
| 184 | m1.MeshId = "rbxassetid://560193297" | |
| 185 | m1.TextureId = "" | |
| 186 | m1.Scale = Vector3.new(6,5,5) | |
| 187 | ||
| 188 | local p = Instance.new('Part', char)
| |
| 189 | p.Anchored = false | |
| 190 | p.CanCollide = false | |
| 191 | local w = Instance.new('Weld', p)
| |
| 192 | w.Part0 = p | |
| 193 | w.Part1 = char:FindFirstChild'Head' | |
| 194 | w.C0 = CFrame.new(0, -0.35, 0) | |
| 195 | local m = Instance.new('SpecialMesh', p)
| |
| 196 | m.MeshId = "http://www.roblox.com/asset/?id=1286425" | |
| 197 | m.TextureId = "rbxassetid://999070662" | |
| 198 | m.Scale = Vector3.new(1.01, 1.01, 1.01) | |
| 199 | ||
| 200 | char.Head:FindFirstChild('face').Texture = "rbxassetid://0"
| |
| 201 | ||
| 202 | local s = Instance.new('Shirt', char)
| |
| 203 | s.ShirtTemplate = "rbxassetid://274369116" | |
| 204 | local p2 = Instance.new('Pants', char)
| |
| 205 | p2.PantsTemplate = "rbxassetid://56461131" | |
| 206 | ||
| 207 | char.Archivable = true | |
| 208 | ||
| 209 | --// Functions | |
| 210 | ||
| 211 | function wsfx(a) | |
| 212 | coroutine.resume(coroutine.create(function() | |
| 213 | s11.Parent = a | |
| 214 | s11:Play() | |
| 215 | wait(1) | |
| 216 | s11:Stop() | |
| 217 | end)) | |
| 218 | end | |
| 219 | ||
| 220 | function sit() | |
| 221 | hum.WalkSpeed = 0 | |
| 222 | hum.JumpPower = 0 | |
| 223 | for i = 0,1,0.1 do | |
| 224 | wait() | |
| 225 | rtorso.C0 = rtorso.C0:lerp(rtors*CFrame.new(0, -1.143, 0),i) | |
| 226 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-17.303), 0, 0),i) | |
| 227 | rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(0, 0, math.rad(9.454)),i) | |
| 228 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(0, 0, math.rad(-11.001)),i) | |
| 229 | lleg.C0 = lleg.C0:lerp(lle *CFrame.new(-0.016, -0.459, 0.002) * CFrame.Angles(math.rad(89.725), math.rad(-2.005), math.rad(-8.881)), i) | |
| 230 | rleg.C0 = rleg.C0:lerp(rle * CFrame.new(0.039, -0.426, -0.167) * CFrame.Angles(math.rad(88.236), math.rad(2.177), math.rad(7.219)), i) | |
| 231 | end | |
| 232 | end | |
| 233 | ||
| 234 | function stand() | |
| 235 | hum.WalkSpeed = 16 | |
| 236 | hum.JumpPower = 50 | |
| 237 | for i = 0,1,0.1 do | |
| 238 | wait() | |
| 239 | rtorso.C0 = rtorso.C0:lerp(rtors,i) | |
| 240 | neck.C0 = neck.C0:lerp(nec,i) | |
| 241 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
| 242 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 243 | lleg.C0 = lleg.C0:lerp(lle, i) | |
| 244 | rleg.C0 = rleg.C0:lerp(rle, i) | |
| 245 | end | |
| 246 | end | |
| 247 | ||
| 248 | function hands() | |
| 249 | local a = 5 | |
| 250 | local b = 1 | |
| 251 | local c = 8 | |
| 252 | for i = 0,1,0.1 do | |
| 253 | wait() | |
| 254 | rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(-0.065, -0.142, -0.077) * CFrame.Angles(math.rad(71.448), 0, math.rad(-26.413)),i) | |
| 255 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.new(0.183, -0.23, -0.159) * CFrame.Angles(math.rad(71.448), math.rad(-0.401), math.rad(35.122)),i) | |
| 256 | relbow.C0 = relbow.C0:lerp(relbo*CFrame.Angles(0, 0, math.rad(-42.284)),i) | |
| 257 | lelbow.C0 = lelbow.C0:lerp(lelbo*CFrame.Angles(0, 0, math.rad(42.972)),i) | |
| 258 | end | |
| 259 | wait(.2) | |
| 260 | s10:Play() | |
| 261 | wait(.8) | |
| 262 | for i = 0,1,0.1 do | |
| 263 | wait() | |
| 264 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
| 265 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 266 | relbow.C0 = relbow.C0:lerp(relbo,i) | |
| 267 | lelbow.C0 = lelbow.C0:lerp(lelbo,i) | |
| 268 | end | |
| 269 | wait(.05) | |
| 270 | for i = 1,20 do | |
| 271 | local p = Instance.new('Part', workspace)
| |
| 272 | previ = p | |
| 273 | p.BrickColor = BrickColor.new('Burnt Sienna')
| |
| 274 | p.Material = 'Concrete' | |
| 275 | p.Anchored = true | |
| 276 | p.CanCollide = false | |
| 277 | p.Size = Vector3.new(2.79, 26.82, 2.88) | |
| 278 | p.Position = char.HumanoidRootPart.Position + char.HumanoidRootPart.CFrame.lookVector * a | |
| 279 | p.Position = p.Position + Vector3.new(0,-27,0) | |
| 280 | a = a + 5 | |
| 281 | for i = 1,8 do | |
| 282 | wait() | |
| 283 | p.Position = p.Position + Vector3.new(0,b,0) | |
| 284 | b = b + 1 | |
| 285 | end | |
| 286 | b = 1 | |
| 287 | p.Touched:connect(function(hit) | |
| 288 | if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' then | |
| 289 | targ = hit.Parent | |
| 290 | humtarg = targ:FindFirstChildOfClass'Humanoid' | |
| 291 | humtarg:TakeDamage(humtarg.MaxHealth/2/2) | |
| 292 | end | |
| 293 | end) | |
| 294 | end | |
| 295 | end | |
| 296 | ||
| 297 | function hands2() | |
| 298 | for i = 0,1,0.1 do | |
| 299 | wait() | |
| 300 | rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(-0.065, -0.142, -0.077) * CFrame.Angles(math.rad(71.448), 0, math.rad(-26.413)),i) | |
| 301 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.new(0.183, -0.23, -0.159) * CFrame.Angles(math.rad(71.448), math.rad(-0.401), math.rad(35.122)),i) | |
| 302 | relbow.C0 = relbow.C0:lerp(relbo*CFrame.Angles(0, 0, math.rad(-42.284)),i) | |
| 303 | lelbow.C0 = lelbow.C0:lerp(lelbo*CFrame.Angles(0, 0, math.rad(42.972)),i) | |
| 304 | end | |
| 305 | wait(.2) | |
| 306 | s10:Play() | |
| 307 | wait(.8) | |
| 308 | for i = 0,1,0.1 do | |
| 309 | wait() | |
| 310 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
| 311 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 312 | relbow.C0 = relbow.C0:lerp(relbo,i) | |
| 313 | lelbow.C0 = lelbow.C0:lerp(lelbo,i) | |
| 314 | end | |
| 315 | wait(.05) | |
| 316 | local num = 0 | |
| 317 | local model = Instance.new("Model")
| |
| 318 | model.Name = "Circle" | |
| 319 | model.Parent = char | |
| 320 | ||
| 321 | local part = Instance.new('Part')
| |
| 322 | part.Transparency = 1 | |
| 323 | part.CanCollide = false | |
| 324 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 325 | part.Position = root.Position + root.CFrame.lookVector * 22 | |
| 326 | ||
| 327 | local position = part.CFrame * CFrame.new(0,-27,0) --Set this to the center of your circle. | |
| 328 | local number = 70 --Change 10 to the number of sides you want your circle to have. The more bricks you have, the smoother the circle will be. | |
| 329 | local radius = 16 --Change 5 to the radius you want your circle to be. | |
| 330 | size = Vector3.new(1, 26, 2) --Set this to the size of each brick in your circle. | |
| 331 | ||
| 332 | for i=1, number do | |
| 333 | local part = Instance.new("Part")
| |
| 334 | game.Debris:AddItem(part,30) | |
| 335 | part.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 336 | part.Material = 'Concrete' | |
| 337 | part.formFactor = "Symmetric" | |
| 338 | part.Anchored = true | |
| 339 | part.CanCollide = true | |
| 340 | part.Parent = model | |
| 341 | part.Size = size | |
| 342 | local sine = math.sin((360/number + 360/number*i)/(180/math.pi)) | |
| 343 | local cosine = math.cos((360/number + 360/number*i)/(180/math.pi)) | |
| 344 | part.CFrame = position + Vector3.new(radius*sine, 0, radius*cosine) | |
| 345 | part.CFrame = part.CFrame*CFrame.fromEulerAnglesXYZ(0, (360/number + 360/number*i)/(180/math.pi), 0) | |
| 346 | end | |
| 347 | for _, a in pairs(model:children()) do | |
| 348 | if a:IsA('Part') then
| |
| 349 | for i = 1, 27 do | |
| 350 | coroutine.resume(coroutine.create(function() | |
| 351 | wait() | |
| 352 | a.CFrame = a.CFrame:lerp(a.CFrame*CFrame.new(0,12,0),.1) | |
| 353 | end)) | |
| 354 | end | |
| 355 | end | |
| 356 | end | |
| 357 | end | |
| 358 | ||
| 359 | function clear(a) | |
| 360 | for _, b in pairs(a:children()) do | |
| 361 | if b:IsA('Shirt') or b:IsA('Pants') then
| |
| 362 | b:Destroy() | |
| 363 | end | |
| 364 | end | |
| 365 | end | |
| 366 | ||
| 367 | function sp(a,b,c) | |
| 368 | local s = Instance.new('Shirt', a)
| |
| 369 | s.ShirtTemplate = b | |
| 370 | local p2 = Instance.new('Pants', a)
| |
| 371 | p2.PantsTemplate = c | |
| 372 | end | |
| 373 | ||
| 374 | function unisc() | |
| 375 | d = Instance.new('Part', char)
| |
| 376 | d.Transparency = 1 | |
| 377 | d.CanCollide = false | |
| 378 | d.Anchored = true | |
| 379 | d.CFrame = char:FindFirstChild'Ino'.HumanoidRootPart.CFrame | |
| 380 | c = d:Clone() | |
| 381 | c.Parent = char | |
| 382 | c.CFrame = char:FindFirstChild'Shikamaru'.HumanoidRootPart.CFrame | |
| 383 | wait(.6) | |
| 384 | smoke(d) | |
| 385 | smoke(c) | |
| 386 | char:FindFirstChild'Shikamaru':Destroy() | |
| 387 | char:FindFirstChild'Ino':Destroy() | |
| 388 | end | |
| 389 | ||
| 390 | function isc() | |
| 391 | p1.Transparency = 1 | |
| 392 | p.Transparency = 1 | |
| 393 | ||
| 394 | local ino = char:Clone() | |
| 395 | local shika = char:Clone() | |
| 396 | ||
| 397 | p1.Transparency = 0 | |
| 398 | p.Transparency = 0 | |
| 399 | ||
| 400 | ino.Name = "Ino" | |
| 401 | shika.Name = "Shikamaru" | |
| 402 | ||
| 403 | clear(ino) | |
| 404 | clear(shika) | |
| 405 | ||
| 406 | sp(ino,"http://www.roblox.com/asset/?id=45739375","http://www.roblox.com/asset/?id=45739424") | |
| 407 | sp(shika,"rbxassetid://398113258","rbxassetid://398113725") | |
| 408 | ||
| 409 | local p1 = Instance.new('Part', shika)
| |
| 410 | p1.Anchored = false | |
| 411 | p1.CanCollide = false | |
| 412 | p1.BrickColor = BrickColor.new('Rust')
| |
| 413 | local w = Instance.new('Weld', p1)
| |
| 414 | w.Part0 = p1 | |
| 415 | w.Part1 = shika:FindFirstChild'Head' | |
| 416 | w.C0 = CFrame.new(0,-0.25,0.499) * CFrame.Angles(rad(0),rad(180),rad(0)) | |
| 417 | local m1 = Instance.new('SpecialMesh', p1)
| |
| 418 | m1.MeshId = "rbxassetid://524467395" | |
| 419 | m1.TextureId = "rbxassetid://524467404" | |
| 420 | m1.Scale = Vector3.new(0.065,0.065,0.065) | |
| 421 | ||
| 422 | local p1 = Instance.new('Part', ino)
| |
| 423 | p1.Anchored = false | |
| 424 | p1.CanCollide = false | |
| 425 | p1.BrickColor = BrickColor.new('Rust')
| |
| 426 | local w = Instance.new('Weld', p1)
| |
| 427 | w.Part0 = p1 | |
| 428 | w.Part1 = ino:FindFirstChild'Head' | |
| 429 | w.C0 = CFrame.new(0,1.8,.399) * CFrame.Angles(rad(0),rad(180),rad(0)) | |
| 430 | local m1 = Instance.new('SpecialMesh', p1)
| |
| 431 | m1.MeshId = "rbxassetid://521487839" | |
| 432 | m1.TextureId = "rbxassetid://521963117" | |
| 433 | m1.Scale = Vector3.new(0.075,0.07,0.07) | |
| 434 | ||
| 435 | ino.Parent = char | |
| 436 | shika.Parent = char | |
| 437 | ||
| 438 | ino.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(5,0,0) | |
| 439 | shika.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(-5,0,-0) | |
| 440 | ||
| 441 | smoke(ino.HumanoidRootPart) | |
| 442 | smoke(shika.HumanoidRootPart) | |
| 443 | end | |
| 444 | ||
| 445 | function redp() | |
| 446 | for i = 0,1,0.1 do | |
| 447 | wait() | |
| 448 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(0, 0, math.rad(20.512)),i) | |
| 449 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-33.976), math.rad(44.118), math.rad(25.096)),i) | |
| 450 | end | |
| 451 | local p = Instance.new('Part', lshold.Parent)
| |
| 452 | game:service'Debris':AddItem(p,3.5) | |
| 453 | p.Anchored = false | |
| 454 | p.CanCollide = false | |
| 455 | p.BrickColor = BrickColor.new('Really red')
| |
| 456 | p.Size = Vector3.new(0.2,0.2,0.2) | |
| 457 | p.Shape = "Ball" | |
| 458 | local w = Instance.new('Weld', p)
| |
| 459 | w.Part0 = p | |
| 460 | w.Part1 = char:FindFirstChild('LeftHand')
| |
| 461 | w.C0 = CFrame.new(-0.6, 0, 0) | |
| 462 | end | |
| 463 | ||
| 464 | function eat() | |
| 465 | redp() | |
| 466 | wait(.7) | |
| 467 | for i = 0,1,0.1 do | |
| 468 | wait() | |
| 469 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(48.128), 0, 0),i) | |
| 470 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-20.913), math.rad(27.903), math.rad(10.141)),i) | |
| 471 | end | |
| 472 | wait(1.5) | |
| 473 | for i = 0,1,0.1 do | |
| 474 | wait() | |
| 475 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(95.627), math.rad(19.481), math.rad(52.426)),i) | |
| 476 | end | |
| 477 | wait(.9) | |
| 478 | for i = 0,1,0.1 do | |
| 479 | wait() | |
| 480 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 481 | neck.C0 = neck.C0:lerp(nec,i) | |
| 482 | end | |
| 483 | end | |
| 484 | ||
| 485 | function unwing() | |
| 486 | vol1 = 6 | |
| 487 | vol2 = 3 | |
| 488 | parts = 30 | |
| 489 | damage = 50 | |
| 490 | size = Vector3.new(27.67, 0.05, 25.43) | |
| 491 | hum.WalkSpeed = 16 | |
| 492 | hum.JumpPower = 50 | |
| 493 | ||
| 494 | for i = 0,2 do | |
| 495 | s3.Volume = s3.Volume - 0.1 | |
| 496 | wait() | |
| 497 | end | |
| 498 | s3:Stop() | |
| 499 | ||
| 500 | for i = 1,8 do | |
| 501 | wait() | |
| 502 | for _, a in pairs(char:FindFirstChild'UpperTorso':children()) do | |
| 503 | if a.Name == "WingLeft" or a.Name == "WingRight" then | |
| 504 | a.Transparency = a.Transparency + 0.05 | |
| 505 | end | |
| 506 | end | |
| 507 | end | |
| 508 | for _, a in pairs(char:FindFirstChild'UpperTorso':children()) do | |
| 509 | if a.Name == "WingLeft" or a.Name == "WingRight" then | |
| 510 | a:Destroy() | |
| 511 | end | |
| 512 | end | |
| 513 | end | |
| 514 | ||
| 515 | function wing() | |
| 516 | vol1 = 10 | |
| 517 | vol2 = 7 | |
| 518 | parts = 75 | |
| 519 | damage = 100 | |
| 520 | size = Vector3.new(55, 0.05, 55) | |
| 521 | hum.WalkSpeed = 45 | |
| 522 | hum.JumpPower = 100 | |
| 523 | ||
| 524 | local p1 = Instance.new('Part', char.UpperTorso) -- Left
| |
| 525 | p1.Anchored = false | |
| 526 | p1.Name = "WingLeft" | |
| 527 | p1.CanCollide = false | |
| 528 | p1.Transparency = 1 | |
| 529 | local w = Instance.new('Weld', p1)
| |
| 530 | w.Part0 = p1 | |
| 531 | w.Part1 = char:FindFirstChild'UpperTorso' | |
| 532 | w.C0 = CFrame.new(7, -3, 0) * CFrame.Angles(rad(0),rad(35),rad(0)) | |
| 533 | local m = Instance.new('SpecialMesh', p1)
| |
| 534 | m.MeshId = "http://www.roblox.com/asset/?id=92135524" | |
| 535 | m.TextureId = "http://www.roblox.com/asset/?id=101072441" | |
| 536 | m.Scale = Vector3.new(3, 3, 3) | |
| 537 | ||
| 538 | local p = Instance.new('Part', char.UpperTorso) -- Right
| |
| 539 | p.Anchored = false | |
| 540 | p.CanCollide = false | |
| 541 | p.Name = "WingRight" | |
| 542 | p.Transparency = 1 | |
| 543 | local w = Instance.new('Weld', p)
| |
| 544 | w.Part0 = p | |
| 545 | w.Part1 = char:FindFirstChild'UpperTorso' | |
| 546 | w.C0 = CFrame.new(-7, -3, 0) | |
| 547 | local m = Instance.new('SpecialMesh', p)
| |
| 548 | m.MeshId = "http://www.roblox.com/asset/?id=92135508" | |
| 549 | m.TextureId = "http://www.roblox.com/asset/?id=101072441" | |
| 550 | m.Scale = Vector3.new(3, 3, 3) | |
| 551 | ||
| 552 | s3:Play() | |
| 553 | s3.Volume = 0 | |
| 554 | ||
| 555 | for i = 1,15 do | |
| 556 | wait() | |
| 557 | s3.Volume = s3.Volume + 0.1 | |
| 558 | end | |
| 559 | ||
| 560 | for i = 1,8 do | |
| 561 | wait() | |
| 562 | p1.Transparency = p1.Transparency - 0.05 | |
| 563 | p.Transparency = p.Transparency - 0.05 | |
| 564 | end | |
| 565 | end | |
| 566 | ||
| 567 | function debris(a, b, c) | |
| 568 | for j = 1, c do | |
| 569 | local pr = Instance.new("Part")
| |
| 570 | pr.Name = "" | |
| 571 | pr.Anchored = true | |
| 572 | pr.BrickColor = b.BrickColor | |
| 573 | pr.CanCollide = true | |
| 574 | pr.Material = b.Material | |
| 575 | pr.Transparency = b.Transparency | |
| 576 | pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24)) | |
| 577 | pr.CFrame = a * CFrame.Angles(0, math.rad(c * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1))) | |
| 578 | pr.Parent = workspace | |
| 579 | game.Debris:AddItem(pr, 15) | |
| 580 | end | |
| 581 | end | |
| 582 | ||
| 583 | function hit(b) | |
| 584 | for _,v in pairs(workspace:children()) do | |
| 585 | if v:IsA('Model') and v.Name ~= plr.Name and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
| |
| 586 | if (v.HumanoidRootPart.Position-char:FindFirstChild('HumanoidRootPart').Position).magnitude <=b then
| |
| 587 | v:FindFirstChildOfClass'Humanoid':TakeDamage(v:FindFirstChildOfClass'Humanoid'.MaxHealth/2) | |
| 588 | end | |
| 589 | end | |
| 590 | end | |
| 591 | end | |
| 592 | ||
| 593 | function punchh() | |
| 594 | for i = 0,1,0.2 do | |
| 595 | wait() | |
| 596 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(85.142), 0, 0),i) | |
| 597 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(92.876), math.rad(-13.808), math.rad(29.507)),i) | |
| 598 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-11.345), math.rad(-16.215), math.rad(-3.209)),i) | |
| 599 | end | |
| 600 | wait(.05) | |
| 601 | for i = 0,1,0.1 do | |
| 602 | wait() | |
| 603 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 604 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 605 | neck.C0 = neck.C0:lerp(nec,i) | |
| 606 | end | |
| 607 | end | |
| 608 | ||
| 609 | function fx() | |
| 610 | local part = Instance.new("Part", workspace)
| |
| 611 | part.BrickColor = color | |
| 612 | part.Transparency = 0.2 | |
| 613 | part.CFrame = CFrame.new(-66, 12.0000153, 80.3000031, -1, -0, -0, -0, -0, -1, -0, -1, -0) | |
| 614 | part.Anchored = true | |
| 615 | part.CanCollide = false | |
| 616 | part.BrickColor = step.BrickColor | |
| 617 | part.Material = step.Material | |
| 618 | part.FormFactor = Enum.FormFactor. Symmetric | |
| 619 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 620 | part.CFrame = char.HumanoidRootPart.CFrame * CFrame.Angles(math.rad(90),math.rad(180),math.rad(90)) | |
| 621 | part.BottomSurface = Enum.SurfaceType.Smooth | |
| 622 | part.TopSurface = Enum.SurfaceType.Smooth | |
| 623 | local pa = part:Clone() | |
| 624 | pa.CFrame = char:FindFirstChild'HumanoidRootPart'.CFrame * CFrame.new(0,-2.5,0) | |
| 625 | pa.Parent = workspace | |
| 626 | pa.Size = size | |
| 627 | pa.Transparency = 1 | |
| 628 | pa.CanCollide = false | |
| 629 | game.Debris:AddItem(pa, 20) | |
| 630 | local dec = Instance.new('Decal', pa)
| |
| 631 | dec.Texture = "http://www.roblox.com/asset/?id=483309292" | |
| 632 | dec.Face = "Top" | |
| 633 | local b1 = Instance.new("SpecialMesh", part)
| |
| 634 | b1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 635 | b1.TextureId = "" | |
| 636 | b1.MeshType = Enum.MeshType.FileMesh | |
| 637 | b1.Name = "Mesh" | |
| 638 | b1.Scale = Vector3.new(0.2, 0.2, 0.2) | |
| 639 | s1:Play() | |
| 640 | debris(char:FindFirstChild('HumanoidRootPart').CFrame,step,parts)
| |
| 641 | hit(damage) | |
| 642 | for i=0,30,1 do | |
| 643 | wait() | |
| 644 | b1.Scale = b1.Scale + Vector3.new(size,size,size) | |
| 645 | part.Transparency = part.Transparency + 0.05 | |
| 646 | end | |
| 647 | end | |
| 648 | ||
| 649 | function smoke(a) | |
| 650 | coroutine.resume(coroutine.create(function() | |
| 651 | s15:Play() | |
| 652 | local pe = Instance.new("ParticleEmitter", a)
| |
| 653 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 654 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 655 | pe.Rate = 20000 | |
| 656 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 657 | pe.Rotation = NumberRange.new(0, 360) | |
| 658 | pe.Size = NumberSequence.new({
| |
| 659 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 660 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 661 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 662 | }) | |
| 663 | pe.Texture = "rbxassetid://244221440" | |
| 664 | pe.Transparency = NumberSequence.new({
| |
| 665 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 666 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 667 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 668 | }) | |
| 669 | pe.ZOffset = 5 | |
| 670 | pe.VelocitySpread = 360 | |
| 671 | pe.Enabled = true | |
| 672 | wait(.2) | |
| 673 | pe.Enabled = false | |
| 674 | end)) | |
| 675 | end | |
| 676 | ||
| 677 | function transform(a) | |
| 678 | if a == true then | |
| 679 | p1.BrickColor = BrickColor.new('Institutional white')
| |
| 680 | p.Transparency = 1 | |
| 681 | p2.PantsTemplate = "http://www.roblox.com/asset/?id=44382868" | |
| 682 | s.ShirtTemplate = "http://www.roblox.com/asset/?id=44382849" | |
| 683 | smoke(char.HumanoidRootPart) | |
| 684 | elseif a == false then | |
| 685 | p1.BrickColor = BrickColor.new('Rust')
| |
| 686 | p.Transparency = 0 | |
| 687 | p2.PantsTemplate = "rbxassetid://56461131" | |
| 688 | s.ShirtTemplate = "rbxassetid://274369116" | |
| 689 | smoke(char.HumanoidRootPart) | |
| 690 | end | |
| 691 | end | |
| 692 | ||
| 693 | function chips() | |
| 694 | for i = 0,1,0.1 do | |
| 695 | wait() | |
| 696 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(0, 0, math.rad(20.512)),i) | |
| 697 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-33.976), math.rad(44.118), math.rad(25.096)),i) | |
| 698 | end | |
| 699 | wait(1.2) | |
| 700 | local p = Instance.new('Part', lshold.Parent)
| |
| 701 | chipmesh = p | |
| 702 | p.Anchored = false | |
| 703 | p.CanCollide = false | |
| 704 | p.Size = Vector3.new(0.2,0.2,0.2) | |
| 705 | local m = Instance.new('SpecialMesh', p)
| |
| 706 | m.MeshId = "http://www.roblox.com/asset/?id=19106014" | |
| 707 | m.TextureId = "http://www.roblox.com/asset/?id=342436716" | |
| 708 | local w = Instance.new('Weld', p)
| |
| 709 | w.Part0 = p | |
| 710 | w.Part1 = char:FindFirstChild('LeftHand')
| |
| 711 | w.C0 = CFrame.new(0,1,0) | |
| 712 | s9:Play() | |
| 713 | for i = 0,1,0.1 do | |
| 714 | wait() | |
| 715 | neck.C0 = neck.C0:lerp(nec,i) | |
| 716 | rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(65.718), math.rad(0.802), math.rad(-33.174)),i) | |
| 717 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(55.978), 0, 0),i) | |
| 718 | relbow.C0 = relbow.C0:lerp(relbo*CFrame.Angles(math.rad(7.391), math.rad(-3.266), math.rad(-23.606)),i) | |
| 719 | lelbow.C0 = lelbow.C0:lerp(lelbo*CFrame.Angles(0, 0, math.rad(56.322)),i) | |
| 720 | end | |
| 721 | end | |
| 722 | ||
| 723 | function nochips() | |
| 724 | chipmesh:FindFirstChildOfClass'Weld':Destroy() | |
| 725 | chipmesh.Anchored = false | |
| 726 | chipmesh.CanCollide = true | |
| 727 | for i = 0,1,0.1 do | |
| 728 | wait() | |
| 729 | neck.C0 = neck.C0:lerp(nec,i) | |
| 730 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
| 731 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
| 732 | relbow.C0 = relbow.C0:lerp(relbo,i) | |
| 733 | lelbow.C0 = lelbow.C0:lerp(lelbo,i) | |
| 734 | end | |
| 735 | end | |
| 736 | ||
| 737 | function spike() | |
| 738 | for _, a in pairs(char:children()) do | |
| 739 | if a:IsA('BasePart') and a.Name ~= "HumanoidRootPart" then
| |
| 740 | a.Transparency = 1 | |
| 741 | end | |
| 742 | end | |
| 743 | for _, a in pairs(char:children()) do | |
| 744 | if a:IsA('Accessory') and a.Name ~= "HumanoidRootPart" then
| |
| 745 | a.Handle.Transparency = 1 | |
| 746 | end | |
| 747 | end | |
| 748 | hum.WalkSpeed = 85 | |
| 749 | hum.JumpPower = 85 | |
| 750 | local p = Instance.new('Part', char)
| |
| 751 | p.Anchored = true | |
| 752 | p.Name = "SpikeBall" | |
| 753 | p.CanCollide = false | |
| 754 | p.Size = Vector3.new(0.05,0.05,0.05) | |
| 755 | local w = Instance.new('Weld', p)
| |
| 756 | w.Part0 = p | |
| 757 | w.Part1 = char:FindFirstChild'HumanoidRootPart' | |
| 758 | w.C0 = CFrame.new(0, 0, 0) | |
| 759 | local m = Instance.new('SpecialMesh', p)
| |
| 760 | m.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
| 761 | m.TextureId = "http://www.roblox.com/asset/?id=31538635" | |
| 762 | m.Scale = Vector3.new(17,17,17) | |
| 763 | hum.HipHeight = 6 | |
| 764 | end | |
| 765 | ||
| 766 | function leg() | |
| 767 | legslam = true | |
| 768 | for i = 0,1,0.1 do | |
| 769 | wait() | |
| 770 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(rad(12), 0, 0),i) | |
| 771 | lleg.C0 = lleg.C0:lerp(lle*CFrame.new(0, 0.57, -0.725) * CFrame.Angles(math.rad(11.23), 0, 0),i) | |
| 772 | end | |
| 773 | wait(.7) | |
| 774 | for i = 0,1,0.1 do | |
| 775 | wait() | |
| 776 | neck.C0 = neck.C0:lerp(nec*CFrame.Angles(math.rad(-20), 0, 0),i) | |
| 777 | lleg.C0 = lleg.C0:lerp(lle*CFrame.new(0, -0.134, -0.71),i) | |
| 778 | end | |
| 779 | fx() | |
| 780 | for i = 0,1,0.1 do | |
| 781 | wait() | |
| 782 | neck.C0 = neck.C0:lerp(nec,i) | |
| 783 | lleg.C0 = lleg.C0:lerp(lle,i) | |
| 784 | end | |
| 785 | legslam = false | |
| 786 | end | |
| 787 | ||
| 788 | --// Touched functions | |
| 789 | ||
| 790 | char:FindFirstChild('LeftFoot').Touched:connect(function(hit)
| |
| 791 | if hit:IsA('Part') and hit.Parent.Name ~= plr.Name then
| |
| 792 | step = hit | |
| 793 | end | |
| 794 | end) | |
| 795 | ||
| 796 | char:FindFirstChild('LeftHand').Touched:connect(function(hit)
| |
| 797 | if hit.Parent and punch and hit.Parent:FindFirstChildOfClass'Humanoid' then | |
| 798 | local targ = hit.Parent | |
| 799 | punch = false | |
| 800 | s2:Play() | |
| 801 | targ:FindFirstChildOfClass'Humanoid':TakeDamage(targ:FindFirstChildOfClass'Humanoid'.MaxHealth/2) | |
| 802 | end | |
| 803 | end) | |
| 804 | ||
| 805 | --// Buttons | |
| 806 | ||
| 807 | mouse.KeyDown:connect(function(k) | |
| 808 | if sat == false and k == "q" and cooldown then | |
| 809 | legslam = true | |
| 810 | cooldown = false | |
| 811 | leg() | |
| 812 | cooldown = true | |
| 813 | legslam = false | |
| 814 | end | |
| 815 | if sat == false and k == "z" and cooldown then | |
| 816 | cooldown = false | |
| 817 | signs = true | |
| 818 | hands2() | |
| 819 | signs = false | |
| 820 | cooldown = true | |
| 821 | end | |
| 822 | if sat == false and k == "g" and cooldown then | |
| 823 | cooldown = false | |
| 824 | signs = true | |
| 825 | hands() | |
| 826 | signs = false | |
| 827 | cooldown = true | |
| 828 | end | |
| 829 | if sat == false and k == "e" and chip == false and cooldown then | |
| 830 | cooldown = false | |
| 831 | punch = true | |
| 832 | punchh() | |
| 833 | cooldown = true | |
| 834 | punch = false | |
| 835 | end | |
| 836 | if sat == false and k == "v" and chip == false and cooldown then | |
| 837 | if asdasd == false then | |
| 838 | cooldown = false | |
| 839 | asdasd = true | |
| 840 | isc() | |
| 841 | cooldown = true | |
| 842 | elseif asdasd == true and cooldown and chip == false and sat == false then | |
| 843 | asdasd = false | |
| 844 | cooldown = false | |
| 845 | unisc() | |
| 846 | cooldown = true | |
| 847 | end | |
| 848 | end | |
| 849 | if k == "f" and float == false and cooldown then | |
| 850 | if chip == false then | |
| 851 | chip = true | |
| 852 | cooldown = false | |
| 853 | chips() | |
| 854 | cooldown = true | |
| 855 | elseif chip and cooldown then | |
| 856 | cooldown = false | |
| 857 | nochips() | |
| 858 | chip = false | |
| 859 | cooldown = true | |
| 860 | end | |
| 861 | end | |
| 862 | if sat == false and k == "r" and chip == false and cooldown then | |
| 863 | if butf == false then | |
| 864 | wings = true | |
| 865 | cooldown = false | |
| 866 | butf = true | |
| 867 | eat() | |
| 868 | wait(.5) | |
| 869 | wing() | |
| 870 | float = true | |
| 871 | wings = false | |
| 872 | cooldown = true | |
| 873 | elseif butf == true and cooldown then | |
| 874 | cooldown = false | |
| 875 | butf = false | |
| 876 | unwing() | |
| 877 | float = false | |
| 878 | cooldown = true | |
| 879 | end | |
| 880 | end | |
| 881 | if k == "c" and chip == false and cooldown then | |
| 882 | if sat == false then | |
| 883 | cooldown = false | |
| 884 | sat = true | |
| 885 | sit() | |
| 886 | cooldown = true | |
| 887 | elseif sat == true and cooldown then | |
| 888 | sat = false | |
| 889 | cooldown = false | |
| 890 | stand() | |
| 891 | cooldown = true | |
| 892 | end | |
| 893 | end | |
| 894 | end) | |
| 895 | ||
| 896 | --// Left click | |
| 897 | ||
| 898 | mouse.Button1Down:connect(function() | |
| 899 | if chip and cooldown then | |
| 900 | cooldown=false | |
| 901 | hum.WalkSpeed = 0 | |
| 902 | chipmesh:FindFirstChildOfClass'Weld':Destroy() | |
| 903 | chipmesh.Anchored = true | |
| 904 | chipmesh.CFrame = char:FindFirstChild'LeftHand'.CFrame * CFrame.new(0,-1,0) | |
| 905 | local p = Instance.new('Part', lshold.Parent)
| |
| 906 | p.Anchored = false | |
| 907 | p.CanCollide = false | |
| 908 | p.BrickColor = BrickColor.new('Cool yellow')
| |
| 909 | p.Size = Vector3.new(0.2,0.2,0.2) | |
| 910 | local m = Instance.new('SpecialMesh', p)
| |
| 911 | m.MeshId = "http://www.roblox.com/asset/?id=20939848" | |
| 912 | m.TextureId = "" | |
| 913 | m.Scale = Vector3.new(0.2, 0.2, 0.2) | |
| 914 | local w = Instance.new('Weld', p)
| |
| 915 | w.Part0 = p | |
| 916 | w.Part1 = char:FindFirstChild('LeftHand')
| |
| 917 | w.C0 = CFrame.new(0,.5,0) | |
| 918 | for i = 0,1,0.1 do | |
| 919 | wait() | |
| 920 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(95.627), math.rad(19.481), math.rad(52.426)),i) | |
| 921 | end | |
| 922 | wait(.005) | |
| 923 | s4:Play() | |
| 924 | p:Destroy() | |
| 925 | for i = 0,1,0.1 do | |
| 926 | wait() | |
| 927 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(55.978), 0, 0),i) | |
| 928 | end | |
| 929 | local w = Instance.new('Weld', chipmesh)
| |
| 930 | w.Part0 = chipmesh | |
| 931 | w.Part1 = char:FindFirstChild('LeftHand')
| |
| 932 | w.C0 = CFrame.new(0,1,0) | |
| 933 | chipmesh.Anchored = false | |
| 934 | if sat == false then | |
| 935 | hum.WalkSpeed = 16 | |
| 936 | elseif sat == true then | |
| 937 | hum.WalkSpeed = 0 | |
| 938 | end | |
| 939 | cooldown = true | |
| 940 | end | |
| 941 | end) | |
| 942 | ||
| 943 | --// Anti Laser | |
| 944 | ||
| 945 | for _, a in pairs(game:service'Players':players()) do | |
| 946 | a.Backpack.ChildAdded:connect(function(p) | |
| 947 | if p:IsA('Tool') and p:FindFirstChildOfClass'Part' and p:FindFirstChildOfClass'LocalScript' then
| |
| 948 | p:Destroy() | |
| 949 | end | |
| 950 | end) | |
| 951 | end | |
| 952 | ||
| 953 | --// Loops | |
| 954 | ||
| 955 | a = 0 | |
| 956 | b = 0 | |
| 957 | c = 30 | |
| 958 | d = -30 | |
| 959 | ||
| 960 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 961 | b = b + 8 | |
| 962 | hum.PlatformStand = false | |
| 963 | if char.UpperTorso:FindFirstChild('WingLeft') then
| |
| 964 | char.UpperTorso.WingLeft.Weld.C0 = CFrame.new(8, -3, 0) * CFrame.Angles(rad(0),rad(a),rad(0)) | |
| 965 | char.UpperTorso.WingRight.Weld.C0 = CFrame.new(-8, -3, 0) * CFrame.Angles(rad(0),rad(-a),rad(0)) | |
| 966 | end | |
| 967 | if char:FindFirstChild('SpikeBall') then
| |
| 968 | char.SpikeBall.CFrame = char.HumanoidRootPart.CFrame | |
| 969 | char.SpikeBall.Rotation = Vector3.new(b,b,b) | |
| 970 | end | |
| 971 | if spikek then | |
| 972 | hit(10) | |
| 973 | local part = Instance.new('Part', workspace)
| |
| 974 | part.Name = "ground" | |
| 975 | part.BrickColor = step.BrickColor | |
| 976 | part.Material = step.Material | |
| 977 | part.Anchored = true | |
| 978 | part.Size = Vector3.new(7.31, 1, 13.74) | |
| 979 | part.CanCollide = false | |
| 980 | part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,-6.7,0) | |
| 981 | game.Debris:AddItem(part,0.5) | |
| 982 | end | |
| 983 | end) | |
| 984 | ||
| 985 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 986 | sine = change+sine | |
| 987 | ang = ang+0.08 | |
| 988 | ang2 = ang2+0.01 | |
| 989 | rad = math.rad | |
| 990 | sin = math.sin | |
| 991 | arm = arm + 0.06 | |
| 992 | ||
| 993 | if sat == false and signs == false and chip == false and jumping == false and float == true and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 994 | lleg.C0 = lleg.C0:lerp(lle * CFrame.Angles(-1, 0, 0), 0.1) | |
| 995 | rleg.C0 = rleg.C0:lerp(rle * CFrame.Angles(-1, 0, 0), 0.1) | |
| 996 | lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(0, 0, math.rad(-13.579)), 0.1) | |
| 997 | rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(0, 0, math.rad(15.355)), 0.1) | |
| 998 | end | |
| 999 | ||
| 1000 | if sat == false and jumping == false and float == false and punch == false and legslam == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1001 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.53,-0.15+0.1*-math.cos(tick()*4),0.2*math.sin(tick()*4))*CFrame.Angles(math.rad(25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0) | |
| 1002 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.53,-0.15+0.1*math.cos(tick()*4),0.2*-math.sin(tick()*4))*CFrame.Angles(math.rad(25*math.sin(tick()*8)), rad(10), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0) | |
| 1003 | ||
| 1004 | lleg.C0 = lleg.C0:lerp(lle * CFrame.Angles(-0.4, 0, 0), 0.1) | |
| 1005 | rleg.C0 = rleg.C0:lerp(rle * CFrame.Angles(0.4, 0, 0), 0.1) | |
| 1006 | ||
| 1007 | elseif sat == false and jumping == false and float == false and legslam == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude < 2 then | |
| 1008 | lleg.C0 = lleg.C0:lerp(lle,0.1) | |
| 1009 | rleg.C0 = rleg.C0:lerp(rle,0.1) | |
| 1010 | end | |
| 1011 | ||
| 1012 | if sat == false and signs == false and chip == false and jumping == false and float == false and punch == false and legslam == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1013 | lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(-25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(0.1, 0, 0) | |
| 1014 | rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(0.1, 0, 0) | |
| 1015 | ||
| 1016 | lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(0, 0, math.rad(-13.579)), 0.1) | |
| 1017 | rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(0, 0, math.rad(15.355)), 0.1) | |
| 1018 | end | |
| 1019 | ||
| 1020 | if sat == false and signs == false and chip == false and legslam == false and wings == false and punch == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude < 2 then | |
| 1021 | lshold.C0 = lshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lsho * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1022 | rshold.C0 = rshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rsho * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1023 | neck.C0 = neck.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * nec * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1024 | lleg.C0 = lleg.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lle * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1025 | rleg.C0 = rleg.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rle * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1026 | waist.C0 = waist.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * wais * CFrame.Angles(-0.1, 0, 0), 0.1) | |
| 1027 | end | |
| 1028 | ||
| 1029 | if hum:GetState() == Enum.HumanoidStateType.Jumping then | |
| 1030 | lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(0, 0, math.rad(-13.579)), 0.1) | |
| 1031 | rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(0, 0, math.rad(15.355)), 0.1) | |
| 1032 | end | |
| 1033 | end) | |
| 1034 | ||
| 1035 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1036 | if step.Material == Enum.Material.Grass then | |
| 1037 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1038 | s5:Resume() | |
| 1039 | else | |
| 1040 | s5:Stop() | |
| 1041 | end | |
| 1042 | end | |
| 1043 | end) | |
| 1044 | ||
| 1045 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1046 | if step.Material == Enum.Material.Wood or step.Material == Enum.Material.WoodPlanks or step.Material == Enum.Material.Neon or step.Material == Enum.Material.Plastic or step.Material == Enum.Material.SmoothPlastic then | |
| 1047 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1048 | s6:Resume() | |
| 1049 | else | |
| 1050 | s6:Stop() | |
| 1051 | end | |
| 1052 | end | |
| 1053 | end) | |
| 1054 | ||
| 1055 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1056 | if step.Material == Enum.Material.Sand then | |
| 1057 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1058 | s7:Resume() | |
| 1059 | else | |
| 1060 | s7:Stop() | |
| 1061 | end | |
| 1062 | end | |
| 1063 | end) | |
| 1064 | ||
| 1065 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1066 | if step.Material == Enum.Material.Ice then | |
| 1067 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1068 | s8:Resume() | |
| 1069 | else | |
| 1070 | s8:Stop() | |
| 1071 | end | |
| 1072 | end | |
| 1073 | end) | |
| 1074 | ||
| 1075 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1076 | if step.Material == Enum.Material.Metal or step.Material == Enum.Material.DiamondPlate then | |
| 1077 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1078 | s12:Resume() | |
| 1079 | else | |
| 1080 | s12:Stop() | |
| 1081 | end | |
| 1082 | end | |
| 1083 | end) | |
| 1084 | ||
| 1085 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1086 | if step.Material == Enum.Material.Granite or step.Material == Enum.Material.Brick or step.Material == Enum.Material.CorrodedMetal or step.Material == Enum.Material.Concrete or step.Material == Enum.Material.Pebble or step.Material == Enum.Material.Marble or step.Material == Enum.Material.Cobblestone then | |
| 1087 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1088 | s13:Resume() | |
| 1089 | else | |
| 1090 | s13:Stop() | |
| 1091 | end | |
| 1092 | end | |
| 1093 | end) | |
| 1094 | ||
| 1095 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1096 | if step.Material == Enum.Material.Fabric then | |
| 1097 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then | |
| 1098 | s14:Resume() | |
| 1099 | else | |
| 1100 | s14:Stop() | |
| 1101 | end | |
| 1102 | end | |
| 1103 | end) | |
| 1104 | ||
| 1105 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1106 | if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude < 2 then | |
| 1107 | s8:Stop() | |
| 1108 | s7:Stop() | |
| 1109 | s6:Stop() | |
| 1110 | s5:Stop() | |
| 1111 | s12:Stop() | |
| 1112 | s13:Stop() | |
| 1113 | end | |
| 1114 | end) | |
| 1115 | ||
| 1116 | while wait() do | |
| 1117 | s1.Volume = vol1 | |
| 1118 | s2.Volume = vol2 | |
| 1119 | for i = 1,12 do | |
| 1120 | wait() | |
| 1121 | a = a + 2 | |
| 1122 | end | |
| 1123 | for i = 1,12 do | |
| 1124 | wait() | |
| 1125 | a = a - 2 | |
| 1126 | end | |
| 1127 | end |