Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I'm making a script builder, there's no error, but it's not working?

Hi! I'm having some trouble. There's no error, but this isn't working and has no errors. Help! old post with more information


Convert:

local link = script.scr.Value
require(3747589551)()
-- nebula's ezconvert
--[[
PUT YOUR SCRIPTS BELOW HERE VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV	
]]--
script.LocalScript.Disabled = false

script.LocalScript.vbm.OnServerEvent:Connect(function(useless, scri)
if script.ver.Value == "load" then
	loadstring(scri)
	print("Successfully loaded link "..link)
else
	error('Version invalid (Put in load.)')
end
end)

LocalScript:

local link = script.Parent.scr
if script.Parent.ver.Value == "load" then
	script.vbm:FireServer('THIS IS USELESS','loadstring(game:HttpGet(('..link.Value..'),true))())')
	print("Successfully loaded link "..link.Value.." aka ".."loadstring(game:HttpGet(("..link.Value.."),true))())")
end

My workspace


oh yeah btw here's the module for it

3 comments

0

is that just thescript builder freemodel?

0

no i made it

0

loadstring returns a funciton not call it so you have to call it againlol

1 answer

Ok I'm gonna address some things.

The Global loadstring returns a function but does not immediately calls it. so you have to call it again. (Convert Line 11)

local a = loadstring('print"wow"');
print(type(a))--> function 
a() --> "wow"

Based on the localscript line 3, you called function FireServer with two arguments, your useless string and your actual source code. But since Event, OnServerEvent's first parameter is always the player instance, the parameters are shifted 1 to the right. The result is that your useless string will be parameter scri and your parameter useless will be the player. So I suggest removing the useless string.

This discussion is preserved as it was. New answers, comments, and votes are closed.