|
This script is an owner only door:
script.Parent.Head.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player ~= nil then
local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name)
if cashmoney ~= nil then
local ownstycoon = cashmoney:FindFirstChild("OwnsTycoon")
if not ownstycoon ~= nil then
if not ownstycoon.Value == false then
if script.Parent.Parent.Parent.Owner.Value == nil then
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.Health > 0 then
getPlayerName = GetPlayerFromCharacter(hit.Parent)
if script.Parent.Parent.Parent.Owner.Value == ..getPlayerName then
print("hi")
else
hit.Parent.Head:remove()
end
for the tycoon kit: http://www.roblox.com/berezaas-Tycoon-Kit-v1-9-FAV-IF-YOU-USE-D-item?id=182162455 |