#modifying script
28 messages · Page 1 of 1 (latest)
i dont understand what u just said but i want the command to be triggered to this can run
--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local Command: TextChatCommand = TextChatService:WaitForChild("TextChatCommand")
local SystemChannel: TextChannel = TextChatService:FindFirstChild("RBXSystem", true)
Command.Triggered:Connect(function(textSource, message)
SystemChannel:DisplaySystemMessage("Supersizing")
end)
Well then start learning scripting terms
😕 okay..
Do you even know what the first script you’ve send tries to do?
i think i do? it triggers command when someone does the text command
im not sure about local player = Players:GetPlayerByUserId(textSource.UserId) tho
my bad..
Read the method out slowly
it gets the players user id?
Correct
what does (textSource.UserId) mean
TextSource is send with the event. Which basically shows script which id sent the message and if or if not a player dan send a message inside that server
But this can all be googled
oh wait i get it now
i dont really need local player = Players:GetPlayerByUserId(textSource.UserId) right
--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local Command: TextChatCommand = TextChatService:WaitForChild("TextChatCommand")
local admin = 'Tilted_Jeff'
Players.PlayerAdded:Connect(function(player)
if player.Name == admin then
print('test')
Command.Triggered:Connect(function()
end)
end
end)
** You are now Level 3! **
i think im doing something wrong