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
|
  |
| Joined: 27 May 2010 |
| Total Posts: 187 |
|
| |
|
| |
|
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 |
|
|
| |
|
crhyoyo
|
  |
| Joined: 27 May 2010 |
| Total Posts: 187 |
|
| |
|