Advertisement
spacemonkey3591

Data

Jul 6th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local players = game:GetService("Players");
  2. local http = game:GetService("HttpService");
  3.  
  4. local function sendData(player, dtype, data)
  5. player = type(player) == "userdata" and player or players:FindFirstChild(player);
  6. if (player and player:IsA("Player")) then
  7. local dataEntry = Instance.new("StringValue");
  8. dataEntry.Name = "SB_Output:" .. dtype;
  9. dataEntry.Value = http:JSONEncode(data);
  10. dataEntry.Parent = player;
  11. end
  12. end
  13.  
  14. sendData(game.Players.LocalPlayer, "Output", {"Run", "Lets go!"});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement