SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | return RealPlayer[Index] | |
| 88 | end | |
| 89 | end; | |
| 90 | __tostring = function(self) | |
| 91 | return RealPlayer.Name | |
| 92 | end | |
| 93 | }) | |
| 94 | end | |
| 95 | end | |
| 96 | if RealGame[Index] then | |
| 97 | local Type = type(RealGame[Index]) | |
| 98 | if Type == "function" then | |
| 99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 100 | return function (self,Service) | |
| 101 | if Service:lower() == "players" then | |
| 102 | return setmetatable({},{
| |
| 103 | __index = function (self2,Index2) | |
| 104 | local RealService = RealGame:GetService(Service) | |
| 105 | local Type2 = type(Index2) | |
| 106 | if Type2 == "function" then | |
| 107 | return function (self,...) | |
| 108 | return RealService[Index2](RealService,...) | |
| 109 | end | |
| 110 | else | |
| 111 | if Index2:lower() == "localplayer" then | |
| 112 | return Sandbox(owner) | |
| 113 | end | |
| 114 | return RealService[Index2] | |
| 115 | end | |
| 116 | end; | |
| 117 | __tostring = function(self) | |
| 118 | return RealGame:GetService(Service).Name | |
| 119 | end | |
| 120 | }) | |
| 121 | elseif Service:lower() == "contextactionservice" then | |
| 122 | return InternalData["ContextActionService"] | |
| 123 | elseif Service:lower() == "contextactionservice" then | |
| 124 | return InternalData["UserInputService"] | |
| 125 | elseif Service:lower() == "runservice" then | |
| 126 | return setmetatable({},{
| |
| 127 | __index = function(self2,Index2) | |
| 128 | local RealService = RealGame:GetService(Service) | |
| 129 | local Type2 = type(Index2) | |
| 130 | if Type2 == "function" then | |
| 131 | return function (self,...) | |
| 132 | return RealService[Index2](RealService,...) | |
| 133 | end | |
| 134 | else | |
| 135 | if Index2:lower() == "bindtorenderstep" then | |
| 136 | return function (self,Name,Priority,Function) | |
| 137 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 138 | end | |
| 139 | end | |
| 140 | if Index2:lower() == "renderstepped" then | |
| 141 | return RealService["Stepped"] | |
| 142 | end | |
| 143 | return RealService[Index2] | |
| 144 | end | |
| 145 | end | |
| 146 | }) | |
| 147 | else | |
| 148 | return RealGame:GetService(Service) | |
| 149 | end | |
| 150 | end | |
| 151 | end | |
| 152 | return function (self,...) | |
| 153 | return RealGame[Index](RealGame,...) | |
| 154 | end | |
| 155 | else | |
| 156 | if game:GetService(Index) then | |
| 157 | return game:GetService(Index) | |
| 158 | end | |
| 159 | return RealGame[Index] | |
| 160 | end | |
| 161 | else | |
| 162 | return nil | |
| 163 | end | |
| 164 | end | |
| 165 | });Game = game;owner = game:GetService("Players").LocalPlayer
| |
| 166 | print("Complete! Running...")
| |
| 167 | ||
| 168 | --==/Bound to No Limits/==-- | |
| 169 | --[[Leak this and i'll be freaking mad]]-- | |
| 170 | local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
| |
| 171 | local currentCam = workspace.CurrentCamera | |
| 172 | Humanoid = Character:findFirstChild("Humanoid");
| |
| 173 | Torso = Character:findFirstChild("Torso");
| |
| 174 | Head = Character:findFirstChild("Head");
| |
| 175 | Right_Arm = Character:findFirstChild("Right Arm");
| |
| 176 | Left_Arm = Character:findFirstChild("Left Arm");
| |
| 177 | Right_Leg = Character:findFirstChild("Right Leg");
| |
| 178 | Right_Leg.FormFactor = "Custom"; | |
| 179 | Left_Leg = Character:findFirstChild("Left Leg");
| |
| 180 | Left_Leg.FormFactor = "Custom"; | |
| 181 | Right_Shoulder = Torso:findFirstChild("Right Shoulder");
| |
| 182 | Left_Shoulder = Torso:findFirstChild("Left Shoulder");
| |
| 183 | Right_Hip = Torso:findFirstChild("Right Hip");
| |
| 184 | Left_Hip = Torso:findFirstChild("Left Hip");
| |
| 185 | Neck = Torso:findFirstChild("Neck");
| |
| 186 | rootPart = Character:findFirstChild("HumanoidRootPart");
| |
| 187 | rootPart.Archivable = true; | |
| 188 | rootJoint = rootPart:findFirstChild("RootJoint");
| |
| 189 | rootJoint.Archivable = true; | |
| 190 | c_new = CFrame.new; | |
| 191 | i_new = Instance.new; | |
| 192 | c_angles = CFrame.Angles; | |
| 193 | Humanoid:ClearAllChildren(); | |
| 194 | local Animations = false | |
| 195 | local followMouse = false | |
| 196 | local isSprinting = false | |
| 197 | local Angle = 0 | |
| 198 | local angleSpeed = 1 | |
| 199 | local currentAnim | |
| 200 | local Vaping = false | |
| 201 | local vapePower = 2.5 | |
| 202 | local Release = false | |
| 203 | local currentFace = Head.face.Texture | |
| 204 | ||
| 205 | function math_pos(float) | |
| 206 | if float < 0 then float = 0 end | |
| 207 | return float | |
| 208 | end | |
| 209 | function math_neg(float) | |
| 210 | if float > 0 then float = 0 end | |
| 211 | return float | |
| 212 | end | |
| 213 | function math_max(float, max) | |
| 214 | if float > max then float = max end | |
| 215 | return float | |
| 216 | end | |
| 217 | function math_min(float, min) | |
| 218 | if float > min then float = min end | |
| 219 | return float | |
| 220 | end | |
| 221 | ||
| 222 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 223 | wld = Instance.new("Weld", wp1)
| |
| 224 | wld.Part0 = wp0 | |
| 225 | wld.Part1 = wp1 | |
| 226 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 227 | return wld | |
| 228 | end | |
| 229 | ||
| 230 | newWeld2 = function(wp02, wp12, wc0x2, wc0y2, wc0z2, wc0x12, wc0y12, wc0z12) | |
| 231 | wld2 = Instance.new("Weld", wp12)
| |
| 232 | wld2.Part0 = wp02 | |
| 233 | wld2.Part1 = wp12 | |
| 234 | wld2.C0 = CFrame.new(wc0x2, wc0y2, wc0z2) * CFrame.Angles(wc0x12, wc0y12, wc0z12) | |
| 235 | return wld2 | |
| 236 | end | |
| 237 | ||
| 238 | LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0) | |
| 239 | Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 240 | RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0) | |
| 241 | Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 242 | LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0) | |
| 243 | Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 244 | RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0) | |
| 245 | Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 246 | Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0) | |
| 247 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 248 | Head_Weld = newWeld(Torso, Head, 0, 1.5, 0) | |
| 249 | ||
| 250 | ||
| 251 | function nooutline(part) | |
| 252 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 253 | end | |
| 254 | ||
| 255 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 256 | local fp = i_new("Part")
| |
| 257 | fp.formFactor = formfactor | |
| 258 | fp.Parent = parent | |
| 259 | fp.Reflectance = reflectance | |
| 260 | fp.Transparency = transparency | |
| 261 | fp.CanCollide = false | |
| 262 | fp.Locked = true | |
| 263 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 264 | fp.Name = name | |
| 265 | fp.Size = size | |
| 266 | fp.Position = Character.Torso.Position | |
| 267 | nooutline(fp) | |
| 268 | fp.Material = material | |
| 269 | fp:BreakJoints() | |
| 270 | return fp | |
| 271 | end | |
| 272 | ||
| 273 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 274 | local mesh = i_new(Mesh) | |
| 275 | mesh.Parent = part | |
| 276 | if Mesh == "SpecialMesh" then | |
| 277 | mesh.MeshType = meshtype | |
| 278 | mesh.MeshId = meshid | |
| 279 | end | |
| 280 | mesh.Offset = offset | |
| 281 | mesh.Scale = scale | |
| 282 | return mesh | |
| 283 | end | |
| 284 | ||
| 285 | function weld(parent, part0, part1, c0, c1) | |
| 286 | local weld = i_new("Weld")
| |
| 287 | weld.Parent = parent | |
| 288 | weld.Part0 = part0 | |
| 289 | weld.Part1 = part1 | |
| 290 | weld.C0 = c0 | |
| 291 | weld.C1 = c1 | |
| 292 | return weld | |
| 293 | end | |
| 294 | ||
| 295 | function swait(num) | |
| 296 | if num == 0 or num == nil then | |
| 297 | game:GetService("RunService").Stepped:wait(0)
| |
| 298 | else | |
| 299 | for i = 0, num do | |
| 300 | game:GetService("RunService").Stepped:wait(0)
| |
| 301 | end | |
| 302 | end | |
| 303 | end | |
| 304 | ||
| 305 | function newRay(start, face, range, wat) | |
| 306 | local ray = Ray.new(start.p, (face.p - start.p).Unit * range) | |
| 307 | hit, pos = workspace:findPartOnRayWithIgnoreList(ray, wat) | |
| 308 | return ray, hit, pos | |
| 309 | end | |
| 310 | ||
| 311 | function QuaternionFromCFrame(cf) | |
| 312 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 313 | local trace = m00 + m11 + m22 | |
| 314 | if trace > 0 then | |
| 315 | local s = math.sqrt(1 + trace) | |
| 316 | local recip = 0.5/s | |
| 317 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 318 | else | |
| 319 | local i = 0 | |
| 320 | if m11 > m00 then | |
| 321 | i = 1 | |
| 322 | end | |
| 323 | if m22 > (i == 0 and m00 or m11) then | |
| 324 | i = 2 | |
| 325 | end | |
| 326 | if i == 0 then | |
| 327 | local s = math.sqrt(m00-m11-m22+1) | |
| 328 | local recip = 0.5/s | |
| 329 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 330 | elseif i == 1 then | |
| 331 | local s = math.sqrt(m11-m22-m00+1) | |
| 332 | local recip = 0.5/s | |
| 333 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 334 | elseif i == 2 then | |
| 335 | local s = math.sqrt(m22-m00-m11+1) | |
| 336 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 337 | end | |
| 338 | end | |
| 339 | end | |
| 340 | ||
| 341 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 342 | local xs, ys, zs = x + x, y + y, z + z | |
| 343 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 344 | local xx = x*xs | |
| 345 | local xy = x*ys | |
| 346 | local xz = x*zs | |
| 347 | local yy = y*ys | |
| 348 | local yz = y*zs | |
| 349 | local zz = z*zs | |
| 350 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 351 | end | |
| 352 | ||
| 353 | function QuaternionSlerp(a, b, t) | |
| 354 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 355 | local startInterp, finishInterp; | |
| 356 | if cosTheta >= 0.0001 then | |
| 357 | if (1 - cosTheta) > 0.0001 then | |
| 358 | local theta = math.acos(cosTheta) | |
| 359 | local invSinTheta = 1/math.sin(theta) | |
| 360 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 361 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 362 | else | |
| 363 | startInterp = 1-t | |
| 364 | finishInterp = t | |
| 365 | end | |
| 366 | else | |
| 367 | if (1+cosTheta) > 0.0001 then | |
| 368 | local theta = math.acos(-cosTheta) | |
| 369 | local invSinTheta = 1/math.sin(theta) | |
| 370 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 371 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 372 | else | |
| 373 | startInterp = t-1 | |
| 374 | finishInterp = t | |
| 375 | end | |
| 376 | end | |
| 377 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 378 | end | |
| 379 | ||
| 380 | function clerp(a, b, t) | |
| 381 | local qa = {QuaternionFromCFrame(a)}
| |
| 382 | local qb = {QuaternionFromCFrame(b)}
| |
| 383 | local ax, ay, az = a.x, a.y, a.z | |
| 384 | local bx, by, bz = b.x, b.y, b.z | |
| 385 | local _t = 1-t | |
| 386 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 387 | end | |
| 388 | ||
| 389 | local freeFalling = false | |
| 390 | Humanoid.FreeFalling:connect(function(f) | |
| 391 | if f then | |
| 392 | freeFalling = true | |
| 393 | else | |
| 394 | freeFalling = false | |
| 395 | end | |
| 396 | end) | |
| 397 | ||
| 398 | function Vapor() | |
| 399 | end | |
| 400 | ||
| 401 | function Vape() | |
| 402 | if Release == true and vapePower > 5 then | |
| 403 | Vaping = true | |
| 404 | Humanoid.WalkSpeed = 0 | |
| 405 | Humanoid.JumpPower = 0 | |
| 406 | smoke = Instance.new("ParticleEmitter", Head)
| |
| 407 | smoke.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
| 408 | smoke.Texture = "http://www.roblox.com/asset/?id=382199579" | |
| 409 | smoke.Size = NumberSequence.new({
| |
| 410 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 411 | NumberSequenceKeypoint.new(0.161235, 0.25, 0), | |
| 412 | NumberSequenceKeypoint.new(0.197256, 1.25, 0), | |
| 413 | NumberSequenceKeypoint.new(0.221269, 1.5, 0), | |
| 414 | NumberSequenceKeypoint.new(0.25729, 1.5, 0), | |
| 415 | NumberSequenceKeypoint.new(0.284734, 2, 0), | |
| 416 | NumberSequenceKeypoint.new(0.512865, 2.5, 0), | |
| 417 | NumberSequenceKeypoint.new(0.548885, 3.5, 0), | |
| 418 | NumberSequenceKeypoint.new(0.595197, 4.5, 0), | |
| 419 | NumberSequenceKeypoint.new(0.632933, 6.5, 0), | |
| 420 | NumberSequenceKeypoint.new(0.6741, 9, 0), | |
| 421 | NumberSequenceKeypoint.new(1, 10, 0) | |
| 422 | }) | |
| 423 | smoke.Transparency = NumberSequence.new({
| |
| 424 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 425 | NumberSequenceKeypoint.new(0, 0.999, 0), | |
| 426 | NumberSequenceKeypoint.new(0.154374, 0.89, 0), | |
| 427 | NumberSequenceKeypoint.new(0.310463, 0.79, 0), | |
| 428 | NumberSequenceKeypoint.new(0.504288, 0.69, 0), | |
| 429 | NumberSequenceKeypoint.new(0.638079, 0.79, 0), | |
| 430 | NumberSequenceKeypoint.new(0.765009, 0.999, 0), | |
| 431 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 432 | }) | |
| 433 | smoke.Speed = NumberRange.new(1.5) | |
| 434 | smoke.EmissionDirection = 5 | |
| 435 | smoke.Acceleration = Vector3.new(0, 0.075, 0) | |
| 436 | smoke.Lifetime = NumberRange.new(vapePower/0.5) | |
| 437 | smoke.Rate = 15 | |
| 438 | smoke.ZOffset = 3 | |
| 439 | smoke.RotSpeed = NumberRange.new(100) | |
| 440 | smoke.Rotation = NumberRange.new(100) | |
| 441 | for i = 0, 3, 0.01 do | |
| 442 | Animations = true | |
| 443 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0.1) * c_angles(math.rad(20), math.rad(0), math.rad(20)), 0.01) | |
| 444 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0.1) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.01) | |
| 445 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-5.5)), 0.005) | |
| 446 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(5.5)), 0.005) | |
| 447 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), 0), 0.01) | |
| 448 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-5), math.rad(0), 0), 0.005) | |
| 449 | Head.face.Texture = "http://www.roblox.com/asset/?id=7317691" | |
| 450 | swait() | |
| 451 | end | |
| 452 | wait(7.5) | |
| 453 | Head.face.Texture = currentFace | |
| 454 | game.Debris:AddItem(smoke, 0) | |
| 455 | Humanoid.WalkSpeed = 16 | |
| 456 | Humanoid.JumpPower = 50 | |
| 457 | Animations = false | |
| 458 | wait(1) | |
| 459 | Vaping = false | |
| 460 | vapePower = 2.5 | |
| 461 | elseif vapePower < 5 then | |
| 462 | Vaping = false | |
| 463 | vapePower = 2.5 | |
| 464 | end | |
| 465 | end | |
| 466 | ||
| 467 | Mouse.KeyDown:connect(function(key) | |
| 468 | if key == "z" and followMouse == false then | |
| 469 | followMouse = true | |
| 470 | gyro = Instance.new("BodyGyro", rootPart)
| |
| 471 | gyro.P = 1e7 | |
| 472 | gyro.D = 1e3 | |
| 473 | gyro.MaxTorque = Vector3.new(0, 1e7, 0) | |
| 474 | coroutine.resume(coroutine.create(function() | |
| 475 | while wait() do | |
| 476 | gyro.CFrame = CFrame.new(Vector3.new(), (Mouse.Hit.p -rootPart.CFrame.p).unit * 100) | |
| 477 | end | |
| 478 | end)) | |
| 479 | elseif key == "z" and followMouse == true then | |
| 480 | followMouse = false | |
| 481 | gyro:Destroy() | |
| 482 | end | |
| 483 | end) | |
| 484 | ||
| 485 | Mouse.Button1Down:connect(function() | |
| 486 | if Vaping == false then | |
| 487 | Vaping = true | |
| 488 | Release = false | |
| 489 | Mouse.Button1Up:connect(function() | |
| 490 | Release = true | |
| 491 | end) | |
| 492 | if Release == false then | |
| 493 | repeat | |
| 494 | Animations = true | |
| 495 | vapePower = vapePower + 0.1 | |
| 496 | Humanoid.WalkSpeed = 0 | |
| 497 | Humanoid.JumpPower = 0 | |
| 498 | wait() | |
| 499 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.8, 1.4, -1) * c_angles(math.rad(60), math.rad(-25), math.rad(-80)) * CFrame.Angles(0, math.rad(150), 0), 0.1) | |
| 500 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0.1) * c_angles(math.rad(-12.5), math.rad(10), math.rad(-25)), 0.1) | |
| 501 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-5)), 0.01) | |
| 502 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(5)), 0.01) | |
| 503 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05) * c_angles(math.rad(11.5), math.rad(0), 0), 0.05) | |
| 504 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(15), math.rad(0), 0), 0.01) | |
| 505 | if vapePower > 5 then | |
| 506 | Head.face.Texture = "http://www.roblox.com/asset/?id=7317691" | |
| 507 | elseif vapePower < 5 then | |
| 508 | Humanoid.WalkSpeed = 16 | |
| 509 | Humanoid.JumpPower = 50 | |
| 510 | end | |
| 511 | print(vapePower) | |
| 512 | until Release == true | |
| 513 | end | |
| 514 | Animations = false | |
| 515 | Vape() | |
| 516 | end | |
| 517 | end) | |
| 518 | ||
| 519 | Vepr = Instance.new("Model", Character)
| |
| 520 | Handle = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Handle", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 521 | Handleweld = weld(Vepr, Right_Arm, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.677656174, -0.199986219, -0.745416641, 0.721854568, 0.692044795, -4.12490877e-008, 0, 5.96046377e-008, 1, 0.692044854, -0.721854508, 4.30258851e-008)) | |
| 522 | mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(0.850000024, 1, 0.850000024))
| |
| 523 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 524 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0770874023, 0.530002356, -0.00293064117, -0.707106829, 5.7016841e-008, 0.70710665, 8.64581722e-008, 1, 5.82424065e-009, -0.707106769, 6.52535093e-008, -0.707106948)) | |
| 525 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 526 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 527 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.530002356, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 528 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.649999976, 1.5, 0.649999976))
| |
| 529 | ColoredPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Dark stone grey", "ColoredPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 530 | ColoredPartweld = weld(Vepr, Handle, ColoredPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0150222778, 0.0528726578, 0.580010891, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 531 | mesh("CylinderMesh", ColoredPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 0.150000006, 0.075000003))
| |
| 532 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 533 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 1.12999749, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 534 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.349999994, 0.5, 0.349999994))
| |
| 535 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 536 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, -0.299999952, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 537 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 0.25, 1.10000002))
| |
| 538 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 539 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0799965858, 0.530002356, 0.00411891937, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 540 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 541 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 542 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, -0.350000143, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 543 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
| |
| 544 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 545 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.39999938, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 546 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 0.25, 1.10000002))
| |
| 547 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 548 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 1.20999694, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 549 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.25, 0.5, 0.25))
| |
| 550 | ColoredPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ColoredPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 551 | ColoredPartweld = weld(Vepr, Handle, ColoredPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.06904175e-005, 1.26000762, 0.00412273407, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 552 | mesh("CylinderMesh", ColoredPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.100000001, 0.300000012))
| |
| 553 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 554 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.00412368774, 0.39999938, 1, -9.83454888e-015, 8.94069672e-008, 8.94069672e-008, 1.02581704e-014, 1, 7.10542736e-015, -1, -7.10542736e-015)) | |
| 555 | mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 556 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 557 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.440000296, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 558 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
| |
| 559 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 560 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 1.25999618, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 561 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.349999994, 0.100000001, 0.349999994))
| |
| 562 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 563 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 1.06999803, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 564 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.649999976, 0.5, 0.649999976))
| |
| 565 | ColoredPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Dark stone grey", "ColoredPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 566 | ColoredPartweld = weld(Vepr, Handle, ColoredPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.23977661e-005, 0.0528755188, 0.595012188, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 567 | mesh("CylinderMesh", ColoredPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 0.150000006, 0.075000003))
| |
| 568 | ColoredPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Dark stone grey", "ColoredPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 569 | ColoredPartweld = weld(Vepr, Handle, ColoredPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0149841309, 0.0528774261, 0.580010891, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 570 | mesh("CylinderMesh", ColoredPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 0.150000006, 0.075000003))
| |
| 571 | ColoredPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Dark stone grey", "ColoredPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 572 | ColoredPartweld = weld(Vepr, Handle, ColoredPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.23977661e-005, 0.0528755188, 0.565011501, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 573 | mesh("CylinderMesh", ColoredPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 0.150000006, 0.075000003))
| |
| 574 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 575 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0829200745, 0.530002356, 0.00291061401, 0.707106769, 2.99547696e-016, 0.707106948, -7.10542736e-015, 1, 7.10542736e-015, -0.707106829, 1.42076978e-014, 0.70710665)) | |
| 576 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 577 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 578 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0800065994, 0.530002356, 0.00412559509, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 579 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 580 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 581 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0841331482, 0.530002356, -1.09672546e-005, 8.94069672e-008, 5.70167558e-008, 1, 6.52536016e-008, 1, -5.70167309e-008, -1, 6.52536229e-008, -8.94069672e-008)) | |
| 582 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 583 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 584 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.759999275, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 585 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.649999976, 1, 0.649999976))
| |
| 586 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 587 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.66893005e-005, 0.0508747101, 0.580010891, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 588 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.150000006, 0.300000012))
| |
| 589 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 590 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.082918644, 0.530002356, -0.00291919708, -0.707106829, 5.7016841e-008, 0.70710665, 8.64581722e-008, 1, 5.82424065e-009, -0.707106769, 6.52535093e-008, -0.707106948)) | |
| 591 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 592 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 593 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0770807266, 0.530002356, 0.0029168129, 0.707106769, 2.99547696e-016, 0.707106948, -7.10542736e-015, 1, 7.10542736e-015, -0.707106829, 1.42076978e-014, 0.70710665)) | |
| 594 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.5, 0.100000001))
| |
| 595 | TransparentPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.SmoothPlastic, 0, 0.25, "Teal", "TransparentPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 596 | TransparentPartweld = weld(Vepr, Handle, TransparentPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.93999958, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 597 | mesh("CylinderMesh", TransparentPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.800000012, 0.400000006))
| |
| 598 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 599 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.710000038, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 600 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
| |
| 601 | TransparentPart = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "TransparentPart", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 602 | TransparentPartweld = weld(Vepr, Handle, TransparentPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.29153442e-006, 0.93999958, 0.00412368774, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 603 | mesh("CylinderMesh", TransparentPart, "", "", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 0.800000012, 0.550000012))
| |
| 604 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 605 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, 0.0458641052, 0.580001354, 1, -9.83454888e-015, 8.94069672e-008, -8.94069672e-008, -5.96041154e-008, -1, -1.24344979e-014, 1, -5.96040941e-008)) | |
| 606 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.349999994, 0.150000006, 0.349999994))
| |
| 607 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 608 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00204133987, 0, 0.0835571289, 0.86602515, -1.36460565e-014, -0.500000298, -7.10542736e-015, 1, 7.10542736e-015, 0.500000477, 3.96655577e-015, 0.866025209)) | |
| 609 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 610 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 611 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00356006622, 0, 0.0779504776, -0.500000477, -3.96655577e-015, -0.866025209, -7.10542736e-015, 1, 7.10542736e-015, 0.86602515, -1.36460565e-014, -0.500000298)) | |
| 612 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 613 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 614 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00355911255, 0, 0.0820550919, 0.499999642, -1.38011093e-014, -0.866025567, -7.10542736e-015, 1, 7.10542736e-015, 0.866025627, -3.38788869e-015, 0.499999791)) | |
| 615 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 616 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 617 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00206279755, 0, -0.0835399628, -0.866025627, 3.38788869e-015, -0.499999791, -7.10542736e-015, 1, 7.10542736e-015, 0.499999642, -1.38011093e-014, -0.866025567)) | |
| 618 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 619 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 620 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00206565857, 0, 0.0764513016, -0.866025627, 3.38788869e-015, -0.499999791, -7.10542736e-015, 1, 7.10542736e-015, 0.499999642, -1.38011093e-014, -0.866025567)) | |
| 621 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 622 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 623 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00410270691, 0, -0.0799913406, -2.68220901e-007, -1.02581687e-014, -1, -7.10542736e-015, 1, 7.10542736e-015, 1, -9.83455057e-015, -8.94069672e-008)) | |
| 624 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 625 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 626 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00410270691, 0, 0.0800023079, -2.68220901e-007, -1.02581687e-014, -1, -7.10542736e-015, 1, 7.10542736e-015, 1, -9.83455057e-015, -8.94069672e-008)) | |
| 627 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 628 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 629 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.76837158e-006, 0, -0.0758914948, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 630 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 631 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 632 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0020403862, 0, -0.0764379501, 0.86602515, -1.36460565e-014, -0.500000298, -7.10542736e-015, 1, 7.10542736e-015, 0.500000477, 3.96655577e-015, 0.866025209)) | |
| 633 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 634 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 635 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00355911255, 0, -0.0820565224, -0.500000477, -3.96655577e-015, -0.866025209, -7.10542736e-015, 1, 7.10542736e-015, 0.86602515, -1.36460565e-014, -0.500000298)) | |
| 636 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 637 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 638 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.05990601e-006, 0, 0.0841112137, 1, -9.83454888e-015, 8.94069672e-008, -7.10542736e-015, 1, 7.10542736e-015, 8.94069672e-008, 1.02581704e-014, 1)) | |
| 639 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 640 | Part = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Really black", "Part", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 641 | Partweld = weld(Vepr, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0035533905, 0, -0.0779447556, 0.499999642, -1.38011093e-014, -0.866025567, -7.10542736e-015, 1, 7.10542736e-015, 0.866025627, -3.38788869e-015, 0.499999791)) | |
| 642 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1, 0.150000006))
| |
| 643 | ||
| 644 | game:GetService("RunService").Stepped:connect(function()
| |
| 645 | Angle = (Angle % 100) + angleSpeed/10 | |
| 646 | walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude | |
| 647 | jumpVel = Torso.Velocity.Y | |
| 648 | ||
| 649 | if(Humanoid.Jump) and jumpVel > 1 then | |
| 650 | currentAnim = "Jumping" | |
| 651 | elseif freeFalling == true then | |
| 652 | currentAnim = "Falling" | |
| 653 | elseif walkingMagnitude < 2 then | |
| 654 | currentAnim = "Idling" | |
| 655 | elseif isSprinting == true then | |
| 656 | currentAnim = "Sprinting" | |
| 657 | elseif walkingMagnitude > 2 then | |
| 658 | currentAnim = "Walking" | |
| 659 | end | |
| 660 | ||
| 661 | if currentAnim == "Jumping" and Animations == false then | |
| 662 | angleSpeed = 1 | |
| 663 | axisSpeed = 1 | |
| 664 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.1) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.15) | |
| 665 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.1) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.15) | |
| 666 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.15) | |
| 667 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.15) | |
| 668 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)) * c_angles(math.rad(0), math.rad(0), rootPart.RotVelocity.Y/55), 0.4) | |
| 669 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15) | |
| 670 | ||
| 671 | elseif currentAnim == "Falling" and Animations == false then | |
| 672 | angleSpeed = 1 | |
| 673 | axisSpeed = 1 | |
| 674 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.1) * c_angles(math.rad(0), math.rad(0), math.rad(65)), 0.125) | |
| 675 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.1) * c_angles(math.rad(0), math.rad(0), math.rad(-65)), 0.125) | |
| 676 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.4, -0.4) * c_angles(math.rad(-5), math.rad(0), math.rad(-2.5)), 0.125) | |
| 677 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.4, -0.4) * c_angles(math.rad(-5), math.rad(0), math.rad(2.5)), 0.125) | |
| 678 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.05) | |
| 679 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-17.5), math.rad(0), math.rad(0)), 0.125) | |
| 680 | ||
| 681 | elseif currentAnim == "Idling" and Animations == false then | |
| 682 | angleSpeed = 0.25 | |
| 683 | axisSpeed = 0.25 | |
| 684 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(Angle) * 0.075, 0.1) * c_angles(math.rad(15) + math.sin(Angle) * 0.075, math.rad(0), math.rad(10) + math.sin(Angle) * 0.075), 0.125) | |
| 685 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(Angle) * 0.075, 0.1) * c_angles(math.rad(-10) + math.sin(Angle) * 0.075, math.rad(0), math.rad(-10) - math.sin(Angle) * 0.075), 0.125) | |
| 686 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.1 - math.sin(Angle) * 0.075, -0.25) * c_angles(math.rad(15), math.rad(0), math.rad(-7.5)), 0.125) | |
| 687 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.1 - math.sin(Angle) * 0.075, -0.25) * c_angles(math.rad(-15), math.rad(0), math.rad(7.5)), 0.125) | |
| 688 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(Angle) * 0.075, 0) * c_angles(math.rad(-5), math.rad(0), 0), 0.3) | |
| 689 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05) * c_angles(math.rad(-5) + math.sin(Angle) * 0.05, math.rad(0), 0), 0.125) | |
| 690 | ||
| 691 | elseif currentAnim == "Sprinting" and Animations == false then | |
| 692 | angleSpeed = 2 | |
| 693 | axisSpeed = 2 | |
| 694 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(Angle) * 2, math.rad(5) + math.sin(Angle) * 0.1, math.rad(5) + rootPart.RotVelocity.Y/35), 0.15) | |
| 695 | RA_Weld.C1 = c_new(0, 0.5, 0) | |
| 696 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(-math.sin(Angle) * -2, math.rad(-5) + math.sin(Angle) * 0.1, math.rad(-5) + rootPart.RotVelocity.Y/35), 0.15) | |
| 697 | LA_Weld.C1 = c_new(0, 0.5, 0) | |
| 698 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.15 + math_pos(-math.cos(Angle - 0.25) * 0.65), math_neg(math.asin(math.sin(Angle)) * 0.65)) * c_angles(-0.025 - math.asin(math.sin(Angle)) * 1, 0, -0.025 + -math.asin(math.sin(Angle)) * 0.025 + rootPart.RotVelocity.Y/25), 0.15) | |
| 699 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.15 + math_pos(math.cos(Angle - 0.25) * 0.65), math_neg(-math.asin(math.sin(Angle)) * 0.65)) * c_angles(-0.025 + math.asin(math.sin(Angle)) * 1, 0, 0.025 + -math.asin(math.sin(Angle)) * 0.025 + rootPart.RotVelocity.Y/25), 0.15) | |
| 700 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.abs(math.sin(Angle) * 0.25), 0) * c_angles(math.rad(-20) + math.abs(math.sin(Angle) * 0.05) + rootPart.RotVelocity.Y/35, math.sin(Angle) * 0.015, rootPart.RotVelocity.Y/55), 0.15) | |
| 701 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.abs((math.sin(Angle/2) * 0.5) * 0.05), math.sin(Angle) * -0.05 + rootPart.RotVelocity.Y/15 , 0), 0.15) | |
| 702 | ||
| 703 | elseif currentAnim == "Walking" and Animations == false then | |
| 704 | angleSpeed = 1 | |
| 705 | axisSpeed = 1 | |
| 706 | Humanoid.WalkSpeed = 7 | |
| 707 | RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(Angle) * 0.6, math.rad(5) + math.sin(Angle) * 0.05, math.rad(5)), 0.15) | |
| 708 | LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(-math.sin(Angle) * -0.6, math.rad(-5) + math.sin(Angle) * 0.05, math.rad(-5)), 0.15) | |
| 709 | LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.05 + math_pos(-math.cos(Angle - 0.25) * 0.35), math_neg(math.asin(math.sin(Angle)) * 0.35)) * c_angles(-0.025 - math.asin(math.sin(Angle)) * 0.4, 0, -0.025 + -math.asin(math.sin(Angle)) * 0.025 - rootPart.RotVelocity.Y/65), 0.15) | |
| 710 | RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.05 + math_pos(math.cos(Angle - 0.25) * 0.35), math_neg(-math.asin(math.sin(Angle)) * 0.35)) * c_angles(-0.025 + math.asin(math.sin(Angle)) * 0.4, 0, 0.025 + -math.asin(math.sin(Angle)) * 0.025 - rootPart.RotVelocity.Y/65), 0.15) | |
| 711 | Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.abs(math.sin(Angle) * 0.05), 0) * c_angles(math.rad(-12.5) + math.abs(math.sin(Angle) * 0.05), math.sin(Angle) * 0.015, rootPart.RotVelocity.Y/55), 0.15) | |
| 712 | Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.abs((math.sin(Angle/2) * 0.5) * 0.05), math.sin(Angle) * -0.05 + rootPart.RotVelocity.Y/45, 0), 0.15) | |
| 713 | end | |
| 714 | end) |