So i did this
script.Parent.Touched:Connect(function(hit) local player = hit.Parent:GetPlayerFromCharacter() local gui = game.ServerStorage.ScoreBoard:Clone() gui.Parent = player.PlayerGui end)
and says "GetPlayerFromCharacter is not a valid member of Model" and also i dont want it to clone multiple times
You dont invoke the method on the model, you invoke the method on game.players, hit.Parent will be the argument to pass inside the method
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
If you do not want it to be cloned multiple times, search up something called debouncing