View difference between Paste ID: 8VrjKU7R and KeXWwFsJ
SHOW: | | - or go back to the newest paste.
1-
target=game.Players.AltraIncantatrix
1+
target=game.Players.OniTaiji
2-
char=game.Players.LocalPlayer.AltraIncantatrix
2+
char=game.Players.LocalPlayer.OniTaiji
3
hum=char:FindFirstChild'Humanoid'
4
torso=char:FindFirstChild'Torso'
5
if not (hum and torso) or not hum:IsA'Humanoid' then
6
return
7
end
8
local part = Instance.new("Part", char)
9
part.FormFactor = Enum.FormFactor.Custom
10
part.Transparency = 1
11
part.Size = Vector3.new(16, 0.2, 16)
12
part.CFrame = torso.CFrame*CFrame.new(0,-3,0)
13
part.CanCollide=false
14
part.Anchored=true
15
local decal = Instance.new("Decal", part)
16
decal.Face = Enum.NormalId.Top
17
decal.Texture = "http://www.roblox.com/asset/?id=268043891"
18
local decal = Instance.new("Decal", part)
19
decal.Face = Enum.NormalId.Bottom
20
decal.Texture = "http://www.roblox.com/asset/?id=268043891"
21
local c
22
c=game:service'RunService'.Stepped:connect(function()
23
part.CFrame=CFrame.new(part.CFrame.p:lerp(torso.CFrame*CFrame.new(0,-3,0).p,.3))*CFrame.Angles(0,time(),0)
24
hum.Health=hum.Health+(hum.MaxHealth/100)
25
if hum.Health >= hum.MaxHealth then
26
part:Destroy()
27
c:disconnect()
28
script:Destroy()
29
end
30
end)