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 » Scripters
Home Search
 

Touching getting player ?

Previous Thread :: Next Thread 
Bulvyte is not online. Bulvyte
Joined: 21 May 2014
Total Posts: 716
29 Jun 2016 09:05 AM
Since scriptinghelpers.org is AFK im stuck on this script...

player = game.Workspace.Character

function onTouch(hit)
hit.Parent.game.Players:GetPlayerFromCharacter(player)
if script.Parent.Parent.Parent.Owner.Value == player then
print("Owner touched da brick")
end

script.Parent.Touched:connect(onTouch)

what i want is when the owner touches the bricks it should print that text when it doesn't and when someon else touches it shouldn't do anything which is good


Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
29 Jun 2016 09:07 AM
player = game.Workspace.Character

function onTouch(hit)
game.Players:GetPlayerFromCharacter(hit.Parent)
if script.Parent.Parent.Parent.Owner.Value == player then
print("Owner touched da brick")
end

script.Parent.Touched:connect(onTouch)




please don't make a tycoon with this diabetes script


- Isosta
Report Abuse
Bulvyte is not online. Bulvyte
Joined: 21 May 2014
Total Posts: 716
29 Jun 2016 09:12 AM
rofl i get a blue line at "player" and 1 end marks the bottom line with red line


Report Abuse
Bulvyte is not online. Bulvyte
Joined: 21 May 2014
Total Posts: 716
29 Jun 2016 09:19 AM
ah, nvm i added local player = game.Players:GetPlayerFromCharacter(hit.Parent) line..


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