#Sheathing and unsheathing mechanic?
1 messages · Page 1 of 1 (latest)
Its complixated 👍
** You are now Level 3! **
I can do it if u pay me
..?
Pretty complicated
"thanks for making this script for me now give me 500 bobux"
do you even realize wht you're saying
?
do you want to pay people to make this or do you want people to pay you to make this
The second one
because nobody's going to spend money on making something for you
you don't make any sense at all vro
You can’t even spell “bro” correctly js stop talking to me

also that's a slang thing. people say it like that
@trim elbow I mean it is complicated enough where if we walk u through step by step it would probably be a commission
** You are now Level 14! **
But I can tell u some things
Usually when you “unseathe” the weapon gets inserted into a right hand or ur right arm with a module telling the weld where to go for specific weapons/models
Oh
Same thing for sheathing but it’s just cloned an welded onto ur torso
The scripting or the animations
** You are now Level 3! **
I said I don't care about the animations rn I'm just trying to learn to script
Idk how to weld it
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
-- Wait for character to load
player.CharacterAdded:Connect(function(c)
char = c
end)
-- Get sword model from workspace
local swordModel = workspace:WaitForChild("Zanpakuto")
-- Clone the sword
local sword = swordModel:Clone()
sword.Name = "VisualSword"
sword.Anchored = false
sword.CanCollide = false
sword.Parent = char
-- State flag
local isSheathed = true
-- Attach function
local function attachSword(partName, position, rotation)
-- Remove any existing welds
for _, child in ipairs(sword:GetChildren()) do
if child:IsA("WeldConstraint") then
child:Destroy()
end
end
-- Weld to the player
local weld = Instance.new("WeldConstraint")
sword.CFrame = char[partName].CFrame * CFrame.new(position) * CFrame.Angles(unpack(rotation))
sword:SetPrimaryPartCFrame(sword.CFrame)
weld.Part0 = sword
weld.Part1 = char[partName]
weld.Parent = sword
end
-- Toggle sword position
local function toggleSword()
if isSheathed then
-- Put in hand
attachSword("RightHand", Vector3.new(0, 0, 0), {0, 0, 0})
else
-- Put on back
attachSword("UpperTorso", Vector3.new(0, 1, 0.5), {math.rad(90), 0, 0})
end
isSheathed = not isSheathed
end
-- Key press handler
UserInputService.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == Enum.KeyCode.R then
toggleSword()
end
end)
I susd this
Used*
It seems your using weldconstraint
Yea
You would need to use Motor6D or Weld
if you want to control position n stuff
I agree
So do I just change the "WeldConstraint" into just "Weld"?
** You are now Level 2! **
YOU dont make sense 😭
i don't 😭
I'm so confused ngl
I should probably just learn scripting from the basics
And then try to tackle this later
Well yeah if you dont know the basics why would you start with this 😶🌫️
Idk where to start
Just learn how to code in general then use ai to help you understand scripting in roblox specifically
Codeacademy or smth
Its not an easy process
listen man, you won't get far if your whole idea is you wake up one day and go "yeah i wanna remake the strongest battlegrounds"
there's no easy way out of coding
if you really want to make something you'll actually spend time learning to code
sorry if that's harsh, but it's true
Nah ik that but I tried to learn by doing something like this but I didn't end up learning anything
not how that works
I'm just curious how long it takes to learn scripting enough to be able to start making stuff like this
trying to make a big project, right off the bat, won't help you
good question, i don't have that much experience
i'm not a pro scripter but i'm alright
so i wouldn't know
How long did it take you?
i reccomend brawldev tutorial to get started
You can learn in 3 months if you really try
Learn python and then just start scripting with the help of ai
Don’t rely on ai pls
I watched a bunch of creators but I don't learn like tgat
What is that guy talking about then
I mean ai can teach you syntax ig
I’m saying don’t rely on it to script for u
Some dude taught me how to script
It took like 2 months of teaching then 4 more to put it in practice
Then after that ur on ur own
You gotta find and research services and functions built into roblox
Either naturally or if u wanna learn something new
Oh
yoo brawl was how i started aswell
What videos should I watch
** You are now Level 3! **
