Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you Help me with this script?

Asked by 10 years ago

I have put this script in starterpack and I want this script to actually work for the individual player that has it in their starterpack but It only works When I put "local p = game.Players:FindFirstChild(rflor360)" which only makes the script only work for me

Heres the script (Not the Full Script):

local p = game.Players:FindFirstChild("rflor360")
script.Name = "HelloScript"
p.Chatted:connect(function(message)
local msg = string.lower(message)

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

Well, here's how I do Chatted events. I just put a script in workspace, with this code:

game.Players.PlayerAdded:connect(function(plr)
    plr.Chatted:connect(function(msg)
        --Code here
    end)
end)

This should work better than putting the script in starter pack.

Ad

Answer this question