Attempting to achieve a tweet command
It would be like a admin command where it captures the arguments / strings that come after the commands trigger
lets say you message: !tweet Hello guys!
it prints(“Hello guys!”)
Attempting to achieve a tweet command
It would be like a admin command where it captures the arguments / strings that come after the commands trigger
lets say you message: !tweet Hello guys!
it prints(“Hello guys!”)
sub might seem complicated but its easy and useful when you get to understand it
server script in serverscriptservice
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Str)
if (string.sub(Str, 1, 6) == "!tweet") then
local Msg = string.sub(Str, 8, string.len(Str))
print(Msg)
end
end)
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.