script.Parent.Touched:Connect(function(hit)
if hit.Parent.FindFirstChild("Humanoid")
then
game.ReplicatedStorage.FoundStar:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent))
end
end)
I want to make it when it hits the model(a star) it pops up with a Guiscreen telling them they have found the star. My code so far for the guiscreen is:
game.ReplicatedStorage.FoundStar.OnClientEvent:Connect(function()
game.Players.LocalPlayer.PlayerGui.StarScreen.Enabled = true
end)
I don't know what the problem is ;/

3 comments
I think thats the problem
Thank you! I'll try this out now
:D