Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local players = game:GetService("Players");
- local http = game:GetService("HttpService");
- local function sendData(player, dtype, data)
- player = type(player) == "userdata" and player or players:FindFirstChild(player);
- if (player and player:IsA("Player")) then
- local dataEntry = Instance.new("StringValue");
- dataEntry.Name = "SB_Output:" .. dtype;
- dataEntry.Value = http:JSONEncode(data);
- dataEntry.Parent = player;
- end
- end
- sendData(game.Players.LocalPlayer, "Output", {"Run", "Lets go!"});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement