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 » Club Houses » Clans & Guilds
Home Search
 

,

Previous Thread :: Next Thread 
KlausBlitzenstein is not online. KlausBlitzenstein
Joined: 19 Oct 2010
Total Posts: 16631
27 Jun 2015 11:19 PM
There is something that needs to be added in this script. This script is put in a seat. This script is supposed to give the player a certain tool. The problem is that whenever I sit on the seat, which gives me the seat, the tool does not work, however, it works in Roblox studio. I was told to add "wait(1)" to the script. Where would I add this?





function Seated(theSeated)
dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
if dude ~= nil then
thing2 = script.Parent.Turret1212:clone()
thing2.Parent = dude.Backpack
thing2.Vehicle.Value = script.Parent.Parent
end
end


function UNSeated(theSeated)
dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
if dude ~= nil then
if dude.Backpack:findFirstChild("Turret1212") ~= nil then
dude.Backpack:findFirstChild("Turret1212").Active = false
dude.Backpack:findFirstChild("Turret1212"):remove()
end
end
end

script.Parent.ChildAdded:connect(Seated)
script.Parent.ChildRemoved:connect(UNSeated)



~ Klaus Blitzenstein, Chairman of the Righteous Supremacy Party
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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