Advertisement
1nubloku

espada

Nov 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plr = owner
  2. equip = false
  3. char = Instance.new("Model",script)
  4. char.Name = plr.Name .."Shield"
  5. tool = Instance.new("Tool",nil)
  6. tool.Name = plr.Name .." Shield"
  7. tool.Equipped:connect(function()
  8. equip = true
  9. if tool.Parent:FindFirstChildOfClass("Humanoid") then
  10. local hum = tool.Parent:FindFirstChildOfClass("Humanoid")
  11. end
  12. --local ff = Instance.new("ForceField",tool.Parent)
  13. --ff.Visible = false
  14. end)
  15. tool.Unequipped:connect(function()
  16. equip = false
  17. local lechar = tool.Parent.Character
  18. for _,v in pairs (lechar:children()) do
  19. if v:IsA("ForceField") then
  20. v:Destroy()
  21. end
  22. end
  23. end)
  24. face = plr.Character.Head:FindFirstChild("face")
  25. if face then
  26. tool.TextureId = face.Texture
  27. end
  28. main = Instance.new("Part",char)
  29. main.Size = Vector3.new(2.5, 4, 1)
  30. main.BrickColor = plr.Character.Head.BrickColor
  31. main.Material = "ForceField"
  32. main.Name = "Handle"
  33. main.Position = plr.Character.Head.Position
  34. newface = Instance.new("Decal",main)
  35. if face then
  36. newface.Texture = face.Texture
  37. end
  38. newface.Face = "Front"
  39. detect = Instance.new("ClickDetector",main)
  40. detect.MaxActivationDistance = 16
  41. detect.MouseClick:connect(function(player)
  42. if player ~= owner then
  43. main.Parent = tool
  44. tool.Parent = player.Backpack
  45. detect:Destroy()
  46. local char2 = player.Character
  47. local hum = char2:FindFirstChildOfClass("Humanoid")
  48. if hum then
  49. local h = hum
  50. local hp = h.Health
  51. h.HealthChanged:connect(function()
  52. if h.Health < hp then
  53. if h.Health > 0 then
  54. if equip then
  55. h.Health = hp
  56. main.Material = "Neon"
  57. local s = Instance.new("Sound",main) s.Volume = 3 s.SoundId = "rbxassetid://2851048981" s:Play()
  58. --newface.Texture = "rbxassetid://7317691"
  59. wait(.35)
  60. main.Material = "ForceField"
  61. --newface.Texture = face.Texture
  62. end
  63. end
  64. hp = h.Health
  65. end
  66. end)
  67. end
  68. end
  69. end)
  70. plr.Character.Parent = nil
  71. plr.Character = char
  72. NLS([[
  73.  
  74. workspace.CurrentCamera.CameraSubject = owner.Character.Handle
  75.  
  76. ]],char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement