Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- equip = false
- char = Instance.new("Model",script)
- char.Name = plr.Name .."Shield"
- tool = Instance.new("Tool",nil)
- tool.Name = plr.Name .." Shield"
- tool.Equipped:connect(function()
- equip = true
- if tool.Parent:FindFirstChildOfClass("Humanoid") then
- local hum = tool.Parent:FindFirstChildOfClass("Humanoid")
- end
- --local ff = Instance.new("ForceField",tool.Parent)
- --ff.Visible = false
- end)
- tool.Unequipped:connect(function()
- equip = false
- local lechar = tool.Parent.Character
- for _,v in pairs (lechar:children()) do
- if v:IsA("ForceField") then
- v:Destroy()
- end
- end
- end)
- face = plr.Character.Head:FindFirstChild("face")
- if face then
- tool.TextureId = face.Texture
- end
- main = Instance.new("Part",char)
- main.Size = Vector3.new(2.5, 4, 1)
- main.BrickColor = plr.Character.Head.BrickColor
- main.Material = "Plastic"
- main.Name = "Handle"
- main.Position = plr.Character.Head.Position
- newface = Instance.new("Decal",main)
- if face then
- newface.Texture = face.Texture
- end
- newface.Face = "Front"
- detect = Instance.new("ClickDetector",main)
- detect.MaxActivationDistance = 16
- detect.MouseClick:connect(function(player)
- if player ~= owner then
- main.Parent = tool
- tool.Parent = player.Backpack
- detect:Destroy()
- local char2 = player.Character
- local hum = char2:FindFirstChildOfClass("Humanoid")
- if hum then
- local h = hum
- local hp = h.Health
- h.HealthChanged:connect(function()
- if h.Health < hp then
- if h.Health > 0 then
- if equip then
- h.Health = hp
- main.Material = "Neon"
- local s = Instance.new("Sound",main) s.Volume = 3 s.SoundId = "rbxassetid://2851048981" s:Play()
- --newface.Texture = "rbxassetid://7317691"
- wait(.35)
- main.Material = "Plastic"
- --newface.Texture = face.Texture
- end
- end
- hp = h.Health
- end
- end)
- end
- end
- end)
- plr.Character.Parent = nil
- plr.Character = char
- NLS([[
- workspace.CurrentCamera.CameraSubject = owner.Character.Handle
- ]],char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement