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: CFrame Problems

Previous Thread :: Next Thread 
kingalpha1 is not online. kingalpha1
Joined: 12 Apr 2012
Total Posts: 56
23 Oct 2014 08:51 AM
Can anyone help me?
===================================================================================
local enabled = true
Player = script.Parent.Parent
mouse = Player:GetMouse()
run = game:GetService("RunService")
local Left_Arm = script.Parent:FindFirstChild("Left Arm")
local Right_Arm = script.Parent:FindFirstChild("Right Arm")
local Core = script.Parent:FindFirstChild("Torso")
local Left_Leg = script.Parent:FindFirstChild("Left Leg")
local Right_Leg = script.Parent:FindFirstChild("Right Leg")
function onKeyDown(key)
key = key:lower()
if key == "t" then
game:GetService("Chat"):Chat(Player.Character.Head, "Focus the mind, reflect upon yourself, and determine the goal.")
Left_Arm = Instance.new ("Part")
Right_Arm = Instance.new("Part")
Core = Instance.new("Part")
Left_Leg = Instance.new("Part")
Right_Leg = Instance.new("Part")
Left_Arm.BrickColor = BrickColor.new("White")
Left_Arm.Size = Vector3.new(2, 3, 2)
Left_Arm.TopSurface = "Smooth"
Left_Arm.BottomSurface = "Smooth"
Left_Arm.Transparency = 0.7
Left_Arm.CanCollide = false
Left_Arm.CFrame = Player.Character["Left Arm"].CFrame *CFrame.new(2, 3, 2)
Left_Arm.Parent = workspace
Right_Arm.BrickColor = BrickColor.new("White")
Right_Arm.Size = Vector3.new(2, 3, 2)
Right_Arm.TopSurface = "Smooth"
Right_Arm.BottomSurface = "Smooth"
Right_Arm.Transparency = 0.7
Right_Arm.CanCollide = false
Right_Arm.CFrame = Player.Character["Right Arm"].CFrame *CFrame.new(2, 3, 2)
Right_Arm.Parent = workspace
Core.BrickColor = BrickColor.new("White")
Core.Size = Vector3.new(3, 3, 2)
Core.TopSurface = "Smooth"
Core.BottomSurface = "Smooth"
Core.Transparency = 0.7
Core.CanCollide = false
Core.CFrame = Player.Character["Torso"].CFrame *CFrame.new(3, 3, 2)
Core.Parent = workspace
Left_Leg.BrickColor = BrickColor.new ("White")
Left_Leg.Size = Vector3.new(2, 3, 2)
Left_Leg.TopSurface = "Smooth"
Left_Leg.BottomSurface = "Smooth"
Left_Leg.Transparency = 0.7
Left_Leg.CanCollide = false
Left_Leg.CFrame = Player.Character["Left Leg"].CFrame *CFrame(2, 3, 2)
Left_Leg.Parent = workspace
Right_Leg.BrickColor = BrickColor.new("White")
Right_Leg.Size = Vector3.new(2, 3, 2)
Right_Leg.TopSurface = "Smooth"
Right_Leg.BottomSurface = "Smooth"
Right_Leg.Transparency = 0.7
Right_Leg.CanCollide = false
Right_Leg.CFrame = Player.Character["RightLeg"].CFrame *CFrame(2, 3, 2)
Right_Leg.Parent = workspace
end
end

mouse.KeyDown:connect(onKeyDown)
===================================================================================
Basically i won't it to be attached to the limbs like...a armor.Can anyone help me?
It just falls through the map.Thanks.
Report Abuse
thermonuklear is not online. thermonuklear
Joined: 19 Oct 2014
Total Posts: 484
23 Oct 2014 08:53 AM
Perhaps, weld them?
Report Abuse
kingalpha1 is not online. kingalpha1
Joined: 12 Apr 2012
Total Posts: 56
23 Oct 2014 09:00 AM
Problem is...I don't know how to do so.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
23 Oct 2014 09:11 AM
local w = Instance.new("Weld",part1)
w.Part0 = part1
w.Part1 = part2
w.C0 = part1.CFrame:inverse()*part2.CFrame
Report Abuse
kingalpha1 is not online. kingalpha1
Joined: 12 Apr 2012
Total Posts: 56
23 Oct 2014 09:14 AM
Hm...how would i write it for my script?
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