Guest User

hat giver (FROM VIDEO)

a guest
Oct 1st, 2021
12,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. --//HatName//--
  2. NameHat = "Black Bandana" --[[Dark Dex:
  3. loadstring(game:HttpGet("https://pastebin.com/raw/LiT0AivK",true))()
  4. ]]
  5. --//MeshPart & Texture//--
  6. MeshID = "rbxassetid://215680403" --https://www.roblox.com/games/7496952739
  7. TextureId = "rbxassetid://658646189" --https://www.roblox.com/games/7496952739
  8. --//3D//--
  9. Position = {1.1812772982012e-13, 7.6100001335144, 0.00025863014161587}
  10. Orientation = {0, 0, 0}
  11. Size = {1.1685000658035, 0.72200012207031, 1.3394998311996}
  12. --//Script//--
  13. if not game:GetService("Players").LocalPlayer.Character:FindFirstChild("Maxgat5") then
  14. local a = Instance.new("BoolValue")
  15. a.Value = true
  16. a.Name = "Maxgat5"
  17. a.Parent = game:GetService("Players").LocalPlayer.Character
  18. getgenv().playerposition = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.Position + Vector3.new(0,0,0)
  19. end
  20. getgenv().allow = true
  21. if getgenv().allow == true then
  22. getgenv().allow = false
  23. Stop = true
  24. spawn(function()
  25. while wait() do
  26. if Stop == true then
  27. for i, track in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  28. track:Stop()
  29. end
  30. end
  31. end
  32. end)
  33. local Controller = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls()
  34. Controller:Disable()
  35. local tweenInfo = TweenInfo.new(
  36. 0
  37. )
  38. local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
  39. 0,5,0
  40. )})
  41. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  42. t:Play()
  43. wait(1)
  44. --//Sheesh//--
  45. local Size1 = {x=0,y=0,z=0}
  46. local Position1 = {x=0,y=0,z=0}
  47. local Orientation1 = {x=0,y=0,z=0}
  48. --//3d//--
  49. for i,v in pairs(Size) do
  50. if i == 1 then
  51. Size1.x = v
  52. end
  53. if i == 2 then
  54. Size1.y = v
  55. end
  56. if i == 3 then
  57. Size1.z = v
  58. end
  59. end
  60. for i,v in pairs(Position) do
  61. if i == 1 then
  62. Position1.x = v
  63. end
  64. if i == 2 then
  65. Position1.y = v
  66. end
  67. if i == 3 then
  68. Position1.z = v
  69. end
  70. end
  71. for i,v in pairs(Orientation) do
  72. if i == 1 then
  73. Orientation1.x = v
  74. end
  75. if i == 2 then
  76. Orientation1.y = v
  77. end
  78. if i == 3 then
  79. Orientation1.z = v
  80. end
  81. end
  82. local plr = game.Players.LocalPlayer.Character
  83. local hat = plr[NameHat].Handle
  84. --//3d//--
  85. hat.Position = Vector3.new(Position1.x,Position1.y,Position1.z)
  86. hat.Orientation = Vector3.new(Orientation1.x,Orientation1.y,Orientation1.z)
  87. --//api//--
  88. hat.MeshId = MeshID
  89. hat.TextureID = TextureId
  90. --//trun everything back
  91. Controller:Enable()
  92. Stop = false
  93. local tweenInfo1 = TweenInfo.new(
  94. 0
  95. )
  96. local t1 = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo1, {CFrame = CFrame.new(
  97. getgenv().playerposition
  98. )})
  99. t1:Play()
  100. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  101. getgenv().allow = true
  102. end
Advertisement
Add Comment
Please, Sign In to add comment