generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: help me!!11 guise

Previous Thread :: Next Thread 
Cobalt1164 is not online. Cobalt1164
Joined: 29 Apr 2012
Total Posts: 634
12 May 2014 06:10 PM
player = game.Players.LocalPlayer
char = player.Character
tool = Instance.new("Tool")
tool.Parent = player.Backpack
script.Parent = tool
tool.Name = "Sword"
handle = Instance.new("Part")
handle.Parent = char
handle.Name = "Handle"
handle.Size = Vector3.new(0,0,0)
handle.TopSurface = 0
handle.BottomSurface = 0
handle.Position = ["Right Arm"]
w = Instance.new("Motor",handle)
w.Part0 = char.Torso
w.Part1 = handle
w.C0 = CFrame.new(-0.4,-0.5225,0.525)*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0))
handle.BrickColor = BrickColor.new("Black")
local mesh = Instance.new("SpecialMesh", handle)
mesh.MeshId = "http://www.roblox.com/asset/?id=77403584"
mesh.TextureId = "http://www.roblox.com/asset/?id=77403631"

function Selected(Tool)
w.Part0 = char["Right Arm"]
w.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
end


this is my sword that im making
the sword wont go into my hand
when i equip the tool
instead it just lifts up my arm
helpppppppppppppppppp
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2014 06:29 PM
bad script! you better punish the script so it knows not to do that again
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
12 May 2014 06:31 PM
Dem scripts don't know right from wrong which is why you need to teach em. Some even go as far as biting by crashing.
Report Abuse
Cobalt1164 is not online. Cobalt1164
Joined: 29 Apr 2012
Total Posts: 634
12 May 2014 06:33 PM
i cant punish the script
it's to beautiful
Report Abuse
awesom914 is not online. awesom914
Joined: 06 Mar 2011
Total Posts: 4222
12 May 2014 06:53 PM
w.Part0 needs to be the parent of the weld. Switch them around.
w.Part0 = handle
w.Part1 = char.Torso
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
12 May 2014 07:00 PM
Part0 doesn't need to be the parent of the weld. Part0 just determines how C0 acts because C0 is in the object space of Part0. C1 is in object space of Part1.
Report Abuse
Cobalt1164 is not online. Cobalt1164
Joined: 29 Apr 2012
Total Posts: 634
13 May 2014 03:49 PM
any1?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image