How would I find the character from this code below? I know how to call the character from other things but, I'm trying something different this time. I couldn't seem to find much about this myself online and, I would love if you could provide me with some links possibly? I appreciate the help! Thank you in advance as always.
local debounce = true
script.Parent.Touched:Connect(function(hit)
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
--Call character but, I don't how to from this.
if player and player.leaderstats.Tix.Value >= 9000 and debounce == true then
--Caramelldansen insert or whatever
debounce = false
wait(1)
debounce = true
end
end)

1 comment
Awesome, thank you for the help! I appreciate it, I learned something new today.