Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to make a ball drop and then roll?

Asked by 4 years ago

I'm trying to make a script for a bowling game, where the bowling ball is a tool that can be equipped. But I can't seem to figure out a way to make it drop and then roll, so I'm wondering if you can clone the tool and then delete the original instance

This is my code:

tool = script.Parent
handle = tool:WaitForChild("Handle")

tool.Activated:Connect(function()
    local ball = handle:Clone()


    handle:Destroy()


end)

I tried this, but it doesn't work, and it doesn't create any errors either

Any help would be appreciated!

0
I would instead of deleting the handle, change the transparency to 1. Geobloxia 251 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
tool = script.Parent
tool.Activated:Connect(function()
    local char = script.Parent.Parent
    char:UnequipTools(tool)
end)

This won't work lol

0
I already unanchored it Mathenotics 13 — 4y
0
With no scripts, just unanchor the ball and make sure there are no welds/joints on it PrismaticFruits 842 — 4y
Ad

Answer this question