I wanna make a soda fountain and when the player's cup touches the trigger part, it displays the soda in the cup and from the spout, but I wanna use a print statement just to make sure it works, and nothing comes up in the output. (This is inside a local script inside of the trigger part)
local tp = script.Parent
local cup = game.Players.LocalPlayer.Backpack.Cup
tp.Touched:Connect(function(hit)
if hit.Parent.Name == "Cup" then
print("works")
end
end)

1 comment
I already fixed it by setting it to a script. But thanks for answering!