Universal Script 📌
1.1k Views
2.4k Executions

JJS dummy square part for battleground copy games

Universal Script 📌
imdisplay
imdisplayPublished 50
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

adds a floating green square on players and humanoid's head, turns red when the player or humanoid is stunned like the jjs dummy, useful to test your combos if its escapable or not beware the green monster only works on certain battleground games (probably kj game or kj battlegrounds type games) that uses workspace.Live.playername.Stuns

View Raw
local liveFolder = workspace:WaitForChild("Live")
local FLOAT_HEIGHT = 3
local function spawnthing(character)
	if not character:IsA("Model") then return end
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	local head = character:FindFirstChild("Head")
	if not humanoid or not head then return end
	if character:FindFirstChild("StunIndicator") then return end
	local part = Instance.new("Part")
	part.Name = "StunIndicator"
	part.Size = Vector3.new(0.6,0.6,0.6)
	part.Anchored = true
	part.CanCollide = false
	part.Material = Enum.Material.Neon
	part.Shape = Enum.PartType.Block
	part.Color = Color3.fromRGB(0, 255, 0)
	part.Parent = character
	part.Orientation = Vector3.new(0, 0, 90)
	local function update()
		if not head.Parent then return end
		part.Position = head.Position + Vector3.new(0, head.Size.Y/2 + FLOAT_HEIGHT, 0)
		local stunsFolder = character:FindFirstChild("Stuns")
		if stunsFolder and #stunsFolder:GetChildren() > 0 then
			part.Color = Color3.fromRGB(255, 0, 0)
		else
			part.Color = Color3.fromRGB(0, 255, 0)
		end
	end
	game:GetService("RunService").RenderStepped:Connect(update)
	local stunsFolder = character:FindFirstChild("Stuns")
	if stunsFolder then
		stunsFolder.ChildAdded:Connect(update)
		stunsFolder.ChildRemoved:Connect(update)
	end
end
for _, character in pairs(liveFolder:GetChildren()) do
	spawnthing(character)
end
liveFolder.ChildAdded:Connect(function(character)
	task.wait(0.5)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
3.7k
184.5k
Bumped 2 hours ago
Script hub
254
19
3 hours ago
Universal Script 📌
28.5k
663.4k
Bumped 4 hours ago
Script hub
13.7k
2.7k
Bumped 7 hours ago
Key System
Paid
Script hub
263.5k
88.1k
Bumped 7 hours ago
Key System
Universal Script 📌
2.8k
9.4k
Bumped 8 hours ago
Universal Script 📌
539
37
Approved 8 hours ago
Universal Script 📌
564
33
Approved 8 hours ago