|
| 08 Aug 2013 08:18 PM |
Make it so that once someone sits it puts their name in a string and if someone else sits then it breaks and resets the vehicle?
script.Parent.ChildAdded:connect(function() local weld = game.Workspace.Boat4.VehicleSeat.SeatWeld local character = weld.Part1.Parent local player = game.Players:GetPlayerFromCharacter(character) game.Workspace.Boat4.VehicleSeat.Owner.Value = player.Name clone = script.Parent.Parent:Clone() repeat wait() until player.Character.Humanoid.Health == 0 print(Died) script.Parent.Parent:BreakJoints() script.Parent.Parent:Destroy() clone.Parent = game.Workspace clone:MakeJoints() player.Starterpack.Boat4.Disabled = true b.Transparency = 0.5 a.Transparency = 0.5 c.Transparency = 0.5 d.Transparency = 0.5 e.Enabled = false f.Enabled = false g.BrickColor = BrickColor.new("Institutional white") u.BrickColor = BrickColor.new("Institutional white") i.Enabled = false j.Enabled = false k.BrickColor = BrickColor.new("Reddish brown") l.BrickColor = BrickColor.new("Reddish brown") m.BrickColor = BrickColor.new("Reddish brown") n.BrickColor = BrickColor.new("Reddish brown") p.BrickColor = BrickColor.new("Reddish brown") q.BrickColor = BrickColor.new("Reddish brown") r.BrickColor = BrickColor.new("Reddish brown") s.BrickColor = BrickColor.new("Reddish brown") t.BrickColor = BrickColor.new("Reddish brown") v.BrickColor = BrickColor.new("Reddish brown") print(Regened)
end)
|
|
|
| Report Abuse |
|