Idk how to make it dont stuck. I made my own part, it adds in my inventory, but when i put it out it just stuck in its spawn.
There is a script:
local tool = game.ServerStorage.Tablet
local giver = script.Parent
local canGive = false
local function GiveTool(player)
01 | if canGive = = false then |
02 |
03 | canGive = true |
04 |
05 | local clone = tool:Clone() |
06 |
07 | clone.Parent = player.Backpack |
08 |
09 | wait( 1 ) |
10 |
11 | canGive = false |
12 |
13 |
14 | end |
end
giver.ClickDetector.MouseClick:Connect(function(player)
1 | GiveTool(player) |
end)
First, I don't think you should make 2 questions for the same thing, and second, you should check Tool's handle and it's children(there is something inside the tool that makes it stuck in it's position)