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
 

Welds not effecting parts instantly?

Previous Thread :: Next Thread 
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
07 Apr 2014 01:54 AM
welding = Instance.new("BindableFunction", Workspace)
welding.Name = "weld"

welding.OnInvoke = function(types, tab)
ps = {
["models"] = function (base, model, angle)
for i, v in next, model:GetChildren() do
if v ~= base and v:IsA("BasePart")then
local cf = base.CFrame:inverse() * v.CFrame()
local weld = Instance.new("Weld")
weld.Parent = base
weld.Part0 = base
weld.Part1 = v
weld.C0 = cf * angle
end
end
end;

["part"] = function (base, second, pos, cframe)
local weld = Instance.new("Weld")
weld.Parent = base
weld.Part0 = weld.Parent
weld.Part1 = second
weld.C0 = pos * cframe
end
}
for i, v in next, ps do
if i == types then
if types == "part" and i == types then
print(tab[3])
v(tab[1], tab[2], tab[3], tab[4])
elseif types == "part" and i == types then
v(tab[1], tab[2], tab[3])
end
end
end
end

The issue:

You have to move the parts for the weld to make them take position.
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