View difference between Paste ID: T0znjxMZ and UUwt83L9
SHOW: | | - or go back to the newest paste.
1-
local part1 = Instance.new("Part", game.Workspace)
1+
    local model = Instance.new("Model", script)
2-
local part6 = Instance.new("Part", part1)
2+
    model.Name = "Mad Deaky"
3-
part6.Size = Vector3.new(0.1,0.1,0.1)
3+
    local humfake = Instance.new("Humanoid", model)
4-
part6.Transparency = 1
4+
    humfake.MaxHealth = 1000
5-
part6.CanCollide = false
5+
    humfake.Health = 1000
6-
local weld = Instance.new("Weld", part6)
6+
local part1 = Instance.new("Part", model)
7-
weld.Part0 = part1
7+
part1.Shape =  Enum.PartType.Ball
8-
weld.Part1 = partl6
8+
part1.Size = Vector3.new(15, 15, 15)
9-
part6.CFrame = CFrame.new(0,0,1.5)
9+
part1.Name = "Head"
10-
local part4 = Instance.new("Part", game.Workspace)
10+
local decal = Instance.new("Decal", part1)
11-
local part3 = Instance.new("Part", game.Workspace)
11+
    local billboard = Instance.new("BillboardGui", part1)
12-
local part5 = Instance.new("Part", game.Workspace)
12+
    billboard.Adornee = part1
13-
part1.Size = Vector3.new(1.487, 0.985, 2.72)
13+
    billboard.StudsOffset = Vector3.new(-1, 18, 0)
14-
part5.Size = Vector3.new(1.5, 1.5, 1.5)
14+
    billboard.Size = UDim2.new(2,0,1,0)
15-
part1.Transparency = 1
15+
    billboard.Name = "healthbarlol"
16-
part5.Transparency = 1
16+
    local text = Instance.new("TextBox", billboard)
17-
part4.Size = Vector3.new(1.487, 0.985, 2.72)
17+
    text.BackgroundTransparency = 1
18-
Meshlol = Instance.new("SpecialMesh")
18+
    text.TextTransparency = 0
19-
Meshlol.Parent = part4
19+
    text.TextSize = 25
20-
Meshlol.MeshId = "http://www.roblox.com/asset/?id=2540334246"
20+
    text.Size = billboard.Size
21-
Meshlol.TextureId = "http://www.roblox.com/asset/?id=2540334261"
21+
    text.Font = "Arcade"
22-
Meshlol.Scale = Vector3.new(1, 1, 1)
22+
decal.Face = Enum.NormalId.Front
23-
Meshlol2 = Instance.new("SpecialMesh")
23+
local happyFace = "http://www.roblox.com/asset/?id=7174894082"
24-
Meshlol2.Parent = part3
24+
decal.Texture = happyFace
25-
Meshlol2.MeshId = "http://www.roblox.com/asset/?id=2540333861"
25+
part1.Material = "Slate"
26-
Meshlol2.TextureId = "http://www.roblox.com/asset/?id=2540333887"
26+
part1.Color = Color3.fromRGB(148, 43, 19)
27-
Meshlol2.Scale = Vector3.new(1, 1, 1)
27+
28-
part3.Size = Vector3.new(1.03, 1.044, 1.185)
28+
bg.D = 1250
29-
part3.CanCollide = false
29+
30-
part1.Position = Vector3.new(10, 10, 10)
30+
31-
part5.CanCollide = false
31+
32-
part5.Anchored = true
32+
	local dir = (target.Position - part1.Position).unit
33-
part5.Position = Vector3.new(10, 10, 10)
33+
	local spawnPos = part1.Position
34-
Weld4 = Instance.new("Weld")
34+
35-
Weld4.Parent = part1
35+
36-
Weld4.Part0 = part1
36+
37-
Weld4.Part1 = part4
37+
38-
Weld4.part1 = part4
38+
39
	local list = game.Workspace:GetChildren()
40-
bg.D = 100
40+
41
	local dist = 1000
42
	local temp = nil
43-
local bg2 = Instance.new("BodyGyro",part3)
43+
44-
bg2.D = 100
44+
45-
bg2.P = 10000
45+
46-
bg2.MaxTorque = Vector3.new(0, 400000, 0)
46+
47-
local bp = Instance.new("BodyPosition",part1)
47+
		if (temp2.className == "Model") and (temp2 ~= model) then
48-
bp.D = 100
48+
49-
bp.P = 10000
49+
50-
bp.position = Vector3.new(10, 10, 10)
50+
51-
local bp2 = Instance.new("BodyPosition",part3)
51+
52-
bp2.D = 100
52+
53-
bp2.P = 10000
53+
54-
bp2.position = Vector3.new(10,9.25,10)
54+
55-
part3.Position = Vector3.new(10,9.25,10)
55+
56
		end
57-
part3.CFrame = part3.CFrame * CFrame.Angles(math.rad(180), 0, 0)
57+
58
	return torso
59
end
60-
	local dir = (part5.Position - target.Position).unit
60+
coroutine.wrap(function()
61-
	local spawnPos = part5.Position
61+
62
	local torso = findNearestTorso(part1.Position)
63
	if torso~=nil then
64-
	bg2.cframe = CFrame.new(pos,  pos + dir)
64+
65
	end
66
	task.wait()
67
end
68
end)()
69
function isplatformstand(PC)
70
coroutine.wrap(function()
71
PC.Character.Humanoid.PlatformStand = true
72
wait(3)
73
	for i,v in pairs(PC.Character:GetDescendants()) do
74
		if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
75
v.Enabled = true
76-
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
76+
77
end
78
PC.Character.Humanoid.PlatformStand = false
79
end)()
80
end
81
local debris = game:GetService("Debris")
82
function killfunction(part)
83
			local Model = part:FindFirstAncestorOfClass("Model")
84
			if Model then
85
				local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
86
				if PC then
87
            local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
88
                limbcollider.Size = Vector3.new(1.4,1,1)
89
                limbcollider.Shape = "Cylinder"
90-
	local torso = findNearestTorso(part5.Position)
90+
                limbcollider.Transparency = 1
91
                limbcollider.Name = "LimbCollider"
92
                local limbcolliderweld = Instance.new("Weld", limbcollider)
93
                limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
94
                limbcolliderweld.Part1 = limbcollider
95
                limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
96-
96+
            local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
97
                limbcollider2.Size = Vector3.new(1.4,1,1)
98
                limbcollider2.Shape = "Cylinder"
99
                limbcollider2.Transparency = 1
100
                limbcollider2.Name = "LimbCollider"
101
                local limbcolliderweld2 = Instance.new("Weld", limbcollider)
102
                limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
103
                limbcolliderweld2.Part1 = limbcollider2
104
                limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
105
            local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
106
                limbcollider3.Size = Vector3.new(1.3,1,1)
107
                limbcollider3.Shape = "Cylinder"
108
                limbcollider3.Transparency = 1
109
                limbcollider3.Name = "LimbCollider"
110
                local limbcolliderweld3 = Instance.new("Weld", limbcollider)
111
                limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
112
                limbcolliderweld3.Part1 = limbcollider3
113
                limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
114
            local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
115
                limbcollider4.Size = Vector3.new(1.3,1,1)
116
                limbcollider4.Shape = "Cylinder"
117
                limbcollider4.Transparency = 1
118
                limbcollider4.Name = "LimbCollider"
119
                local limbcolliderweld4 = Instance.new("Weld", limbcollider)
120
                limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
121
                limbcolliderweld4.Part1 = limbcollider4
122
                limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
123
debris:AddItem(limbcollider, 3)
124
debris:AddItem(limbcollider2, 3)
125
debris:AddItem(limbcollider3, 3)
126
debris:AddItem(limbcollider4, 3)
127
isplatformstand(PC)
128
	for i,v in pairs(PC.Character:GetDescendants()) do
129
		if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
130
			local Socket = Instance.new("BallSocketConstraint")
131
			local a1 = Instance.new("Attachment")
132
			local a2 = Instance.new("Attachment")
133
			a1.Parent = v.Part0
134
			a2.Parent = v.Part1
135
			Socket.Parent = v.Parent
136
			Socket.Attachment0 = a1
137
			Socket.Attachment1 = a2
138
			a1.CFrame = v.C0
139
			a2.CFrame = v.C1
140
			Socket.LimitsEnabled = true
141
			Socket.TwistLimitsEnabled = true
142
			v.Enabled = false
143
debris:AddItem(a1, 3)
144
debris:AddItem(a2, 3)
145
debris:AddItem(Socket, 3)
146
		end
147
	end
148
end
149
end
150
end
151
local db = false
152
Bullet = Instance.new("Part", owner.Character)
153
Bullet.Position = Vector3.new(1000000,1000000,1000000)
154
Bullet.Anchored = true
155
Bullet.CanCollide = false
156
Bullet.BrickColor = BrickColor.new("Bright yellow")
157
while true do
158
task.wait()
159
text.Text = "Health: "..humfake.Health.."/1000"
160
if humfake.Health <= 0 then
161
model:Destroy()
162
script:Destroy()
163
else
164
end
165
wait(2.5)
166
    local origin = part1.Position
167
    local position = part1.CFrame.lookVector * 300
168
	local direction = (position - origin).Unit*300
169
	local result = game.Workspace:Raycast(origin, direction)
170
 
171
	local intersection = result and result.Position or origin + direction
172
	local distance = (origin - intersection).Magnitude + 2.5
173
 
174
	local bullet_clone = Bullet:Clone()
175
	bullet_clone.Size = Vector3.new(1.25, 1.25, distance)
176
	bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2)
177
	bullet_clone.Parent = game.Workspace
178
 
179
	if result then
180
		local part = result.Instance
181
                wait(0.1)
182
                killfunction(part)
183
		local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
184
 
185
		if humanoid then
186
			humanoid.Health = humanoid.Health - 45
187
    local velocity = Instance.new("BodyVelocity", part)
188
    velocity.Velocity = bullet_clone.CFrame.lookVector * 20
189
    velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
190
wait(0.125)
191
velocity:Destroy()
192
velocity = nil
193
	end
194
	end
195
	wait(0.25)
196
	bullet_clone:Destroy()
197
if not db then
198
db = true
199
part1.CFrame = part1.CFrame * CFrame.new(math.random(-25,25),0,math.random(-25,25))
200
wait(0.1)
201
db = false
202
end
203
end