SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --void Script bbuilder fe script converter V2 |
| 1 | + | |
| 2 | local Character = Player.Character | |
| 3 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 3 | + | |
| 4 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 4 | + | |
| 5 | - | local RealPlayer = Player |
| 5 | + | |
| 6 | - | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
|
| 6 | + | |
| 7 | local RightLeg = Character["Right Leg"] | |
| 8 | local Head = Character.Head | |
| 9 | local Torso = Character.Torso | |
| 10 | local Camera = game.Workspace.CurrentCamera | |
| 11 | local RootPart = Character.HumanoidRootPart | |
| 12 | local RootJoint = RootPart.RootJoint | |
| 13 | local attack = false | |
| 14 | local Pause = false | |
| 15 | local LOL = false | |
| 16 | local DD = false | |
| 17 | local Anim = 'Idle' | |
| 18 | local attacktype = 1 | |
| 19 | local delays = false | |
| 20 | local play = true | |
| 21 | local targetted = nil | |
| 22 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 23 | local velocity = RootPart.Velocity.y | |
| 24 | local sine = 0 | |
| 25 | local change = 1 | |
| 26 | local doe = 0 | |
| 27 | local Create = LoadLibrary("RbxUtility").Create
| |
| 28 | Humanoid.WalkSpeed = 25 | |
| 29 | ||
| 30 | Humanoid.Animator.Parent = nil | |
| 31 | Character.Animate.Parent = nil | |
| 32 | ||
| 33 | local newMotor = function(part0, part1, c0, c1) | |
| 34 | local w = Create('Motor'){
| |
| 35 | Parent = part0, | |
| 36 | Part0 = part0, | |
| 37 | Part1 = part1, | |
| 38 | C0 = c0, | |
| 39 | C1 = c1, | |
| 40 | } | |
| 41 | return w | |
| 42 | end | |
| 43 | function clerp(a, b, t) | |
| 44 | return a:lerp(b, t) | |
| 45 | end | |
| 46 | ||
| 47 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 48 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 49 | ||
| 50 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 51 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 52 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 53 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 54 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 55 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 56 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 57 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 58 | ||
| 59 | local rarmc1 = RW.C1 | |
| 60 | local larmc1 = LW.C1 | |
| 61 | local rlegc1 = RH.C1 | |
| 62 | local llegc1 = LH.C1 | |
| 63 | ||
| 64 | local resetc1 = false | |
| 65 | ||
| 66 | function PlayAnimationFromTable(table, speed, bool) | |
| 67 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 68 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 69 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 70 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 71 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 72 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 73 | if bool == true then | |
| 74 | if resetc1 == false then | |
| 75 | resetc1 = true | |
| 76 | RootJoint.C1 = RootJoint.C1 | |
| 77 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 78 | RW.C1 = rarmc1 | |
| 79 | LW.C1 = larmc1 | |
| 80 | RH.C1 = rlegc1 | |
| 81 | LH.C1 = llegc1 | |
| 82 | end | |
| 83 | end | |
| 84 | end | |
| 85 | ||
| 86 | ArtificialHB = Create("BindableEvent", script){
| |
| 87 | Parent = script, | |
| 88 | Name = "Heartbeat", | |
| 89 | } | |
| 90 | ||
| 91 | script:WaitForChild("Heartbeat")
| |
| 92 | ||
| 93 | frame = 1 / 30 | |
| 94 | tf = 0 | |
| 95 | allowframeloss = false | |
| 96 | tossremainder = false | |
| 97 | lastframe = tick() | |
| 98 | ||
| 99 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 100 | tf = tf + s | |
| 101 | if tf >= frame then | |
| 102 | if allowframeloss then | |
| 103 | script.Heartbeat:Fire() | |
| 104 | lastframe = tick() | |
| 105 | else | |
| 106 | for i = 1, math.floor(tf / frame) do | |
| 107 | script.Heartbeat:Fire() | |
| 108 | end | |
| 109 | lastframe = tick() | |
| 110 | end | |
| 111 | if tossremainder then | |
| 112 | tf = 0 | |
| 113 | else | |
| 114 | tf = tf - frame * math.floor(tf / frame) | |
| 115 | end | |
| 116 | end | |
| 117 | end) | |
| 118 | ||
| 119 | function swait(num) | |
| 120 | if num == 0 or num == nil then | |
| 121 | ArtificialHB.Event:wait() | |
| 122 | else | |
| 123 | for i = 0, num do | |
| 124 | ArtificialHB.Event:wait() | |
| 125 | end | |
| 126 | end | |
| 127 | end | |
| 128 | ||
| 129 | ||
| 130 | local DI = Instance.new("Part",Character)
| |
| 131 | DI.Size = Vector3.new(1,1,1) | |
| 132 | DI.CanCollide = false | |
| 133 | DI.TopSurface = 0 | |
| 134 | DI.BottomSurface = 0 | |
| 135 | DI.BrickColor = Torso.BrickColor | |
| 136 | local DI2 = Instance.new("SpecialMesh",DI)
| |
| 137 | DI2.MeshType = "Cylinder" | |
| 138 | DI2.Scale = Vector3.new(3.5,1,1) | |
| 139 | local DI3 = Instance.new("Weld",DI)
| |
| 140 | DI3.Part0 = Torso | |
| 141 | DI3.Part1 = DI | |
| 142 | DI3.C0 = CFrame.new(0,-0.2,-2)*CFrame.Angles(0,1.55,0.5) | |
| 143 | local BALL = Instance.new("Part",Character)
| |
| 144 | BALL.Size = Vector3.new(1,1,1) | |
| 145 | BALL.BrickColor = Torso.BrickColor | |
| 146 | BALL.TopSurface = 0 | |
| 147 | BALL.BottomSurface = 0 | |
| 148 | BALL.CanCollide = false | |
| 149 | local BALL2 = Instance.new("SpecialMesh",BALL)
| |
| 150 | BALL2.MeshType = "Sphere" | |
| 151 | BALL2.Scale = Vector3.new(1.3,1.3,1.3) | |
| 152 | local WW = Instance.new("Weld",BALL)
| |
| 153 | WW.Part0 = Torso | |
| 154 | WW.Part1 = BALL | |
| 155 | WW.C0 = CFrame.new(0.5,-1.4,-0.7) | |
| 156 | local BALL23 = Instance.new("Part",Character)
| |
| 157 | BALL23.Size = Vector3.new(1,1,1) | |
| 158 | BALL23.BrickColor = Torso.BrickColor | |
| 159 | BALL23.TopSurface = 0 | |
| 160 | BALL23.BottomSurface = 0 | |
| 161 | BALL23.CanCollide = false | |
| 162 | local BALL22 = Instance.new("SpecialMesh",BALL23)
| |
| 163 | BALL22.MeshType = "Sphere" | |
| 164 | BALL22.Scale = Vector3.new(1.3,1.3,1.3) | |
| 165 | local WW2 = Instance.new("Weld",BALL23)
| |
| 166 | WW2.Part0 = Torso | |
| 167 | WW2.Part1 = BALL23 | |
| 168 | WW2.C0 = CFrame.new(-0.5,-1.4,-0.7) | |
| 169 | local Tip = Instance.new("Part",Character)
| |
| 170 | Tip.Size = Vector3.new(1,1,1) | |
| 171 | Tip.BrickColor = BrickColor.new("Pink")
| |
| 172 | Tip.TopSurface = 0 | |
| 173 | Tip.BottomSurface = 0 | |
| 174 | Tip.CanCollide = false | |
| 175 | Tip.Name = "top" | |
| 176 | ||
| 177 | ||
| 178 | local BALL233 = Instance.new("SpecialMesh",Tip)
| |
| 179 | BALL233.MeshType = "Sphere" | |
| 180 | BALL233.Scale = Vector3.new(1.2,1.2,1.2) | |
| 181 | local WW33 = Instance.new("Weld",Tip)
| |
| 182 | WW33.Part0 = DI | |
| 183 | WW33.Part1 = Tip | |
| 184 | WW33.C0 = CFrame.new(1.7,0,0) | |
| 185 | ||
| 186 | ||
| 187 | ||
| 188 | local Lampo = Instance.new("Part", game.Workspace.Gustavo_Porto.top)
| |
| 189 | Lampo.Size = Vector3.new(0.3,0.3,0.3) | |
| 190 | Lampo.CanCollide = false | |
| 191 | Lampo.Transparency = 0 | |
| 192 | local meshlampo = Instance.new("SpecialMesh", Lampo)
| |
| 193 | meshlampo.MeshId = "http://www.roblox.com/asset/?id=1028713" | |
| 194 | meshlampo.TextureId = "http://www.roblox.com/asset/?id=493309692" | |
| 195 | meshlampo.Scale = Vector3.new(0.5,0.5,0.5) | |
| 196 | local weldsensor = Instance.new("Weld", Lampo)
| |
| 197 | weldsensor.Part0 = game.Workspace.Gustavo_Porto.top | |
| 198 | weldsensor.Part1 = Lampo | |
| 199 | weldsensor.C0 = weldsensor.C0 * CFrame.new(0,0.65,-0.15) * CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)) | |
| 200 | ||
| 201 | New = function(Object, Parent, Name, Data) | |
| 202 | local Object = Instance.new(Object) | |
| 203 | for Index, Value in pairs(Data or {}) do
| |
| 204 | Object[Index] = Value | |
| 205 | end | |
| 206 | Object.Parent = Parent | |
| 207 | Object.Name = Name | |
| 208 | return Object | |
| 209 | end | |
| 210 | function rayCast(Position, Direction, Range, Ignore) | |
| 211 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 212 | end | |
| 213 | ||
| 214 | function Hit() | |
| 215 | if not D then D = true | |
| 216 | Pause = true | |
| 217 | attack = false | |
| 218 | local Grab = Instance.new("Part",RightArm)
| |
| 219 | Grab.Size = Vector3.new(2.3,2.3,2.3) | |
| 220 | Grab.CanCollide = false | |
| 221 | Grab.BrickColor = BrickColor.new("Really black")
| |
| 222 | Grab.Transparency = math.huge | |
| 223 | local Grabo = Instance.new("Weld",Grab)
| |
| 224 | Grabo.Part0 = DI | |
| 225 | Grabo.Part1 = Grab | |
| 226 | Grabo.C0 = CFrame.new(1,0,0) | |
| 227 | local SFXZ = Instance.new("Sound",Torso)
| |
| 228 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 229 | SFXZ.Volume = 1 | |
| 230 | SFXZ.Pitch = 0.8 | |
| 231 | SFXZ.Looped = false | |
| 232 | wait(0.01) | |
| 233 | SFXZ:Play() | |
| 234 | Grab.Touched:connect(function(hit) | |
| 235 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then
| |
| 236 | Grab:remove() | |
| 237 | hit.Parent.Humanoid:TakeDamage(13) | |
| 238 | local SFXZ = Instance.new("Sound",Torso)
| |
| 239 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 240 | SFXZ.Volume = 1 | |
| 241 | SFXZ.Pitch = 0.8 | |
| 242 | SFXZ.Looped = false | |
| 243 | wait(0.01) | |
| 244 | SFXZ:Play() | |
| 245 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 246 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 247 | Fl.velocity = Torso.CFrame.lookVector*33 | |
| 248 | wait(0.05) | |
| 249 | Fl:remove() | |
| 250 | end | |
| 251 | end) | |
| 252 | for i = 0,1.2,0.1 do | |
| 253 | swait() | |
| 254 | PlayAnimationFromTable({
| |
| 255 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0), | |
| 256 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 257 | CFrame.new(0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,-1), | |
| 258 | CFrame.new(-0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,1), | |
| 259 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 260 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 261 | }, .5, false) | |
| 262 | DI3.C0 = clerp(DI3.C0,CFrame.new(-1,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,0.5,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 263 | end | |
| 264 | Grab:remove() | |
| 265 | Pause = false | |
| 266 | wait(0.1) | |
| 267 | D = false | |
| 268 | end | |
| 269 | end | |
| 270 | function Hit2() | |
| 271 | if not D then D = true | |
| 272 | Pause = true | |
| 273 | attack = false | |
| 274 | local Grab = Instance.new("Part",RightArm)
| |
| 275 | Grab.Size = Vector3.new(2.3,2.3,2.3) | |
| 276 | Grab.CanCollide = false | |
| 277 | Grab.BrickColor = BrickColor.new("Really black")
| |
| 278 | Grab.Transparency = math.huge | |
| 279 | local Grabo = Instance.new("Weld",Grab)
| |
| 280 | Grabo.Part0 = DI | |
| 281 | Grabo.Part1 = Grab | |
| 282 | Grabo.C0 = CFrame.new(1,0,0) | |
| 283 | local SFXZ = Instance.new("Sound",Torso)
| |
| 284 | SFXZ.SoundId = "rbxassetid://" | |
| 285 | SFXZ.Volume = 1 | |
| 286 | SFXZ.Pitch = 0.8 | |
| 287 | SFXZ.Looped = false | |
| 288 | wait(0.01) | |
| 289 | SFXZ:Play() | |
| 290 | Grab.Touched:connect(function(hit) | |
| 291 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then
| |
| 292 | Grab:remove() | |
| 293 | hit.Parent.Humanoid:TakeDamage(100) | |
| 294 | local SFXZ = Instance.new("Sound",Torso)
| |
| 295 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 296 | SFXZ.Volume = 1 | |
| 297 | SFXZ.Pitch = 0.8 | |
| 298 | SFXZ.Looped = false | |
| 299 | wait(0.01) | |
| 300 | SFXZ:Play() | |
| 301 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 302 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 303 | Fl.velocity = Torso.CFrame.lookVector*33 | |
| 304 | wait(0.05) | |
| 305 | Fl:remove() | |
| 306 | end | |
| 307 | end) | |
| 308 | for i = 0,1.2,0.1 do | |
| 309 | swait() | |
| 310 | PlayAnimationFromTable({
| |
| 311 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -0.5, 0), | |
| 312 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 313 | CFrame.new(0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,-1), | |
| 314 | CFrame.new(-0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,1), | |
| 315 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 316 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 317 | }, .5, false) | |
| 318 | DI3.C0 = clerp(DI3.C0,CFrame.new(1,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,-0.5,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 319 | end | |
| 320 | Grab:remove() | |
| 321 | Pause = false | |
| 322 | wait(0.1) | |
| 323 | D = false | |
| 324 | end | |
| 325 | end | |
| 326 | ||
| 327 | function JOFF() | |
| 328 | if not DD then DD = true | |
| 329 | Pause = true | |
| 330 | for i = 0,1.2,0.1 do | |
| 331 | swait() | |
| 332 | PlayAnimationFromTable({
| |
| 333 | CFrame.new(0,0,0) * CFrame.new(0,0,0)*CFrame.Angles(0,0,0), | |
| 334 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.5, 0, 0), | |
| 335 | CFrame.new(0.9,0,-1) * CFrame.new(0,0,0)*CFrame.Angles(0.5,1,0), | |
| 336 | CFrame.new(-0.7,0,0.4) * CFrame.new(0,0,0)*CFrame.Angles(0,0,1), | |
| 337 | CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.1), | |
| 338 | CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.1), | |
| 339 | }, .3, false) | |
| 340 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 341 | end | |
| 342 | game:GetService("Chat"):Chat(Head, "I cant hold it...")
| |
| 343 | wait(0.5) | |
| 344 | local SFXZ = Instance.new("Sound",Torso)
| |
| 345 | SFXZ.SoundId = "rbxassetid://517040733" | |
| 346 | SFXZ.Volume = math.huge | |
| 347 | SFXZ.Pitch = 1 | |
| 348 | SFXZ.Looped = false | |
| 349 | wait(0.01) | |
| 350 | SFXZ:Play() | |
| 351 | local partasdeff = Instance.new("ParticleEmitter",Tip)
| |
| 352 | partasdeff.Color = ColorSequence.new(Color3.new(244,244,244)) | |
| 353 | partasdeff.LightEmission = .1 | |
| 354 | partasdeff.Size = NumberSequence.new(0.2) | |
| 355 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=833874434" | |
| 356 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 357 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 358 | partasdeff.Transparency = bbb | |
| 359 | partasdeff.Size = aaa | |
| 360 | partasdeff.ZOffset = .9 | |
| 361 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 362 | partasdeff.LockedToPart = false | |
| 363 | partasdeff.EmissionDirection = "Right" | |
| 364 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 365 | partasdeff.Rate = 1000 | |
| 366 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 367 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 368 | partasdeff.Speed = NumberRange.new(10) | |
| 369 | partasdeff.VelocitySpread = 20 | |
| 370 | partasdeff.Enabled=true | |
| 371 | local PP = Instance.new("Part",Character)
| |
| 372 | PP.Size = Vector3.new(9,1,1) | |
| 373 | PP.CanCollide = false | |
| 374 | PP.Transparency = math.huge | |
| 375 | local PP2 = Instance.new("Weld",PP)
| |
| 376 | PP2.Part0 = DI | |
| 377 | PP2.Part1 = PP | |
| 378 | PP2.C0 = CFrame.new(2.5,0.5,0)*CFrame.Angles(0,0,-0.5) | |
| 379 | PP.Touched:connect(function(hit) | |
| 380 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 381 | PP:remove() | |
| 382 | local p2mit = Instance.new("ParticleEmitter",hit.Parent.Torso)
| |
| 383 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 384 | p2mit.Color = ColorSequence.new(Color3.new(244,244,244)) | |
| 385 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
| |
| 386 | p2mit.Lifetime = NumberRange.new(1) | |
| 387 | p2mit.Rate = 33 | |
| 388 | p2mit.VelocitySpread = 0 | |
| 389 | p2mit.Acceleration = Vector3.new(0,-50,0) | |
| 390 | local p2mit = Instance.new("ParticleEmitter",hit.Parent["Right Arm"])
| |
| 391 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 392 | p2mit.Color = ColorSequence.new(Color3.new(244,244,244)) | |
| 393 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
| |
| 394 | p2mit.Lifetime = NumberRange.new(1) | |
| 395 | p2mit.Rate = 33 | |
| 396 | p2mit.VelocitySpread = 0 | |
| 397 | p2mit.Acceleration = Vector3.new(0,-50,0) | |
| 398 | local p2mit = Instance.new("ParticleEmitter",hit.Parent["Left Arm"])
| |
| 399 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 400 | p2mit.Color = ColorSequence.new(Color3.new(244,244,244)) | |
| 401 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
| |
| 402 | p2mit.Lifetime = NumberRange.new(1) | |
| 403 | p2mit.Rate = 33 | |
| 404 | p2mit.VelocitySpread = 0 | |
| 405 | p2mit.Acceleration = Vector3.new(0,-50,0) | |
| 406 | end | |
| 407 | end) | |
| 408 | wait(1) | |
| 409 | partasdeff.Enabled=false | |
| 410 | PP:remove() | |
| 411 | wait(1) | |
| 412 | Pause = false | |
| 413 | wait(5) | |
| 414 | DD = false | |
| 415 | end | |
| 416 | end | |
| 417 | function Slime() | |
| 418 | if not DD then DD = true | |
| 419 | Pause = true | |
| 420 | for i = 0,1.2,0.1 do | |
| 421 | swait() | |
| 422 | PlayAnimationFromTable({
| |
| 423 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 424 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 425 | CFrame.new(1.5,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,1), | |
| 426 | CFrame.new(-1.5,0,0) * CFrame.new(0,0,0)*CFrame.Angles(0,0,0), | |
| 427 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 428 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 429 | }, .5, false) | |
| 430 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 431 | end | |
| 432 | local Fill = Instance.new("Part",Character)
| |
| 433 | Fill.Size = Vector3.new(1,1,1) | |
| 434 | Fill.CanCollide = false | |
| 435 | Fill.BrickColor = BrickColor.new("White")
| |
| 436 | Fill.Shape = "Ball" | |
| 437 | local Fill2 = Instance.new("SpecialMesh",Fill)
| |
| 438 | Fill2.MeshType = "Sphere" | |
| 439 | Fill2.Scale = Vector3.new(0.1,0.1,0.1) | |
| 440 | local Fill3 = Instance.new("Weld",Fill)
| |
| 441 | Fill3.Part0 = RightArm | |
| 442 | Fill3.Part1 = Fill | |
| 443 | Fill3.C0 = CFrame.new(0,-1.2,0) | |
| 444 | Fill.Touched:connect(function(hit) | |
| 445 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 446 | Fill:remove() | |
| 447 | hit.Parent.Humanoid:TakeDamage(40) | |
| 448 | end | |
| 449 | end) | |
| 450 | coroutine.resume(coroutine.create(function() | |
| 451 | for i = 1,166 do | |
| 452 | Fill2.Scale = Fill2.Scale + Vector3.new(0.01,0.01,0.01) | |
| 453 | game:GetService("RunService").RenderStepped:wait()
| |
| 454 | end | |
| 455 | end)) | |
| 456 | for i = 1,10 do | |
| 457 | local Spl = Instance.new("Part",Character)
| |
| 458 | Spl.BrickColor = BrickColor.new("White")
| |
| 459 | Spl.Material = "Neon" | |
| 460 | Spl.CanCollide = false | |
| 461 | Spl.Shape = "Ball" | |
| 462 | Spl.CFrame = Tip.CFrame*CFrame.new(0,0,0) | |
| 463 | local Spl2 = Instance.new("SpecialMesh",Spl)
| |
| 464 | Spl2.MeshType = "Sphere" | |
| 465 | Spl2.Scale = Vector3.new(0.1,0.1,0.1) | |
| 466 | local At = Instance.new("BodyPosition",Spl)
| |
| 467 | At.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 468 | At.position = Fill.Position | |
| 469 | wait(0.3) | |
| 470 | Spl:remove() | |
| 471 | end | |
| 472 | wait(1) | |
| 473 | for i = 0,1.2,0.1 do | |
| 474 | swait() | |
| 475 | PlayAnimationFromTable({
| |
| 476 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 1.5, 0), | |
| 477 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 478 | CFrame.new(1.8,0.5,0) * CFrame.new(0,0,0)*CFrame.Angles(1.55,0,1.55), | |
| 479 | CFrame.new(-1.5,0,0) * CFrame.new(0,0,0)*CFrame.Angles(0,0,0), | |
| 480 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 481 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 482 | }, .5, false) | |
| 483 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 484 | end | |
| 485 | wait(0.5) | |
| 486 | Fill:remove() | |
| 487 | Pause = false | |
| 488 | wait(3) | |
| 489 | DD = false | |
| 490 | end | |
| 491 | end | |
| 492 | Mouse.Button1Down:connect(function() | |
| 493 | if attack == false and attacktype == 1 then | |
| 494 | Hit() | |
| 495 | attacktype = 2 | |
| 496 | elseif attack == false and attacktype == 2 then | |
| 497 | Hit2() | |
| 498 | attacktype = 1 | |
| 499 | end | |
| 500 | end) | |
| 501 | ||
| 502 | Mouse.KeyDown:connect(function(key) | |
| 503 | if key == "e" then | |
| 504 | Slime() | |
| 505 | end | |
| 506 | if key == "q" then | |
| 507 | JOFF() | |
| 508 | end | |
| 509 | end) | |
| 510 | Ma = Instance.new("Sound",Torso)
| |
| 511 | Ma.SoundId = "rbxassetid://870034109" | |
| 512 | Ma.Looped = true | |
| 513 | Ma.Pitch = 1 | |
| 514 | Ma.Volume = 4 | |
| 515 | wait(0.01) | |
| 516 | Ma:Play() | |
| 517 | coroutine.wrap(function() | |
| 518 | while 1 do | |
| 519 | swait() | |
| 520 | if doe <= 360 then | |
| 521 | doe = doe + 2 | |
| 522 | else | |
| 523 | doe = 0 | |
| 524 | end | |
| 525 | end | |
| 526 | end)() | |
| 527 | while true do | |
| 528 | swait() | |
| 529 | for i, v in pairs(Character:GetChildren()) do | |
| 530 | if v:IsA("Part") then
| |
| 531 | v.Material = "SmoothPlastic" | |
| 532 | elseif v:IsA("Accessory") then
| |
| 533 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 534 | end | |
| 535 | end | |
| 536 | ||
| 537 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 538 | velocity = RootPart.Velocity.y | |
| 539 | sine = sine + change | |
| 540 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 541 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 542 | Anim = "Jump" | |
| 543 | if Pause == false then | |
| 544 | PlayAnimationFromTable({
| |
| 545 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 546 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 547 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 548 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 549 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 550 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 551 | }, .3, false) | |
| 552 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 553 | end | |
| 554 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 555 | Anim = "Fall" | |
| 556 | if Pause == false then | |
| 557 | PlayAnimationFromTable({
| |
| 558 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 559 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 560 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 561 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 562 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 563 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 564 | }, .3, false) | |
| 565 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 566 | end | |
| 567 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 568 | Anim = "Idle" | |
| 569 | if Pause == false then | |
| 570 | change = 1 | |
| 571 | PlayAnimationFromTable({
| |
| 572 | CFrame.new(0,0,0) * CFrame.new(0,0-.05*math.sin(tick()*1),0)*CFrame.Angles(0,0,0), | |
| 573 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0-.05*math.sin(tick()*1), 0, 0), | |
| 574 | CFrame.new(0.9,0,-1) * CFrame.new(0,0,0)*CFrame.Angles(0-.3*math.sin(tick()*3),1,0)*CFrame.Angles(0.8,0,0), | |
| 575 | CFrame.new(-0.7,0,0.4) * CFrame.new(0,0,0)*CFrame.Angles(0,0,1), | |
| 576 | CFrame.new(0.6,0+.05*math.sin(tick()*1),0) * CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0.1), | |
| 577 | CFrame.new(-0.6,0+.05*math.sin(tick()*1),0) * CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, -0.1), | |
| 578 | }, .3, false) | |
| 579 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 580 | end | |
| 581 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 582 | Anim = "Walk" | |
| 583 | if Pause == false then | |
| 584 | PlayAnimationFromTable({
| |
| 585 | CFrame.new(0,0,0) * CFrame.new(0,0,0)*CFrame.Angles(0.2,0,0), | |
| 586 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.3, 0, 0), | |
| 587 | CFrame.new(0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,-1), | |
| 588 | CFrame.new(-0.8,1,0.3) * CFrame.new(0,0,0)*CFrame.Angles(3.1,0,1), | |
| 589 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 3)), 0, 0), | |
| 590 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 3)), 0, 0), | |
| 591 | }, .3, false) | |
| 592 | DI3.C0 = clerp(DI3.C0,CFrame.new(0,-0.2,-2)*CFrame.new(0,0,0)*CFrame.Angles(0,1.55,0.5),.3) | |
| 593 | end | |
| 594 | end | |
| 595 | end |