View difference between Paste ID: Ufs6FbaG and CeeLab6W
SHOW: | | - or go back to the newest paste.
1
local RemoteEvent = Instance.new("RemoteEvent", game.ReplicatedStorage)
2
RemoteEvent.Name = "ChangeOwner"
3
4
local function ChangeTycoonOwner(player)
5
game.Workspace.Tycoon.TycoonInfo.Owner.Value = player
6
end
7
8
RemoteEvent.OnServerEvent:Connect(ChangeTycoonOwner)
9