UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Okay, so I'm trying to weld a cframed car I made. When placed in a normal script, the following works in solo mode and not online mode.
local V = script.Parent
local MainPart = V.BasePart
for i,v in pairs(V:GetChildren()) do
if v:IsA("BasePart") then
if v ~= MainPart then
local w = Instance.new("Weld")
w.Part0 = MainPart
w.Part1 = v
w.C1 = w.Part1.CFrame:toObjectSpace(w.Part0.CFrame)
w.Parent = Game.JointsService
end
end
end
for i,v in pairs(V:GetChildren()) do
if v:IsA("BasePart") then
v.Anchored = false
end
end
Any solutions? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Okay, well while I was waiting for replies I decided to try putting it in a localscript. However, you know how you can just put script.Parent regardless of the name of the script, what would I put for local script? The script stopepd working when I tried to use local V = script.Parent so any solutions? |
|
Crunch225Join Date: 2008-03-29 Post Count: 908 |
The issue may be that your using JointService, have you tried not using it just to test? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
What else could I use? |
|
|
JointsService is not there by default, you have to get the service from game.
game:getService("JointsService") |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Thank you! :D One more question however. My friend actually gave me this welding script. It used to work even during normal online mode, however I see that it has stopped. Since I never wrote this script, my scripting knowledge is minimal and I'm not quite sure where I should put the line you suggested. Any more help would greatly be appreciated.
Sorry for all the trouble. :/ |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Because of lack of replies, I attempted to do this:
w.Parent = game:getService("JointsService")
Didn't work. :/ |
|
|
That's actually how to do it, that should be correct. Maybe I got the name wrong. Be right back. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Thank you. Perhaps it is JointService not JointsService? I'll try. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
No luck. :o |
|
Elite777Join Date: 2008-09-21 Post Count: 350 |
Hmm. You're script is fine... Comments before show everything that is needed and Joints Service.... Is that a real service (excuse my ignorance)? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
All I know is that it used to be.
Output told me that JointService isn;t a valid service. However when I changed it back to JointsService, it claims BasePart isn't a member of Workspace. I didn't ever say it was in the workspace. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Well, the issue with BasePart npt being part of workspace wasmjust because I had duplicated in the workspace whichI thought wouldn't be effected. It still does not work hpwever. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Anyone care to help? :/ |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Could this just be ROBLOX's fault? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
I'll blame it on ROBLOX for now. :/ I'm still kind of sad though how I won't be able to cframe cars now. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
There must be a solution! Ir works in solo mode, however not in online! Why? |
|
acealeamJoin Date: 2009-10-16 Post Count: 14875 |
Blame John. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Blaming the staff is all very well, however I still need a solution.
On a side note, thank you for everyone who tried to help me. :) |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Anyone? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Must be a solution. :/ |
|
|
well for welding i usely use the welding tool under build. its very dumbed down in my book, but its easy and works! |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
I would LOVE if that worked, but for coordinate frame you need to use a script to weld. |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
Could it be that not all the parts that the script is welding are actually touching the BasePart? |
|
UbermachtJoin Date: 2010-10-01 Post Count: 113 |
No, not that. |
|