dozik_clozik

πŸ”΄πŸ”΄NEW SUMMER SLAP BATTLES SCRIPT (AUTO GOAL)πŸ”΄πŸ”΄

Aug 1st, 2024
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | Source Code | 0 0
  1. local blue = Color3.new()
  2. local player = game.Players.LocalPlayer
  3. local character = player.Character or player.CharacterAdded:Wait()
  4. local hrp = character:FindFirstChild("HumanoidRootPart")
  5.  
  6. game["Run Service"].Stepped:Connect(function()
  7.     local ball = workspace:FindFirstChild("Map"):FindFirstChild("Balls"):FindFirstChild("ball")
  8.     local gloveTool = character:FindFirstChildOfClass("Tool")
  9.     local bTrigger = workspace:FindFirstChild("Map"):FindFirstChild("Goalposts")
  10.         :FindFirstChild("blue"):FindFirstChild("Trigger")
  11.     local rTrigger = workspace:FindFirstChild("Map"):FindFirstChild("Goalposts")
  12.         :FindFirstChild("red"):FindFirstChild("Trigger")
  13.     if ball and character:FindFirstChildOfClass("Highlight").FillColor.R >= 0.5 then
  14.         hrp:PivotTo(ball.CFrame * CFrame.new(nil,nil, nil))
  15.         hrp.CFrame = CFrame.lookAt(hrp.Position, rTrigger.Position)
  16.         gloveTool:Activate()
  17.     elseif ball and character:FindFirstChildOfClass("Highlight").FillColor.B >= 0.5 then
  18.         hrp:PivotTo(ball.CFrame * CFrame.new(nil,nil, nil))
  19.         hrp.CFrame = CFrame.lookAt(hrp.Position, bTrigger.Position)
  20.         gloveTool:Activate()
  21.     end
  22.     end)
Advertisement
Add Comment
Please, Sign In to add comment