inside the rp game i’m creating, i’m working on a Discord-like interface where players can message themselves within private channels so i’ve thought about adding a system whereby the player can show their screen (including the interface) to the other player but I have no idea how to do this, can someone help me?
Thanks:)
I dont think this is quite possible, could be with alot of cloning and changing up values and stuff, I wouldnt know where to stably start. Tables and remotes would definitely be required though, even if this WAS possible.
2 Likes
Camera.CameraSubject = OtherHumanoid
.
https://developer.roblox.com/en-us/api-reference/property/Camera/CameraSubject
You can set a client’s camera’s subject such that it focuses on another client’s character’s ‘Humanoid’ instance (by default the camera focuses on the client’s own character’s ‘Humanoid’ instance).
1 Like
From @nour3e7 [He doesnt meet reply requirments yet so had me send this]
-- Values
local Connection = nil
local PlayerToShowScreen = nil --["Player or make a function that sets it or whatever"]
local Player = nil --["Player that wants to see the screen"]
Connection = game:GetService("RunService").Heartbeat:Connect(function()
local PlayerGui = PlayerToShowScreen.PlayerGui:GetChildren()
Player.PlayerGui:ClearAllChildren()
for _, Gui in pairs(PlayerGui:GetChildren()) do
local Clone = Gui:Clone()
Clone.Parent = Player.PlayerGui
end
end)
Make sure that the PlayerToShowScreen is set as a playerinstance and the same with Player
1 Like