Advertisement
thegamerplane

Application Scripts v2

Jun 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 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)
  63. --Select Spin
  64. spin.MouseButton1Down:Connect(function()
  65. if spinDe then
  66. spinDe = false
  67. local originalSpinText = spin.TextLabel.Text
  68.  
  69. -- Purchase is made here
  70. local productId = 574458039
  71. game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
  72. -- Checks to see if player has permission (Function sent from the module script)
  73. if not contents:PermissionToSpin(player) then
  74. spin.TextLabel.Text = contents.Messages.FailPermissionCheck
  75. wait(1)
  76. else
  77. spin.TextLabel.Text = contents.Messages.Loading
  78. local spinDetails, errorMessage = rfunction:InvokeServer()
  79. if not spinDetails then
  80. if not errorMessage then
  81. errorMessage = contents.Messages.ServerError
  82. end
  83. spin.TextLabel.Text = errorMessage
  84. wait(1)
  85. else
  86. SpinFunction(spinDetails)
  87. end
  88. end
  89. spin.TextLabel.Text = originalSpinText
  90. spinDe = true
  91. end
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement