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
 

Re: Help with a script

Previous Thread :: Next Thread 
crhyoyo is not online. crhyoyo
Joined: 27 May 2010
Total Posts: 187
05 Feb 2012 01:46 PM
Ok so how would I make it so that whoever touched the brick that persons name would be in the hint?









g = workspace:GetChildren()
yes = {"crhyoyo"}




function check (name)
for i=1,#yes do
if (string.upper(name) == string.upper(yes[i])) then return true

end
end
return false
end



function onTouched (hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if (check(human.Parent.Name)) then
for i=1 ,#g do
if g[i].ClassName == "Part" then
g[i].CFrame = CFrame.fromEulerAnglesXYZ(.9,.9,.9)
m=Instance.new ("Hint",workspace)
m.Text = .. "Broke the server"
end
end
end
end


workspace.brak.Touched:connect(onTouched)
Report Abuse
crhyoyo is not online. crhyoyo
Joined: 27 May 2010
Total Posts: 187
05 Feb 2012 01:53 PM
btw hint is line 16 & 17
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
05 Feb 2012 01:55 PM
[ Content Deleted ]
Report Abuse
crhyoyo is not online. crhyoyo
Joined: 27 May 2010
Total Posts: 187
05 Feb 2012 02:02 PM
Ya tried that it comes up with "Right arm broke the server"
or "Left leg broke the server"
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
05 Feb 2012 02:03 PM
[ Content Deleted ]
Report Abuse
crhyoyo is not online. crhyoyo
Joined: 27 May 2010
Total Posts: 187
05 Feb 2012 02:10 PM
Thank you
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