View difference between Paste ID: yK6MZbGs and T0znjxMZ
SHOW: | | - or go back to the newest paste.
1
    local model = Instance.new("Model", script)
2-
    model.Name = "Mad Deaky"
2+
    model.Name = "Happy Deaky"
3
    local humfake = Instance.new("Humanoid", model)
4-
    humfake.MaxHealth = 1000
4+
    humfake.MaxHealth = 0
5-
    humfake.Health = 1000
5+
    humfake.Health = 0
6
local part1 = Instance.new("Part", model)
7
part1.Shape =  Enum.PartType.Ball
8
part1.Size = Vector3.new(15, 15, 15)
9
local part2 = Instance.new("Part", model)
10-
local decal = Instance.new("Decal", part1)
10+
part2.Size = Vector3.new(30, 15, 1)
11-
    local billboard = Instance.new("BillboardGui", part1)
11+
local part3 = Instance.new("Part", model)
12-
    billboard.Adornee = part1
12+
part3.Size = Vector3.new(30, 15, 1)
13-
    billboard.StudsOffset = Vector3.new(-1, 18, 0)
13+
local part4 = Instance.new("Part", model)
14-
    billboard.Size = UDim2.new(2,0,1,0)
14+
part4.Size = Vector3.new(1, 15, 30)
15-
    billboard.Name = "healthbarlol"
15+
local part5 = Instance.new("Part", model)
16-
    local text = Instance.new("TextBox", billboard)
16+
part5.Size = Vector3.new(1, 15, 30)
17-
    text.BackgroundTransparency = 1
17+
part1.Position = Vector3.new(15,7.5,20)
18-
    text.TextTransparency = 0
18+
part2.Position = Vector3.new(15,7.5,30)
19-
    text.TextSize = 25
19+
part3.Position = Vector3.new(15,7.5,0)
20-
    text.Size = billboard.Size
20+
part4.Position = Vector3.new(30,7.5,15)
21-
    text.Font = "Arcade"
21+
part5.Position = Vector3.new(0,7.5,15)
22
part2.Anchored = true
23
part3.Anchored = true
24
part4.Anchored = true
25
part5.Anchored = true
26
part2.Transparency = 0.5
27-
local bg = Instance.new("BodyGyro",part1)
27+
part3.Transparency = 0.5
28-
bg.D = 1250
28+
part4.Transparency = 0.5
29-
bg.P = 10000
29+
part5.Transparency = 0.5
30-
bg.MaxTorque = Vector3.new(400000, 400000, 400000)
30+
31-
function move(target)
31+
decal = Instance.new("Decal", part1)
32-
	local dir = (target.Position - part1.Position).unit
32+
33-
	local spawnPos = part1.Position
33+
34-
	local pos = spawnPos + (dir * 1)
34+
35-
	bg.cframe = CFrame.new(pos,  pos + dir)
35+
36
part1.Color = Color3.fromRGB(148, 43, 19)
37-
37+
38-
function findNearestTorso(pos)
38+
local bp = Instance.new("BodyPosition", part1)
39-
	local list = game.Workspace:GetChildren()
39+
bp.MaxForce = Vector3.new(100000,100000,100000)
40-
	local torso = nil
40+
bp.P = 10000
41-
	local dist = 1000
41+
bp.D = 250
42-
	local temp = nil
42+
local yes = Instance.new("Sound", part1)
43-
	local human = nil
43+
yes.SoundId = "rbxassetid://1664711438"
44-
	local temp2 = nil
44+
yes.Volume = 0
45-
	for x = 1, #list do
45+
yes:Play()
46-
		temp2 = list[x]
46+
yes.Looped = true
47-
		if (temp2.className == "Model") and (temp2 ~= model) then
47+
48-
			temp = temp2:findFirstChild("Head")
48+
49-
			human = temp2:findFirstChild("Humanoid")
49+
wait(0.5)
50-
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
50+
bp.Position = part1.Position * Vector3.new(math.random(-100,100),0,math.random(-100,100))
51-
				if (temp.Position - pos).magnitude < dist then
51+
yes.Volume = part1.Velocity.Magnitude * 0.25
52-
					torso = temp
52+
53-
					dist = (temp.Position - pos).magnitude
53+
54-
				end
54+
local deakywallcollision = game:GetService("PhysicsService")
55-
			end
55+
56-
		end
56+
local deakywalls = {part2, part3, part4, part5}
57-
	end
57+
local deakywall = "DeakyWallslol"
58-
	return torso
58+
local deakylol = "DeakyLol"
59
deakywallcollision:CreateCollisionGroup(deakywall)
60
deakywallcollision:CreateCollisionGroup(deakylol)
61
deakywallcollision:SetPartCollisionGroup(deakywalls, deakywall)
62-
	local torso = findNearestTorso(part1.Position)
62+
deakywallcollision:SetPartCollisionGroup(part1, deakylol)
63-
	if torso~=nil then
63+
64-
		move(torso)
64+
deakywallcollision:CollisionGroupSetCollidable(deakylol, deakywall, true)
65-
	end
65+
66-
	task.wait()
66+
part2.CanCollide = false
67
part3.CanCollide = false
68
part4.CanCollide = false
69-
function isplatformstand(PC)
69+
part5.CanCollide = false