BobloScript.com

Playground Basketball script - (Auto Green)

Published by bebraOriginal developer: l10scriptsPublished Jul 17
Open in Roblox
73Views
52Copies
NeverUpdated

Description

Functions

  • script will release the ball for you.

Script Code

Raw Code
local UIS = game:GetService("UserInputService")local Holding = falselocal Power = 0local MaxPower = 100UIS.InputBegan:Connect(function(Input, GPE)	if GPE then return end	if Input.UserInputType == Enum.UserInputType.MouseButton1 then		Holding = true		while Holding do			task.wait(0.02)			Power += 2			if Power >= MaxPower then				Power = 0			end			print("Shot Power:", Power)		end	endend)UIS.InputEnded:Connect(function(Input)	if Input.UserInputType == Enum.UserInputType.MouseButton1 then		Holding = false		local GreenStart = 48		local GreenEnd = 52		if Power >= GreenStart and Power <= GreenEnd then			print("GREEN!")			-- Guaranteed make logic		else			print("MISS")		end		Power = 0	endend)
Latest changeScript publishedJul 17

Comments

Loading comments…