Advertisement
Blueisim

WIP Match Test

Aug 15th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. local tool=Instance.new("Tool")
  2. local active=false
  3. local head=Instance.new("Part")
  4. head.BrickColor=BrickColor.new("Maroon")
  5. local stick=Instance.new("Part")
  6. stick.BrickColor=BrickColor.new("Pastel brown")
  7. stick.Material="Wood"
  8. local m3=Instance.new("Model")
  9. stick.Position=Vector3.new(26.21, 0.21, -40.545)
  10. stick.Size=Vector3.new(0.2, 0.2, 1.33)
  11. head.Position=Vector3.new(26.2, 0.2, -39.9)
  12. head.Size=Vector3.new(0.4, 0.4, 0.6)
  13. stick.Parent=tool
  14. head.Parent=tool
  15. local w=Instance.new("Weld")
  16. w.Parent=stick
  17. w.Part0=stick
  18. w.Part1=head
  19. stick.CFrame:inverse()
  20. head.CFrame:inverse()
  21. stick.Name="Handle"
  22. tool.Parent=game.Players.COOLBRAYDENNOOB.Backpack
  23. tool.Name="Match"
  24. local player=game.Players.COOLBRAYDENNOOB
  25. local m=player:GetMouse()
  26. tool.Equipped:connect(function()
  27. active=true
  28. end)
  29. tool.Unequipped:connect(function()
  30. active=false
  31. end)
  32. m.Button1Down:connect(function()
  33. if active==true then
  34. print'activated'
  35. local p1=head:Clone()
  36. local p2=stick:Clone()
  37. if p2:FindFirstChild("Weld") then
  38. p2.Weld:Destroy()
  39. end
  40. local w2=Instance.new("Weld")
  41. w2.Parent=p2
  42. w2.Part0=p2
  43. w2.Part1=p1
  44. p1.Parent=m3
  45. p2.Parent=m3
  46. p1.Name="Match"
  47. local fire=Instance.new("Fire")
  48. fire.Parent=p1
  49. end
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement