Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mouse = game:GetService("Players").LocalPlayer:GetMouse();
- local UIS = game:GetService("UserInputService");
- UIS.InputBegan:Connect(function(i)
- if i.KeyCode == Enum.KeyCode.E then
- local Obj = Mouse.Target;
- if Obj ~= workspace.Terrain then
- for i = 0, 500 do
- game:GetService("ReplicatedStorage").Events.ProjectileImpact:FireServer(Obj, Obj.Position, "Magnetite Crossbow", (Obj.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude);
- end
- end
- end
- end)
- ---------------------------------------------------------------------------
- Lvl Farm
- local Folder = workspace.Critters
- while wait() do
- for i,v in pairs(Folder:GetChildren()) do
- spawn(function()
- if v.Name == "Banto" or v.Name == "Bantae" or v.Name == "Lil Banto" or v.Name == "Lost Soul" or v.Name == "Forgotten Soul" or v.Name == "Lurky Boi" or v.Name == "Golden Banto" then
- local Obj = v.HumanoidRootPart
- for i = 0, 25 do
- game:GetService("ReplicatedStorage").Events.ProjectileImpact:FireServer(Obj, Obj.Position, "Magnetite Crossbow", (Obj.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude);
- end
- end
- end)
- end
- for i,v in pairs(workspace:GetChildren()) do
- spawn(function()
- if v.Name:find("Tree") or v.Name:find("Sun") then
- if v.Name == "Ancient Tree" then
- v:Destroy()
- end
- local Obj = v.Reference
- for i = 0, 15 do
- game:GetService("ReplicatedStorage").Events.ProjectileImpact:FireServer(Obj, Obj.Position, "Magnetite Crossbow", (Obj.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude);
- end
- end
- end)
- end
- for i,v in pairs(workspace:GetChildren()) do
- spawn(function()
- if v.Name:find("Bush") then
- local Obj = v.PrimaryPart
- for i = 0, 15 do
- game:GetService("ReplicatedStorage").Events.ProjectileImpact:FireServer(Obj, Obj.Position, "Magnetite Crossbow", (Obj.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude);
- end
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement