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 » Scripters
Home Search
 

Rotated When Welded?

Previous Thread :: Next Thread 
Fribet is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
12 Aug 2015 07:39 PM
Heres the thing, it works but when it works it rotates it and it makes it all funky. How do I change the position without changing the rotation of the parts?


game.Players.PlayerAdded:connect(function(P)
P.CharacterAdded:connect(function(C)
local Viking = game.Workspace.VikingHelm:Clone()
for i, v in pairs(Viking:GetChildren()) do
if v:IsA("BasePart") then
v.Anchored = false
v.CFrame = C:WaitForChild("Head").CFrame
local Weld = Instance.new("Weld")
Weld.Part0 = C:WaitForChild("Head")
Weld.C0 = C:WaitForChild("Head").CFrame:inverse()
Weld.Part1 = Viking:GetChildren()[i]
Weld.C1 = Viking:GetChildren()[i].CFrame:inverse()
Viking.Parent = C
Weld.Parent = v
print("Welded: "..v.Name)
end
end
end)
end)


Report Abuse
Fribet is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
12 Aug 2015 07:46 PM
BEEP, bump coming through!
Report Abuse
Fribet is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
12 Aug 2015 07:49 PM
gs b bu fr.,mnfdgnsnkwbvkwa nwv;ae hjeilwv
Report Abuse
Fribet is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
12 Aug 2015 08:02 PM
why u no help!??!?!
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:23 PM
CFrame.new(x,y,z)


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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