gahou
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 2261 |
|
|
| 14 Aug 2014 10:51 PM |
| If only roblox didn't break mine.. |
|
|
| Report Abuse |
|
|
| |
|
gahou
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 2261 |
|
|
| 14 Aug 2014 10:56 PM |
| What do you mean? Are they impossible to make... O.e |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Aug 2014 10:59 PM |
Sorta. I guess you could cheat and squish the person into the ground (tweak the force a bit, it might push them a little TOO much...)
local cr;
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) if key=="x" and not cr then cr=cr==false and true or false Instance.new("BodyForce",game.Players.LocalPlayer.Character.Torso).force=Vector3.new(0,-200,0) else gmae.Players.LocalPlayer.Character.Torso["BodyForce"]:Destroy() end end) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:00 PM |
^^^^ 3rd to last line: game.Players.LocalPlayer.Character.Torso["BodyForce"]:Destroy() Corrected it b/c of spelling error |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:00 PM |
this is one I made using CLerp (no, I'm nto going to break all the variabled down for you, sorry. you'll have to figure that out yourself =/)
function CLerp(C1, C2, Speed) local Comp1 = {C1.X, C1.Y, C1.Z, C1:toEulerAnglesXYZ()}; local Comp2 = {C2.X, C2.Y, C2.Z, C2:toEulerAnglesXYZ()}; for num, accel in pairs(Comp1) do Comp1[num] = Return(accel, Comp2[num], Speed); end return CFrame.new(Comp1[1], Comp1[2], Comp1[3]) * CFrame.Angles(select(4,unpack(Comp1))); end
--in a loop:
if _G.crouching == true then if _G.ItemGun1Equipped == true then _G.RightArm = CFrame.new(1.5,0.5,-0.1) * CFrame.Angles(1.57 + -math.pi/18 + math.sin(Anim)/1 * 0.15,0,0); _G.LeftArm = CFrame.new(0.5,0.2,-1.45) * CFrame.Angles(1.57 + -math.pi/18 + math.sin(Anim)/1 * 0.1,0,0.4); elseif _G.ItemGun2Equipped == true then _G.RightArm = CFrame.new(0.7,0.2,-1) * CFrame.Angles(1.2,0,-0.6); _G.LeftArm = CFrame.new(0.1,0.2,-0.95) * CFrame.Angles(1.2,0,0); end _G.RightLeg = CFrame.new(0.5,-0.2,-0.5) * CFrame.Angles(-0.2 + math.sin(Anim) * 0.1,0,0); _G.LeftLeg = CFrame.new(-0.5,-0.2,-0.5) * CFrame.Angles(-0.2 + -math.sin(Anim) * 0.2,0,0); _G.RootPart = CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(math.sin(Anim)/1) * 1,0,0); end Motor1.C0 = CLerp(Motor1.C0, _G.RightArm, NewSpeed); Motor2.C0 = CLerp(Motor2.C0, _G.LeftArm, NewSpeed); Motor3.C0 = CLerp(Motor3.C0, _G.RightLeg, NewSpeed); Motor4.C0 = CLerp(Motor4.C0, _G.LeftLeg, NewSpeed); |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:03 PM |
I forgot the Return function.
function Return(Alpha, Bravo, Charlie) return Alpha + (Bravo - Alpha) * Charlie; end |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:03 PM |
ogm hax mush leet retern funktin!
_____________________________________ BinaryStringValues4Life |
|
|
| Report Abuse |
|
|
gahou
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 2261 |
|
|
| 14 Aug 2014 11:06 PM |
Oh wow such code, little understanding.
I found a working crouch and prone script, but it stands you up after using the tool (Firing a gun)
Workaround for this? |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:09 PM |
| Hopefully the script's inside of a tool already; if it is, just parent the script under the gun. |
|
|
| Report Abuse |
|
|
gahou
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 2261 |
|
|
| 14 Aug 2014 11:09 PM |
| It's one of those startergui crouch scripts :/ |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 11:12 PM |
| Idk then, sorry. I'm bad w/ freemodels. |
|
|
| Report Abuse |
|
|
gahou
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 2261 |
|
|
| 14 Aug 2014 11:14 PM |
This is it, could you have a look please? http://www.roblox.com/Crouch-Script-Body-Package-Compatible-14-05-04-item?id=145244822
I'd use yours or acomplishables but I wouldn't know how to get them to work. |
|
|
| Report Abuse |
|
|