|
| 24 Jun 2013 02:51 PM |
or look like it? I can do the damge but I want it to start kinda like this (Unless this is invalid)
game.Players.LocalPlayer = plyr while keydown == q then -- code end)
I cant figure out the CFrame thing. |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2013 02:57 PM |
| change desired angle and C1's CFrame |
|
|
| Report Abuse |
|
|
getkoed2
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 1144 |
|
|
| 24 Jun 2013 02:58 PM |
| Not sure if this is a request, or you seriously made such mistakes. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 02:59 PM |
plyr = game.Players.LocalPlayer
function keydown(key) if string.lower(key) == "q" then --code end end
plyr:GetMouse().KeyDown:connect(keydown)
Fixed.
Now, you have to figure out how to move the arm.
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:01 PM |
Like, what would I do?
plyr["Left Arm"].CFrame.new(0, 0, 0, ) * ? I want the arm to move up then to the right. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:02 PM |
if key:lower()=="f" then throwing, deb, Punting = false -- pump fake game:GetService("Debris"):AddItem(sg,0); sg=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui);
fire ((Player.Torso.Velocity + Player.Torso.CFrame.lookVector).unit,30); -- Vel or Look. whichever is greater. -- fire (Player.Torso.CFrame.lookVector + Vector3.new(0,.07,0),30); wait(.1) end
LeftShoulder.CurrentAngle = -1.5 --- ought to pretty-well do it for the animation, but u could fancy it up a bit.....
|
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:03 PM |
@aws
It would still be like if I pressed q then the arm would move right? |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:09 PM |
@BJ Thats not the full code is it? If it is it does not work, if it is though, maybe it has to be in a script? |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:13 PM |
BJCarpenter's code doesn't appear to work.
http://wiki.roblox.com/index.php/Motor
Do some readin', man.
Inside a characters torso, you'll see objects like this. There's one called a "Left Shoulder". Do stuff to it, and you'll see results.
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:17 PM |
local Player = game.Players.LocalPlayer.Character; local sg=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui);
local max_power=85;--the maximum amount of power that can be reached local deb=false;--is the mouse being held or not? local throwing=false;--is the ball being thrown or not? local Punting=false local power=0;--the current power being used local keys={};--table for keys being pressed
local RightShoulder = Player.Torso["Right Shoulder"] local RightHip = Player.Torso["Right Hip"] local LeftShoulder = Player.Torso["Left Shoulder"] local LeftHip = Player.Torso["Left Hip"] |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:21 PM |
Here's a cartoony Punt animation:
RightHip.CurrentAngle = 2.6 RightShoulder.CurrentAngle = 5 -- oversteer
LeftShoulder.CurrentAngle = -1 LeftShoulder.MaxVelocity = 0
RightShoulder.DesiredAngle = 0 RightShoulder.MaxVelocity = .15 -- loop back around |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:25 PM |
This is all one chunk. The Player's Running animation plays it out automatically, after these settings.
RightHip.CurrentAngle = 2.6 RightShoulder.CurrentAngle = 5 -- oversteer LeftShoulder.CurrentAngle = -1 LeftShoulder.MaxVelocity = 0 RightShoulder.DesiredAngle = 0 RightShoulder.MaxVelocity = .15 -- loop back around
|
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:26 PM |
| Wait so, those are 3 different scripts I could use of off, Or 3 i need to chunk up? |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:29 PM |
Not knowing how to script is a bit like not know how to read, I suppose. You can't understand the scripts, so you don't understand their usage.
wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting
Read this, please. You'll thank yourself for taking the time.
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:30 PM |
Only part I got 4 u, I guess is:
How would I make a left arm do a punch? Posted: 06-24-2013 12:51 PM or look like it?
LeftShoulder.CurrentAngle = -1.5 |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:32 PM |
| im actually decent as scripting, just that CFraming in scripts is new to me. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:33 PM |
U might have to put this as well: LeftShoulder.DesiredAngle = 0 LeftShoulder.MaxVelocity = .15 -- in case he is standing.loop back around |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:36 PM |
Ah, but you wrote a script that was (I'm sorry, this is true) utter gibberish, bro. You have displayed little understanding of scripting, so I advise you read that.
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:37 PM |
So what should this look like?
while true do game.Players.LocalPlayer = plyr LeftShoulder.CurrentAngle = -1.5 while keydown == "q" then wait(0.1) LeftShoulder.DesiredAngle = 0 LeftShoulder.MaxVelocity = .15 -- in case he is standing.loop back around
Im confused. |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2013 03:42 PM |
U have Output open, right, and u r reading it......?
game.Players.LocalPlayer = plyr -- This will not get a Player. You r not reading the declarations above...
while true do while keydown == "q" then -- Sorry I know nothing about keys; compare yours with above........ wait(0.1)
LeftShoulder.CurrentAngle = -1.5 -- u have not declared LeftShoulder, unless u did not paste that bit. To get Joints, look at the declarations above.... LeftShoulder.DesiredAngle = 0 LeftShoulder.MaxVelocity = .15 -- in case he is standing.loop back around
|
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:52 PM |
Yeah,
I'm kind'a sorry I got into this.....
Listen, Buddy, u don't learn how to write script by writing script. You didn't learn to write English by writing English.
Read, a LOT.
|
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:56 PM |
I mean read scripts; not the Wiki. Use the Wiki for reference. There r 5,000,000,000 scripts out there to read.....
Mod; don't write. |
|
|
| Report Abuse |
|
|