Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local blue = Color3.new()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local hrp = character:FindFirstChild("HumanoidRootPart")
- game["Run Service"].Stepped:Connect(function()
- local ball = workspace:FindFirstChild("Map"):FindFirstChild("Balls"):FindFirstChild("ball")
- local gloveTool = character:FindFirstChildOfClass("Tool")
- local bTrigger = workspace:FindFirstChild("Map"):FindFirstChild("Goalposts")
- :FindFirstChild("blue"):FindFirstChild("Trigger")
- local rTrigger = workspace:FindFirstChild("Map"):FindFirstChild("Goalposts")
- :FindFirstChild("red"):FindFirstChild("Trigger")
- if ball and character:FindFirstChildOfClass("Highlight").FillColor.R >= 0.5 then
- hrp:PivotTo(ball.CFrame * CFrame.new(nil,nil, nil))
- hrp.CFrame = CFrame.lookAt(hrp.Position, rTrigger.Position)
- gloveTool:Activate()
- elseif ball and character:FindFirstChildOfClass("Highlight").FillColor.B >= 0.5 then
- hrp:PivotTo(ball.CFrame * CFrame.new(nil,nil, nil))
- hrp.CFrame = CFrame.lookAt(hrp.Position, bTrigger.Position)
- gloveTool:Activate()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment