View difference between Paste ID: cuarwq7K and SvUE26Uh
SHOW: | | - or go back to the newest paste.
1-
Player = game.Players:WaitForChild("LuaLlama")
1+
Player = game.Players:WaitForChild("ClockworkHorror")
2
local RISE = 5 
3
local TURN = -2.5
4
local FOLLOW = true 
5
P = Instance.new("Part", Player.Character)
6
P.FormFactor = "Custom"
7
P.Size = Vector3.new(2,2,2)
8
P.BrickColor = BrickColor.new("Institutional white")
9
P.TopSurface = "Smooth"
10
P.BottomSurface = "Smooth"
11
P.CanCollide = false
12
D = Instance.new("Decal", P)
13
D.Texture = "http://www.roblox.com/asset/?id=202384125"
14
D.Face = "Front"
15
D = Instance.new("Decal", P)
16
D.Texture = "http://www.roblox.com/asset/?id=202384125"
17
D.Face = "Back"
18
Partical = Instance.new("ParticleEmitter", P)
19
Partical.Rate = 1
20
Partical.Rotation = NumberRange.new(90,180)
21
Partical.RotSpeed = NumberRange.new(30,50)
22
23
24
Partical.Texture = "http://www.roblox.com/asset/?id=202384125"
25
Mesh = Instance.new("SpecialMesh", P)
26
Mesh.MeshType = "Sphere"
27
local BP = Instance.new("BodyPosition", P)
28
29
local Levitated = 0 
30
local LevitateDir = -1
31
32
while true do 
33
wait(1) 
34
pcall(function() 
35
for angle = 11.25, 360, 11.25  do
36
-- PARENT THE ORB -- 
37
P.Parent = Player.Character 
38
39
-- Levitation -- 
40
Levitated = Levitated + LevitateDir / 20 
41
if Levitated >= 1 or Levitated <= -1 then 
42
LevitateDir = -LevitateDir 
43
end 
44
TURN = angle
45
if (FOLLOW == true) then 
46
BP.position = (Player.Character.Torso.CFrame * CFrame.Angles(math.rad(20), math.rad(TURN), math.rad(TURN)) * CFrame.new(1, 1.5, 5)).p + Vector3.new(0, Levitated, 0) 
47
end
48
wait(0.1)
49
end
50
end)
51
end