Advertisement
TheUnknownDiscord

tf2 french man laughs at you

Dec 7th, 2021 (edited)
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. part1 = Instance.new("Part", owner.Character.Head)
  2. part1.Size = Vector3.new(7.5,7.5,0.05)
  3. part1.Anchored = true
  4. part1.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,2.5,-5)
  5. local decal = Instance.new("Texture", part1)
  6. decal.Texture = "http://www.roblox.com/asset/?id=8199973789"
  7. decal.Face = Enum.NormalId.Front
  8. decal.Transparency = 0
  9. local Frames = 136
  10. local currentFrame = 136
  11. local music = Instance.new("Sound", part1)
  12. music.SoundId = "rbxassetid://2403731701"
  13. music.Volume = 1.5
  14. music:Play()
  15. local rows = 16
  16. local columns = 8
  17.  
  18. local currentRow,CurrentColumn = 0,0
  19.  
  20. local linear = false
  21.  
  22. local fps = 120
  23. local full60fps = false
  24.  
  25. local size = part1.Size
  26.  
  27. decal.StudsPerTileU = columns*size.X
  28. decal.StudsPerTileV = rows*size.Y
  29.  
  30. while true do
  31. if not full60fps then wait(1/fps) else game:GetService("RunService").Stepped:Wait() end
  32. if linear then
  33. decal.OffsetStudsU = decal.OffsetStudsU + size.X
  34. if decal.OffsetStudsU > decal.StudsPerTileU then
  35. decal.OffsetStudsU = 0
  36. end
  37. else
  38. CurrentColumn = CurrentColumn + 1
  39. if CurrentColumn > columns then
  40. CurrentColumn = 1
  41. currentRow = currentRow + 1
  42. end
  43. if currentFrame > Frames then
  44. currentRow,CurrentColumn,currentFrame = 1,1,1
  45. music:Play()
  46. end
  47. decal.OffsetStudsU = size.X*(CurrentColumn-1)
  48. decal.OffsetStudsV = size.Y*(currentRow-1)
  49. currentFrame = currentFrame+1
  50. end
  51. end
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement