I'm attempting to use a require script I made, but loadstring() does not seem to be doing the trick. If I don't use loadstring, it works somehow. Any help?
Require Method: require(6153080832):A("rookiecookie153")
Actual Script:
local module = {}
function module:A(player)
local sc = script:WaitForChild("char")
sc.Parent = game.ReplicatedStorage
local a
local ret
local scrip = script.Animate
a = pcall(function()
ret = game.Players[player]
end)
if a == true then
sc.Name = ret.Name
script.Parent = workspace
local char = ret.Character
local pos = char:GetPrimaryPartCFrame()
char:Destroy()
ret.Character = sc
sc.Parent = workspace
sc:SetPrimaryPartCFrame(pos)
scrip.Parent = sc
scrip.Disabled = false
end
script.Parent = game.ReplicatedStorage
end
return module

2 comments
How are you using loadstring?
loadstring("require(6153080832):A('rookiecookie153')")()