this is what i got, but i dont know how to get the name/ parent...
--PC
bin = script.Parent
function checkOkToLetIn(name)
permission = game.Workspace.Allowed:children()
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i].Name)) then return true end
end
return false
end
function onButton1Down(mouse)
--lol
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
if checkOkToLetIn(------????------) then
msg= Instance.new("Message")
msg.Parent= ----------?????????----------
msg.Text= "You are an admin!"
wait(3)
msg.Text= "Type /help for info.."
wait(2)
msg.Text= "on how to control the ride!"
wait(3)
msg.Parent= nil
else
msg= Instance.new("Message")
msg.Parent= -----?????????------
msg.Text= "Sorry this is an admin only tool."
wait(3)
msg.Parent= nil
end
end
bin.Selected:connect(onSelected) |