im trying to share this through remote event but its not allowing periods this is my top line, how could I share this?
LOCAL SIDE(ON CLICK):
script.Parent.MouseButton1Click:connect(function()
local player = game.Players.LocalPlayer
if player ~= nil then
if workspace["Zednov's Tycoon Kit"].Tycoons:FindFirstChild(workspace.CurrentCamera.CameraSubject.Name).Owner.Value == nil then
workspace["Zednov's Tycoon Kit"].Tycoons:FindFirstChild(workspace.CurrentCamera.CameraSubject.Name).Owner.Value = workspace:FindFirstChild(player.Name)
game.ReplicatedStorage.ClaimTycoon:FireServer(player, workspace.CurrentCamera.CameraSubject.Name)
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end
end
end)
SERVER SIDE:
game.ReplicatedStorage.ClaimTycoon.OnServerEvent:connect(function(player, CameraSubject)
if player ~= nil then
local PlayerStats = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if PlayerStats ~= nil then
local ownstycoon = PlayerStats:FindFirstChild("OwnsTycoon")
if ownstycoon ~= nil then
ownstycoon.Value = workspace["Zednov's Tycoon Kit"].Tycoons:FindFirstChild(CameraSubject.Name)
player.TeamColor =workspace["Zednov's Tycoon Kit"].Tycoons:FindFirstChild(CameraSubject.Name).TeamColor.Value
player.PlayerGui.Menu.TycoonSelect.Visible = false
player.Character:MoveTo(workspace["Zednov's Tycoon Kit"].Tycoons:FindFirstChild(CameraSubject.Name).Essentials.Spawn.Position + Vector3.new(0,2,0))
end
end
end
end)

1 comment
Its saying the subject is player but it isnt its on the tycoon