View difference between Paste ID: epECuYN9 and M5QrbpV8
SHOW: | | - or go back to the newest paste.
1-
--repeat wait() until _G and _G['Check'] print('Globals Loaded')
1+
local Player = game.Players:FindFirstChild('ClockworkHorror')
2-
--g=getfenv()
2+
local Char = Player.Character
3-
--coroutine.resume(_G.Include,g,_G)
3+
local Torso = Char:FindFirstChild('Torso')
4-
--coroutine.resume(IncludeLibrary,g,Finite.Custom)
4+
5-
--repeat wait() until inew~=nil and v3~=nil and c3~=nil
5+
function trail(obj)
6
local lastPos = obj.CFrame.p
7-
--Controls are q,e,t,r,k (might forget to put more hea
7+
8
while obj ~= nil do
9-
--You do not need to put your name anywhere in the script (Posted by handsomejhzzzzzz)
9+
game:service'RunService'.Stepped:wait()
10
local objC = obj:Clone()
11
objC.Locked = true
12-
inew=Instance.new
12+
objC.FormFactor = 'Custom'
13-
v3=Vector3.new
13+
objC.Parent = obj.Parent
14-
c3=Color3.new
14+
objC.Anchored = true
15-
On=true
15+
local distance = (lastPos- obj.CFrame.p).magnitude
16-
Distance=20
16+
objC.Size = Vector3.new(0.8,0.8,distance)
17-
Minimum=5
17+
objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
18-
Maximum=10000000000000
18+
19-
LightColor=c3(0/255,230/255,150/255)
19+
for i = 0,1,.1 do
20-
Light=inew('PointLight')
20+
wait(.1)
21-
Light.Color=LightColor
21+
objC.Transparency = i
22-
XVec=v3(0,0,0)
22+
23-
Target=nil
23+
objC:Destroy()
24-
Adorn=nil
24+
25-
BP=inew("BodyPosition")
25+
lastPos = obj.CFrame.p
26-
BP.maxForce=v3(9990000, 9990000, 9990000)
26+
27-
BP.P=9990000.000
27+
28-
BP.D=100000.000
28+
29-
BP.position=v3(0,50,0)
29+
local part = Instance.new('Part', workspace)
30-
Q=false
30+
Instance.new('Fire', workspace.Part)
31-
E=false
31+
Instance.new('PointLight', part)
32-
hit=nil
32+
part.FormFactor = Enum.FormFactor.Custom
33-
FireSize=10
33+
part.Size = Vector3.new(2,2,2)
34-
FireColor=c3(255/255,255/255,255/255)
34+
part.Anchored = true
35-
FireHeat=10
35+
part.Locked = true
36-
RunService=game:GetService('RunService')
36+
part.CanCollide = false
37-
Player=game.Players.LocalPlayer
37+
part.BrickColor = BrickColor.new('1003') --Really black
38-
Mouse=Player:GetMouse()
38+
part.TopSurface,part.BottomSurface=0,0
39
trail(part)
40-
script.Parent=nil
40+
local point
41-
RunService.RenderStepped:connect(function()
41+
42-
if On==false then
42+
local loop = coroutine.create(function()
43-
Adorn=nil
43+
while true do
44
for i=1,360,8 do -- i=1,360,8
45-
hit=Mouse.Hit
45+
if Player.Character and not point then
46-
Unit=(hit.p-Player.Character.Head.Position).unit
46+
point = Player.Character:FindFirstChild("Torso") 
47-
NewPos=Player.Character.Head.Position+(Unit*Distance)-XVec
47+
48-
if BP==nil then
48+
if point.Parent.Name == Player.Character.Name then
49-
BP=inew("BodyPosition")
49+
point = Player.Character:FindFirstChild("Torso") 
50-
else
50+
51-
BP.position=NewPos
51+
if part then
52
--Full_Loop = math.rad(i)
53-
if Adorn~=nil then
53+
part.CFrame = CFrame.new(point.CFrame.p)*CFrame.fromEulerAnglesXYZ(0.3,math.rad(i),0.5) * CFrame.new(0,0,-4) --CFrame.new(0,0,-4.75)
54-
BP.Parent=Adorn
54+
55-
Light.Parent=Adorn
55+
wait()
56-
else
56+
57-
BP.Parent=nil
57+
58-
Light.Parent=nil
58+
59
coroutine.resume(loop)