so i have this coffee tool and this burger tool, and the system goes like this:
click on the plate, the item will go onto the plate, and the gui will appear.
it works perfectly good for the burger, but for the coffee…
(dont mind thats its a little off)
it teleports there!
here is the part of the script that teleports it.
for _,v in pairs(backpack:GetChildren()) do
if v:IsA("Tool") then
print("Player has a tool! Detecting if it's purchased or not!")
if v.Purchased.Value == false then
print("You need to purchase the item first!")
else
v.Parent = plate.Placement.Items
v.Handle.CFrame = CFrame.new(plate.Placement.TP.Position)
v.Handle.Anchored = true
print("Player has purchased item! Giving ending..")
end
end
end
end
and here is the part of the script that calls it
cd.MouseClick:Connect(function(plr)
if debounce == false then
debounce = true
checkForItem(plr)
EndingScreen(plr) --the gui i was talkiing about
else
print("Please wait before clicking again!")
wait(2.5)
debounce = false
end
end)
ive checked if the position of the coffee changes, and it doesnt.
but the position of the burger does?!
they have the same properties, so i really dont understand!!
let me know if you need anymore information