|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|