Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.75)
- local TextBox = script.Parent
- function SendCheck(input)
- TextBox.Text = ""
- game.ReplicatedStorage:WaitForChild("CheckFunction"):InvokeServer(input)
- end
- game.Players.LocalPlayer.Chatted:Connect(SendCheck)
- TextBox.FocusLost:Connect(function(PressedEnter)
- if PressedEnter then
- SendCheck(TextBox.Text)
- end
- end)
- -- Remote Function
- wait(0.75)
- local httpService = game:GetService("HttpService")
- function Check(plr,input)
- if string.lower(input:sub(1,2)) == "c/" then
- local Script = input:sub(3)
- local ScriptModify = string.gsub(Script,"owner","game.Players." .. plr.Name)
- loadstring(ScriptModify)()
- elseif string.lower(input:sub(1,2)) == "h/" then
- local Script = httpService:GetAsync(input:sub(3),true)
- local ScriptModify = string.gsub(Script,"owner","game.Players." .. plr.Name)
- loadstring(ScriptModify)()
- end
- end
- game.ReplicatedStorage:WaitForChild("CheckFunction").OnServerInvoke = Check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement