#Removable boards

1 messages · Page 1 of 1 (latest)

deep meadow
#

How do i make wooden boards that are able to be removed when you use a hammer tool on them? i already have the boards, i just need the script.

fierce knot
tired zephyr
deep meadow
deep meadow
spiral solstice
deep meadow
spiral solstice
#

well im trying to figure out how to get the animationID once i do i can publish this aniamtion to roblox its a standard tool swing you move your hand down than back up I can add more detail need be. But I can send the script in the mean time.

#

Wait do you have the tool made?

spiral solstice
#

Than go to you hammer tool add a local script. Inset this into it.

#

local tool = script.Parent
local CollectionService = game:GetService("CollectionService")

tool.Activated:Connect(function()
local character = tool.Parent
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if not humanoid then return end

local rootPart = character:FindFirstChild("HumanoidRootPart")
if not rootPart then return end

local origin = rootPart.Position
local direction = rootPart.CFrame.LookVector * 5

local rayParams = RaycastParams.new()
rayParams.FilterDescendantsInstances = {character}
rayParams.FilterType = Enum.RaycastFilterType.Blacklist

local result = workspace:Raycast(origin, direction, rayParams)

if result and result.Instance then
    local hitPart = result.Instance
    if CollectionService:HasTag(hitPart, "Breakable") then
        hitPart:Destroy()
    end
end

end)

deep meadow
#

thank you

cedar torrentBOT
#

studio** You are now Level 1! **studio

spiral solstice
#

@deep meadow i dont believe you need an animation to test this due to it still notices you clicking without it

#

so aslong as your hammer tool is in starterpack with a handle you should be good

spiral solstice
# fleet delta Stop spoonfeeding

well same time unless they study LUA they wont ever get the answer they want they can be told what to do but itll never work and itll be a failed project. I feel if im able to do anything little theirs a small chance I helped a sucsessful game on roblox. But now if they asked for a whole project to be done i wouldnt do that free. But small little task im fine with doing.

spiral solstice
# deep meadow thank you

Also have you tested it and did it work? im curious bc tbh never really attempted something like this

fleet delta
#

And youre not helping by giving them exactly what they need here

spiral solstice
fleet delta
#

Theyll just copypaste and never learn hos to reslove the issue if it happens again in a different context

spiral solstice
#

well theirs another feed i sent someone a code... I genunily didnt think there was anything against it.

fleet delta
#

All youre doing is breaking the rules and giving up ur energy to do so, for there is nobreward

spiral solstice
#

yes sir

#

or ma'am sorry to assume that my fault

nimble pelican