I’m trying to set the source of a localscript, but it gives me that error. Here’s my code.
local conf = require(script.Parent.Parent.Parent.init.conf)
local init = require(script.Parent.Parent.Parent.init)
game.Players.PlayerAdded:Connect(function(player)
repeat wait() until player.Character
conf.ready = true
end)
init.sort()
repeat wait() until script.Parent == game.ServerScriptService
local ls = init.new("LocalScript")
ls.Parent = game.StarterGui
ls.Source = [[
local FPSKick = workspace.AntiReach.CORE.Remotes.FPSKick
local punish = require(workspace.AntiReach.CORE.Punish)
local conf = require(workspace.AntiReach.init.conf)
local player = game.Players.LocalPlayer
local run = game:GetService('RunService')
local FPS = 0
repeat wait() until player.Character
run.RenderStepped:Connect(function()
FPS = FPS + 1
end)
while wait(1) do
if FPS < 20 then
player:Kick('low fps')
else
print(1)
end
FPS = 0
end
]]