Advertisement
robloxscript111

(UPDATE 6.7) Terraria Boss Battles: REMASTERED

Feb 6th, 2023
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. local co1 = coroutine.create(function()
  2. local player = game:GetService("Players").LocalPlayer
  3. local mouse = player:GetMouse()
  4. local beam = false
  5. local UIS = game:GetService("UserInputService")
  6. local keyBind = "F"
  7. UIS.InputBegan:Connect(function(input,Chatting)
  8. if Chatting then return end
  9. if input.KeyCode == Enum.KeyCode[keyBind] then
  10. if beam == false then
  11. beam = true
  12. while beam == true do
  13. wait (0.01)
  14. local pos = mouse.Hit.Position
  15. local A_1 = pos
  16. local Event = game:GetService("Workspace")[player.Name].Bow.Shot.ShootArrow
  17. Event:FireServer(A_1)
  18. end
  19. else
  20. beam = false
  21. end
  22. end
  23. end)
  24. end)
  25.  
  26. local co2 = coroutine.create(function()
  27. local player = game:GetService("Players").LocalPlayer
  28. local mouse = player:GetMouse()
  29. local UIS = game:GetService("UserInputService")
  30. local keyBind = "F"
  31. UIS.InputBegan:Connect(function(input,Chatting)
  32. if Chatting then return end
  33. if input.KeyCode == Enum.KeyCode[keyBind] then
  34. for count = 0, 50, 1 do
  35. wait (0.001)
  36. local pos = mouse.Hit.Position
  37. local A_1 = pos
  38. local A_2 = 0
  39. local A_3 = game:GetService("Workspace")[player.Name]
  40. local Event = game:GetService("Workspace")[player.Name]["Star Cannon"].Shoot.RemoteEvent
  41. Event:FireServer(A_1, A_2, A_3)
  42. end
  43. wait (1)
  44. end
  45. end)
  46. end)
  47.  
  48. coroutine.resume(co1)
  49. coroutine.resume(co2)
  50.  
  51. local player = game:GetService("Players").LocalPlayer
  52. local mouse = player:GetMouse()
  53. local beam = false
  54. local UIS = game:GetService("UserInputService")
  55. local keyBind = "F"
  56. UIS.InputBegan:Connect(function(input,Chatting)
  57. if Chatting then return end
  58. if input.KeyCode == Enum.KeyCode[keyBind] then
  59. if beam == false then
  60. beam = true
  61. while beam == true do
  62. wait (0.001)
  63. local pos = mouse.Hit.Position
  64. local A_1 = pos
  65. local A_2 = 0
  66. local A_3 = game:GetService("Workspace")[player.Name]
  67. local Event = game:GetService("Workspace")[player.Name].Musket.Shoot.RemoteEvent
  68. Event:FireServer(A_1, A_2, A_3)
  69. end
  70. else
  71. beam = false
  72. end
  73. end
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement