Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can i tell if a specific player is playing my game or not?

1 answer

Ok so this meathod uses name for more easyer typing :

local pla = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() -- this is only requied for button if your not using a button use : game.Players.PlayerAdded:connect(function(plr)
local Item = game.ReplicatedStorage:WaitForChild("DevGun") -- not needed but this is the for item give

if game.Players.LocalPlayer.Name == ("BuilderMan") then
item:Clone().Parent = pla.Backpack -- switch this with what thing you want it to do!
print("yes")
else 
	print("no")

end
end)

3 comments

0

Hope it Works!

0

Get out of my post mate.

0

Why It Works

This discussion is preserved as it was. New answers, comments, and votes are closed.