Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Make a Armor Script without a Localscript?

Here ~~


local p = game.Players.LocalPlayer
d = false 

script.Parent.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()
if d then return end 
d = true 
local c = p.Character
p.Armor.Defend.Value = p.Armor.Defend.Value+3
p.Armor.HitPoint.Value = p.Armor.HitPoint.Value+15
local g = c:GetChildren()
for i = 1,#g do 
if g[i]:IsA("CharacterMesh") or g[i]:IsA("Hat") or g[i]:IsA("Pants") or g[i]:IsA("Shirt") then 
g[i]:Remove()
elseif g[i]:IsA("BasePart") and g[i].Name ~= "Torso" then 
end 
end 
script.Parent:findFirstChild("HeavyIronArmor Left Arm"):Clone().Parent = c
script.Parent:findFirstChild("HeavyIronArmor Left Leg"):Clone().Parent = c
script.Parent:findFirstChild("HeavyIronArmor Right Arm"):Clone().Parent = c
script.Parent:findFirstChild("HeavyIronArmor Right Leg"):Clone().Parent = c
script.Parent:findFirstChild("HeavyIronArmor Torso"):Clone().Parent = c
local h = Instance.new("Hat")
h.Name = "Helmet"
local hp = Instance.new("Part")
hp.Name = "Handle"
hp.Parent = h
hp.Locked = true 
hp.FormFactor = "Symmetric"
hp.Size = Vector3.new(1,1,1)
hp.TopSurface = "Smooth"
hp.BottomSurface = "Smooth"
hp.Position = c.Head.Position
script.Parent.Mesh:Clone().Parent = hp
h.AttachmentPos = Vector3.new(0,0.3,-0.03)
h.Parent = c
end)
end)

script.Parent.Deselected:connect(function()
script.Parent:Remove()
end)

2 comments

0

??

0

wow so much context ^^

1 answer

Real simple. Just make a client event. EG Onclientevent:Connect(function() to declare it do :FireClient()

1 comment

0

no

This discussion is preserved as it was. New answers, comments, and votes are closed.