#Shield

1 messages · Page 1 of 1 (latest)

broken trail
#

Tool = script.Parent;
local arms = nil
local torso = nil
local welds = {}

function Equip(mouse)
wait(0.01)
arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
torso = Tool.Parent:FindFirstChild("Torso")
if arms ~= nil and torso ~= nil then
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
if sh ~= nil then
local yes = true
if yes then
yes = false
sh[1].Part1 = nil
sh[2].Part1 = nil
local weld1 = Instance.new("Weld")
weld1.Part0 = torso
weld1.Parent = torso
weld1.Part1 = arms[1]
weld1.C1 = CFrame.new(-0.3, 0.1, 0.9) * CFrame.fromEulerAnglesXYZ(math.rad(300), 0, math.rad(-85))
welds[1] = weld1
local weld2 = Instance.new("Weld")
weld2.Part0 = torso
weld2.Parent = torso
weld2.Part1 = arms[2]
weld2.C1 = CFrame.new(-1.15, 0.2, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
welds[2] = weld2
end
else
print("sh")
end
else
print("arms")
end
end

function Unequip(mouse)
if arms ~= nil and torso ~= nil then
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
if sh ~= nil then
local yes = true
if yes then
yes = false
sh[1].Part1 = arms[1]
sh[2].Part1 = arms[2]
welds[1].Parent = nil
welds[2].Parent = nil
end
else
print("sh")
end
else
print("arms")
end
end
Tool.Equipped:connect(Equip)
Tool.Unequipped:connect(Unequip)

tiny jungle
#

🙏

#

brother

broken trail
#

😭 ?

tiny jungle
#

wdym local yes = true 😭

rough magnet
tiny jungle
#

what are u trying to do

broken trail
versed mothBOT
#

studio** You are now Level 9! **studio

tiny jungle
#

just animate it with a motor6d

#

also uh

#

why there is a random wait(0.01)

broken trail
tiny jungle
#

lemme

#

show u a video

#

watch this

viral vapor
broken trail
#

Is it a problem if I have the Handle and the shield separated?

#

Since the shield is held by two hands, do I have to make two motor6D in the Handle?

#

@tiny jungle

tiny jungle
#

u dont have to make 2 motor6ds

#

connect a motor6d part 0 is ur hand and part 1 is the handle

#

and u could animate it to look like its holding with 2 hands

broken trail
#

Like this?

#

@tiny jungle

tiny jungle
#

yeah

#

when u animate ur character

#

does like the handle

#

show up

broken trail
#

Erm....

#

@tiny jungle 😭

#

Now I dont have the shield 😭

tiny jungle
#

the image is not loading

#

nvm

#

welllll

#

lowkey

#

dont give up

#

maybe ask chatgpt

#

or watch more tutorials

broken trail
#

From 0

broken trail
#

@tiny jungle Done

#

I used this: local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local rightHand = character:FindFirstChild("RightHand") or character:FindFirstChild("Right Arm")
local event = game:GetService("ReplicatedStorage"):WaitForChild("event")

local function handler()
print("f:")
local grip = rightHand:FindFirstChild("RightGrip")
if grip then
print("grip")
--[[grip.C0 = CFrame.new(0, -0.125, 0) * CFrame.Angles(math.rad(-79), 0, 0)
grip.C1 = CFrame.new(0.6, 0, 0) * CFrame.Angles(0, math.rad(42), 0) ]]
grip.C0 = CFrame.new(1.1, 0, 0.4) * CFrame.Angles(math.rad(10), 0, math.rad(40))
grip.C1 = CFrame.new(-2.9, 0.2, 5) * CFrame.Angles(0, math.rad(180), 0)
print("C0:", grip.C0)
print("C1:", grip.C1)
end
end

event.OnClientEvent:Connect(handler)

tiny jungle
#

is it working

versed mothBOT
#

studio** You are now Level 9! **studio

broken trail