P_YStudio

Improve Your Obbies Part 4

Apr 27th, 2023
1,436
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | Gaming | 0 0
  1. script.Trail.FaceCamera = true
  2. script.Trail.Lifetime = 1
  3.  
  4. local gamePassId = 1234567890
  5.  
  6. game.Players.PlayerAdded:Connect(function(Player)
  7.    
  8.     Player.CharacterAdded:Wait()
  9.     Player.Character:FindFirstChild("Head")
  10.     Player.Character:FindFirstChild("HumanoidRootPart")
  11.    
  12.     if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, gamePassId) == true then
  13.         local Trail = script.Trail:Clone()
  14.         Trail.Parent = Player.Character.HumanoidRootPart
  15.        
  16.         Trail.Attachment0 = Player.Character.HumanoidRootPart.RootRigAttachment
  17.         local Attachment =Instance.new("Attachment", Player.Character.HumanoidRootPart)
  18.         Attachment.CFrame = CFrame.new(0,1,0)
  19.         Trail.Attachment1 = Attachment
  20.     end
  21.    
  22. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment