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 » Game Design
Home Search
 

Re: Player touches brick, player sits...

Previous Thread :: Next Thread 
coop6578 is not online. coop6578
Joined: 11 Aug 2014
Total Posts: 3343
03 Nov 2015 05:00 PM
How would I do this?
I've tried to learn to script but failed...



Sorry, my BillabobIgnus typed that...
Report Abuse
Alkan is not online. Alkan
Joined: 04 Dec 2008
Total Posts: 907
03 Nov 2015 05:02 PM
function touched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then
hit.Parent.Humanoid.Sit=true
end
end
script.Parent.Touched:connect(touched)
Report Abuse
angerdriven is not online. angerdriven
Joined: 09 Nov 2013
Total Posts: 1984
03 Nov 2015 05:13 PM
i thought it was an onTouch (); function @alkan

then you freeze the player with another script after sitting
Report Abuse
Alkan is not online. Alkan
Joined: 04 Dec 2008
Total Posts: 907
03 Nov 2015 05:17 PM
you can name the function whatever you want. im not coding the entire game for the guy
Report Abuse
alfieq is not online. alfieq
Joined: 15 Feb 2008
Total Posts: 431
04 Nov 2015 02:37 AM
Unless he/she was talking about a brick that you can sit.. You can spawn a "Seat" or "VehicleSeat".
Report Abuse
alphaboy299 is not online. alphaboy299
Joined: 15 Jun 2013
Total Posts: 1496
04 Nov 2015 04:09 AM
Just put a seat instead of a brick.
Report Abuse
Stratagetic is not online. Stratagetic
Joined: 15 Oct 2015
Total Posts: 39
04 Nov 2015 07:08 AM
function onTouched(brick)
local human = brick.Parent:findFirstChild("Humanoid")
if (human ~= nil)then
human.Sit=true
end
end

connection = script.Parent.Touched:connect(onTouched)


This is advertising.
Report Abuse
coop6578 is not online. coop6578
Joined: 11 Aug 2014
Total Posts: 3343
07 Nov 2015 03:13 PM
no it can't be a seat because that wouldn't work for what i'm doing
Report Abuse
Nik_Kershaw is not online. Nik_Kershaw
Joined: 25 Jul 2014
Total Posts: 40000
02 May 2017 02:15 PM
nice siggy


also PA
Report Abuse
coop6578 is not online. coop6578
Joined: 11 Aug 2014
Total Posts: 3343
03 May 2017 03:09 PM
this is old xd


Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
03 May 2017 03:26 PM
no more necrobumps


shadilay
Report Abuse
sodaghost13 is not online. sodaghost13
Joined: 18 Apr 2014
Total Posts: 49
03 May 2017 04:03 PM
This isn't the scripting or building help forums!


#Sodaghost13
Report Abuse
sodaghost13 is not online. sodaghost13
Joined: 18 Apr 2014
Total Posts: 49
03 May 2017 04:04 PM
lolololololol Anyone still alive here today??



#Sodaghost13
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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