-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemotionLoaderModule.lua
More file actions
35 lines (32 loc) · 1.09 KB
/
RemotionLoaderModule.lua
File metadata and controls
35 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local module = {}
function checkForScriptAndDelete(parent: Instance, scriptname: string)
if parent:FindFirstChild(scriptname) then
parent:FindFirstChild(scriptname):Destroy()
end
end
function module:Initiate(isplugin: boolean)
checkForScriptAndDelete(game:GetService("ServerScriptService"), "Remotion")
checkForScriptAndDelete(game:GetService("StarterPlayer").StarterPlayerScripts, "Remotion")
for _, v: BaseScript in pairs(script:GetChildren()) do
if v:IsA("BaseScript") then
if v.Name == "RemotionServer" then
v.Name = "Remotion"
v.Parent = game:GetService("ServerScriptService")
else
v.Parent = game:GetService("StarterPlayer").StarterPlayerScripts
end
v.Enabled = true
end
end
game:GetService("Workspace").RemotionLoaderAsset:Destroy()
task.spawn(function()
if isplugin ~= true then
local hint = Instance.new("Hint", game:GetService("Workspace"))
hint.Text = "Remotion has loaded! Now you can use this remote log spammer in your own ROBLOX games."
hint.Name = "THIS WILL AUTOMATICALLY DELETE IN 5 SECONDS"
wait(4)
hint:Destroy()
end
end)
end
return module