0 Replies - 603 Views - Last Post: 06 January 2014 - 10:52 AM Rate Topic: -----

#1 DADDYCARDONA  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 67
  • Joined: 04-July 10

Roblox Lua Help Making a Player kneel

Posted 06 January 2014 - 10:52 AM

I am writing this here because there is no roblox or Lua section, and it is a scripting language thank you all.
I am trying to figure out, without needing a tool or a mouse down, button down, script to make a player in Roblox Lua touch an object and kneel on it. I tried to re-edit a code so is it possible? I am not great at scripting and looked at many different post to figure this out. I had many different things long scripts and short scripts, I don't know if I need animation or what else I would need, very confusing. so this is what I have now that I tried to start all over?
daAlter = script.Parent --this is a part 
legs = {}
itsOn = false

function CrouchThis()
itsOn=true
if itsOn then

legs ={game.Workspace:findFirstChild("HumanoidRootPart.Left Leg"),game.Workspace:findFirstChild("HumanoidRootPart.Right Leg")}
legs.CFrame = CFrame.new(0, 50, 0)  *   CFrame.Angles(0, math.pi/2, 0)
end 
end

 daAlter.Touched:connect(CrouchThis)


This post has been edited by DADDYCARDONA: 06 January 2014 - 10:53 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1