Recently i have been trying to make a plugin similar to play in studio which is a plugin where you can walk around as your avatar, while still in editing mode.
The problem i have encountered is making the camera focus on the rig, because it is different than how you can do it through playtesting.
I’ve searched the forums and the internet and found nothing.
Any help would be appreciated! Thanks in advance!
My Current Code
Sorry that it’s quite unorganised
local toolbar = plugin:CreateToolbar("Studio Is A Game")
local pluginButton = toolbar:CreateButton(
"Start",
"Studio is a game",
"rbxassetid://0")
pluginButton.Click:Connect(function()
local StudioService = game:GetService("StudioService")
local Players = game:GetService("Players")
local loggedInUserId = StudioService:GetUserId()
local AssetFolder = Instance.new("Folder", workspace)
AssetFolder.Name = "[ DO NOT DELETE ] Studio Is A Game- Assets Folder"
local CharacterModel = game.Players:CreateHumanoidModelFromUserId(loggedInUserId)
CharacterModel.Parent = AssetFolder
end)
Edit: I’m starting to think this is impossible- Any help is appreiciated =D