Hello!
I’m doing my new game named “Biological Potions”
Well I have done table with empty glasses
but when you equip a empty glass it will teleport you to one position and handle is not anchored
I’m using framework:
wait(1)
for _,ok in pairs(script.Parent:GetChildren()) do
if ok.Name == "Handle" then
local Click = Instance.new("ClickDetector")
Click.Parent = ok
Click.MaxActivationDistance = 5
Click.Name = "Click"
end
end
for _,ok in pairs(script.Parent:GetChildren()) do
if ok.Name == "Handle" then
ok.Click.MouseClick:Connect(function(plr)
local Clone = game.ServerStorage.Potions.EmptyBottle:Clone()
Clone.Parent = plr.Backpack
end)
end
end
Here is my explorer and propertis of handle:
Thank for any help!