Advertisement
eea

fillball5

eea
Sep 11th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local remote = Instance.new("RemoteEvent",game.ReplicatedStorage)
  2. remote.Name = owner.Name
  3.  
  4. NLS([[
  5. local players = game:GetService("Players")
  6. local player = players.LocalPlayer
  7. local mouse = player:GetMouse()
  8. local character = player.Character
  9. local root = character:WaitForChild("HumanoidRootPart")
  10. local remote = game.ReplicatedStorage:FindFirstChild(owner.Name)
  11. local terrain = workspace.Terrain
  12.  
  13. mouse.Button1Down:Connect(function()
  14. --vector3 center, number radius and enum material
  15. if remote then
  16. remote:FireServer(mouse.Hit.Position)
  17. end
  18. end)
  19. ]], owner.Character)
  20.  
  21. game.ReplicatedStorage:FindFirstChild(owner.Name).OnServerEvent:Connect(function(mousepos)
  22. print("Server fired.")
  23. print(mousepos)
  24. workspace.Terrain:FillBall(mousepos, 10, Enum.Material.Grass)
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement