Advertisement
robloxscript111

Elemental Powers Tycoon [🔮CRYSTAL]

Feb 15th, 2023
7,931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. -- Amph#5896
  2.  
  3. local player = game:GetService("Players").LocalPlayer
  4. local UIS = game:GetService("UserInputService")
  5. local toolList = {}
  6. _G.goGO = true
  7.  
  8. local function collideWith(button) -- Acts as another firetouchinterest
  9. local oldSize = button.Size
  10. local oldT = button.Transparency
  11. local oldCast = button.CastShadow
  12. local oldCollide = button.CanCollide
  13.  
  14. button.CastShadow = false
  15. button.CanCollide = false
  16. button.Transparency = 1
  17. task.wait()
  18. button.Size = Vector3.new(10000, 10000, 10000)
  19. task.wait()
  20. button.Size = oldSize
  21. button.CastShadow = oldCast
  22. button.CanCollide = oldCollide
  23. button.Transparency = oldT
  24. end
  25.  
  26. UIS.InputBegan:Connect(function(k)
  27. if k.KeyCode == Enum.KeyCode.Q then
  28. for i, v in pairs(player.Backpack:GetChildren()) do
  29. if not string.find(v.Name, "Sword") or not string.find(v.Name, "Blade") or not string.find(v.Name, "Saber") or not string.find(v.Name, "Saber") then
  30. local name = v.Name
  31. v.Parent = player.Character task.wait()
  32.  
  33. local args = {[1] = game:GetService("ReplicatedStorage").Magic:FindFirstChild(v.Name, true).Parent.Name, [2] = v.Name, [3] = {["Camera"] = workspace.CurrentCamera.CFrame, ["Mouse"] = player:GetMouse().Hit.Position}}
  34. game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("DoMagic"):FireServer(unpack(args)) task.wait(0.1)
  35.  
  36. player.Character[name].Parent = player.Backpack
  37. end
  38. end
  39. end
  40. end)
  41.  
  42. while _G.goGO do task.wait(1)
  43. for i, v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  44. for i, v1 in pairs(v:GetChildren()) do
  45. if string.find(v1.Name, "Ability") then
  46. collideWith(v1.Button)
  47. end
  48. end
  49. end
  50. end
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement