I want to create 2 pets spawner for VIPS section, as mentioned in the title.
I got the pets, but can someone tell me the script/info on how do I make the pets “SPAWNER” give player a pet by touching it.
1 Like
local Players = game:GetService("Players")
local part = pathtopart
local PetToClone = pathtopet
part.Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
local NewPet = PetToClone:Clone()
NewPet.Parent = workspace
end
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.