Oh, so i would have to use log service instead if i want to peform what i want to do?
You can just add an xpcall or pcall to the thread of PlayerAdded like I previously mentioned to fetch the error, scriptcontext.error actually fetches the errors from all scripts. I am not sure if that’s your goal, but xpcall and pcall catch the error and prevent it from destroying the entire script, they also print the error for ya.
Alright, i will try it right now.
1 Like
This is my script:
local ScriptContext = game:GetService(“ScriptContext”)
game.Players.PlayerAdded:Connect(function(Player)
pcall(function()
ScriptContext.Error:Connect(function(message, trace, script)
local PlayerCloneThingy = game.ReplicatedStorage.PlayerCloneThingy
local NewThingy = PlayerCloneThingy:Clone()
NewThingy.Parent = Player
end)
end)
end)
Im going to try it right now.