HansCSia320

Glitchtale: Battle of Souls auto farm

Jul 8th, 2019
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.33 KB | None | 0 0
  1. local lp = game:GetService"Players".LocalPlayer
  2. local repstorage = game:GetService"ReplicatedStorage"
  3.  
  4. local power = "Chara" --change this to the power you have
  5. local move = "BeamBlast" --change this to the move you want to use. if you have Asriel use RainbowBeam,if you have Chara use BeamBlast
  6. local usingBeamBlast = true --for Chara
  7.  
  8. local part = Instance.new("Part",workspace)
  9. part.Size = Vector3.new(100,2,100)
  10. part.Anchored = true
  11.  
  12. _G.On = true
  13.  
  14. while _G.On do
  15.     part.CFrame = CFrame.new(math.random(25000,100000),math.random(25000,100000),math.random(25000,100000))
  16.     lp.Character:WaitForChild"HumanoidRootPart".CFrame = part.CFrame+Vector3.new(0,1,0)
  17.     if power == "Chara" then
  18.         if usingBeamBlast then
  19.             lp.Backpack:FindFirstChild"Chara".BeamBlast.Blast:FireServer(lp.Character:WaitForChild"HumanoidRootPart".CFrame,repstorage.DataFolder[lp.UserId].Data.Exp)
  20.         else
  21.             lp.Backpack:FindFirstChild"Chara"[move]:FindFirstChildOfClass"RemoteEvent":FireServer(repstorage.DataFolder[lp.UserId].Data.Exp)
  22.         end
  23.     elseif power == "Asriel" then
  24.         lp.Backpack:FindFirstChild"Asriel"[move]:FindFirstChild"Charge":FireServer(repstorage.DataFolder[lp.UserId].Data.Exp)
  25.         lp.Backpack:FindFirstChild"Asriel"[move]:FindFirstChild"Fire":FireServer(repstorage.DataFolder[lp.UserId].Data.Exp)
  26.     elseif power == "Bravery" or power == "Undyne" then
  27.         lp.Backpack[power][move]:FindFirstChild"Charge":FireServer()
  28.         lp.Backpack[power][move]:FindFirstChild"Fire":FireServer(lp.Character:WaitForChild"HumanoidRootPart".CFrame,repstorage.DataFolder[lp.UserId].Data.Exp)
  29.     elseif power == "Sans" then
  30.         lp.Backpack:FindFirstChild"Sans"[move]:FindFirstChildOfClass"RemoteEvent":FireServer(lp.Character:WaitForChild"HumanoidRootPart".CFrame,repstorage.DataFolder[lp.UserId].Data.Exp)
  31.     elseif power == "Justice" then
  32.         lp.Backpack:FindFirstChild"Justice".Pellets.Pellets:FireServer(lp.Character:WaitForChild"HumanoidRootPart".CFrame,repstorage.DataFolder[lp.UserId].Data.Exp)
  33.     elseif power == "Gaster" then
  34.         lp.Backpack:FindFirstChild"Gaster".BlueHand.BlueHand:FireServer(repstorage.DataFolder[lp.UserId].Data.Exp)
  35.     else
  36.         lp.Backpack[power][move]:FindFirstChildOfClass"RemoteEvent":FireServer(repstorage.DataFolder[lp.UserId].Data.Exp)
  37.     end
  38.     wait()
  39. end
Add Comment
Please, Sign In to add comment