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
 

How do I?

Previous Thread :: Next Thread 
Toughlizard1345 is not online. Toughlizard1345
Joined: 13 Jul 2010
Total Posts: 1077
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
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