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

How Do I Make a Armor Script without a Localscript? [closed]

Asked by 5 years ago
Edited 5 years ago

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)
0
?? Ziffixture 6913 — 5y
0
wow so much context ^^ tacotown2 119 — 5y

Closed as Non-Descriptive by Ziffixture and SerpentineKing

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago

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

0
no EXpodo1234ALT 18 — 5y
Ad