Advertisement
mr2meows

stage prop

Mar 18th, 2023 (edited)
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.39 KB | None | 0 0
  1. local tool = Instance.new("Tool",owner.Backpack)
  2. local handle = Instance.new("Part",tool)
  3. handle.Name = "Handle"
  4. handle.Shape = "Cylinder"
  5. handle.Size = Vector3.new(1,1.2,1)
  6. local mash = Instance.new("SpecialMesh",handle)
  7. mash.MeshId = "http://www.roblox.com/asset/?id=1090756"
  8. mash.TextureId = "http://www.roblox.com/asset/?id=1090759"
  9. tool.Name = "StageProp"
  10. tool.GripPos = Vector3.new(-1.449, 0.358, 0)
  11. local normalgrip = CFrame.new(-0.315224648, 0.535124779, 0, -1.07278083e-06, 0.164355099, -0.9864012, 5.53428492e-07, -0.9864012, -0.164355099, -1, -7.22219454e-07, 9.67233518e-07)
  12. local atackgrip = CFrame.new(-0.315224886, 0.535125375, -1.90734863e-06, -1.21247797e-06, -0.98640126, -0.164355129, 6.8195078e-07, -0.164355129, 0.98640126, -1, 1.0839077e-06, 8.71954057e-07)
  13. local slash = Instance.new("Sound", handle)
  14. local equip = Instance.new("Sound", handle)
  15. slash.SoundId = "http://www.roblox.com/asset/?id=12222216"
  16. equip.SoundId = "http://www.roblox.com/asset/?id=12222225"
  17. function slish()
  18.     tool.Enabled = false
  19.     slash:Play()
  20.     tool.Grip = atackgrip
  21.     wait(.5)
  22.     tool.Grip = normalgrip
  23.     wait(1.5)
  24.     tool.Enabled = true
  25. end
  26. function eqip()
  27.     wait()
  28.     if tool.Parent.StageProp then
  29.         plr = tool.Parent
  30.         if tool.Parent.StageProp:IsA("Accessory") then
  31.             hat = true
  32.             tool.Parent.StageProp:Destroy()
  33.         else
  34.             hat = false
  35.         end
  36.     else
  37.         hat = false
  38.     end
  39.     equip:Play()
  40.     tool.Grip = normalgrip
  41. end
  42. function touch(part)
  43.     if part.Parent.Humanoid then
  44.         part.Parent.Humanoid:TakeDamage(6.25)
  45.     end
  46. end
  47. function fake()
  48.     if hat == true then
  49.         local StageProp = Instance.new("Accessory")
  50.         local Handle = Instance.new("Part")
  51.         local Mesh = Instance.new("SpecialMesh")
  52.         StageProp.AttachmentPoint = CFrame.new(0, -0.349999994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  53.         StageProp.Name = [[StageProp]]
  54.         StageProp.Parent = plr
  55.         Handle.BottomSurface = Enum.SurfaceType.Smooth
  56.         Handle.CanCollide = false
  57.         Handle.Locked = true
  58.         Handle.Name = [[Handle]]
  59.         Handle.Parent = StageProp
  60.         Handle.Size = Vector3.new(1, 1.2000000476837158, 1)
  61.         Handle.TopSurface = Enum.SurfaceType.Smooth
  62.         Mesh.MeshId = [[http://www.roblox.com/asset/?id=1090756]]
  63.         Mesh.MeshType = Enum.MeshType.FileMesh
  64.         Mesh.Parent = Handle
  65.         Mesh.TextureId = [[http://www.roblox.com/asset/?id=1090759]]
  66.     end
  67. end
  68. handle.Touched:Connect(touch)
  69. tool.Activated:Connect(slish)
  70. tool.Equipped:Connect(eqip)
  71. tool.Unequipped:Connect(fake)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement