Advertisement
Guest User

Application Scripts

a guest
Jun 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. local function OnRenderedFrame(DeltaTime)
  2.  
  3. Camera.CFrame = PlayerMoverModel.PrimaryPart.CFrame:ToWorldSpace(
  4. CFrame.Angles(0,math.rad(CurrentRot),0))*CFrame.new(0,0,CurrentDist)
  5.  
  6. CurrentRot = CurrentRot-ROT_PER_FRAME
  7. CurrentDist = CurrentDist + (DIST_PER_FRAME)
  8.  
  9. if CurrentRot <= TargetRot and CurrentDist >= TargetDist then
  10.  
  11. RS:UnbindFromRenderStep(BindingName)
  12. wait(LOOKTIME)
  13.  
  14. if FlagGUI then
  15.  
  16. self:InterfaceGUI()
  17.  
  18. end
  19.  
  20. end
  21.  
  22. end
  23.  
  24. RS:BindToRenderStep(BindingName,Enum.RenderPriority.Last.Value,OnRenderedFrame)
  25. 2ND SCRIPT
  26. local id = 6170599
  27. local mp = game:GetService("MarketplaceService")
  28.  
  29. game.Players.PlayerAdded:Connect(function(player)
  30. player.CharacterAdded:Connect(function(char)
  31. mp.PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
  32. if purchased and id == ido then
  33. local trail = game.ServerStorage.RainbowTrail:Clone()
  34. trail.Parent = char.HumanoidRootPart
  35. trail.Name = "CurrentTrail"
  36. local attachment0 = Instance.new("Attachment",char.Head)
  37. attachment0.Name = "TrailNum0"
  38. local attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
  39. attachment1.Name = "TrailNum1"
  40. trail.Attachment0 = attachment0
  41. trail.Attachment1 = attachment1
  42. end
  43. end)
  44. end)
  45. end)
  46.  
  47. game.Players.PlayerAdded:Connect(function(player)
  48. player.CharacterAdded:Connect(function(char)
  49. if mp:UserOwnsGamePassAsync(player.UserId,id) then
  50. local trail = game.ServerStorage.RainbowTrail:Clone()
  51. trail.Name = "CurrentTrail"
  52. trail.Parent = char.HumanoidRootPart
  53. local attachment0 = Instance.new("Attachment",char.Head)
  54. attachment0.Name = "TrailNum0"
  55. local attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
  56. attachment1.Name = "TrailNum1"
  57. trail.Attachment0 = attachment0
  58. trail.Attachment1 = attachment1
  59. end
  60. end)
  61. end)
  62. game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) mp.PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased) if purchased and id == ido then local trail = game.ServerStorage.RainbowTrail:Clone() trail.Parent = char.HumanoidRootPart trail.Name = “CurrentTrail” local attachment0 = Instance.new(“Attachment”,char.Head) attachment0.Name = “TrailNum0” local attachment1 = Instance.new(“Attachment”,char.HumanoidRootPart) attachment1.Name = “TrailNum1” trail.Attachment0 = attachment0 trail.Attachment1 = attachment1 end end) end) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement