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: Regen Script With Welds

Previous Thread :: Next Thread 
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
20 Jun 2012 06:43 PM
Someone made this for me, but it doesn't work. He isn't replying to messages/X.f's, so can somebody help me? This is in Workspace:

admin = { "Isometricity" }
game.Players.PlayerAdded:connect(function(nP)
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == "!ship boats" then
local x = game.Lighting.Boats:Clone()
for i = 1, #x do
local script = game.Lighting.Joints:Clone()
script.Parent = x[i]
x.Parent = game.Workspace
end
end)
end
end
end)

------------------------------------------------------------------

This is in Lighting titled "Joints":

local prev
local parts = script.Parent:GetChildren()

for i = 1,#parts do
if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
if (prev ~= nil)then
local weld = Instance.new("Weld")
weld.Part0 = prev
weld.Part1 = parts[i]
weld.C0 = prev.CFrame:inverse()
weld.C1 = parts[i].CFrame:inverse()
weld.Parent = prev
end
prev = parts[i]
end
end
Report Abuse
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
20 Jun 2012 07:33 PM
Bump
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
20 Jun 2012 07:57 PM
new first script:

admin = { "Isometricity" }
game.Players.PlayerAdded:connect(function(nP)
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == "!ship boats" then
local x = game.Lighting.Boats:Clone()
for i = 1, #x:GetChildren() do
local script = game.Lighting.Joints:Clone()
script.Parent = x:GetChildren()[i]
end
x.Parent = game.Workspace
end
end)
end
end
end)
Report Abuse
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
21 Jun 2012 11:55 AM
Second one is fine?
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