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

Im making a shop open up with a part but it doesn't work can anyone help?

This is the script

game.Workspace.Skinshop.Touched:Connect(function(hit) if game.Players:GetPlayersFromCharater(hit.Parent) then game.ReplicatedStorage.ShopGui:FireClient(game.Players:GetPlayerFromCharater(hit.Parent)) end end)

And the output is here

  • GetPlayersFromCharater is not a valid member of Players

2 comments

0

"Charater", spelling issue

0

thank u lol im so stupid

1 answer

✓ Accepted answer

what is a charater its called a character.

game.Workspace.Skinshop.Touched:Connect(function(hit)
	if game.Players:GetPlayersFromCharater(hit.Parent) then
 		game.ReplicatedStorage.ShopGui:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent)) 
	end 
end)

2 comments

0

ik lol i thought i spelled it right xd

0

yeah syntax errors i hate them

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