View difference between Paste ID: p98SNpH5 and 1p5Ki1Hg
SHOW: | | - or go back to the newest paste.
1-
part1 = Instance.new("Part", owner.Character.Head)
1+
part1 = Instance.new("Part", owner.Character.Torso)
2-
part1.Size = Vector3.new(1,1,1)
2+
part1.Size = Vector3.new(2,2,1)
3
Weld4 = Instance.new("Weld")
4-
Weld4.Parent = owner.Character.Head
4+
Weld4.Parent = owner.Character.Torso
5-
Weld4.Part0 = owner.Character.Head
5+
Weld4.Part0 = owner.Character.Torso
6
Weld4.Part1 = part1
7-
Weld4.C1 = CFrame.new(0,0,0.1)
7+
Weld4.C1 = CFrame.new(0,0,-0.1)
8
part1.Transparency = 1
9
local decal = Instance.new("Texture", part1)
10
decal.Texture = "http://www.roblox.com/asset/?id=7551612432"
11-
decal.Face = Enum.NormalId.Front
11+
decal.Face = Enum.NormalId.Back
12
decal.Transparency = 0
13
local Frames = 44 --Amount of frames in gif
14
local currentFrame = 1
15
16
local rows = 7
17
local columns = 7
18
19
local currentRow,CurrentColumn = 0,0
20
21
local linear = false
22
23
local fps = 10 -- Max 30
24
local full60fps = false
25
26
local size = part1.Size 
27
28
decal.StudsPerTileU = columns*size.X
29
decal.StudsPerTileV = rows*size.Y
30
31
while true do
32
	if not full60fps then wait(1/fps) else game:GetService("RunService").Stepped:Wait() end
33
	if linear then
34
		decal.OffsetStudsU = decal.OffsetStudsU + size.X
35
		if decal.OffsetStudsU > decal.StudsPerTileU then
36
			decal.OffsetStudsU = 0
37
		end
38
	else
39
		CurrentColumn = CurrentColumn + 1
40
		if CurrentColumn > columns then
41
			CurrentColumn = 1
42
			currentRow = currentRow + 1
43
		end
44
		if currentFrame > Frames then
45
			currentRow,CurrentColumn,currentFrame = 1,1,1
46
		end
47
		decal.OffsetStudsU = size.X*(CurrentColumn-1)
48
		decal.OffsetStudsV = size.Y*(currentRow-1)
49
		currentFrame = currentFrame+1
50
	end
51
end