Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OnRenderedFrame(DeltaTime)
- Camera.CFrame = PlayerMoverModel.PrimaryPart.CFrame:ToWorldSpace(
- CFrame.Angles(0,math.rad(CurrentRot),0))*CFrame.new(0,0,CurrentDist)
- CurrentRot = CurrentRot-ROT_PER_FRAME
- CurrentDist = CurrentDist + (DIST_PER_FRAME)
- if CurrentRot <= TargetRot and CurrentDist >= TargetDist then
- RS:UnbindFromRenderStep(BindingName)
- wait(LOOKTIME)
- if FlagGUI then
- self:InterfaceGUI()
- end
- end
- end
- RS:BindToRenderStep(BindingName,Enum.RenderPriority.Last.Value,OnRenderedFrame)
- 2ND SCRIPT
- local id = 6170599
- local mp = game:GetService("MarketplaceService")
- 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)
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(char)
- if mp:UserOwnsGamePassAsync(player.UserId,id) then
- local trail = game.ServerStorage.RainbowTrail:Clone()
- trail.Name = "CurrentTrail"
- trail.Parent = char.HumanoidRootPart
- 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)
- 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)
- --Select Spin
- spin.MouseButton1Down:Connect(function()
- if spinDe then
- spinDe = false
- local originalSpinText = spin.TextLabel.Text
- -- Purchase is made here
- local productId = 574458039
- game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
- -- Checks to see if player has permission (Function sent from the module script)
- if not contents:PermissionToSpin(player) then
- spin.TextLabel.Text = contents.Messages.FailPermissionCheck
- wait(1)
- else
- spin.TextLabel.Text = contents.Messages.Loading
- local spinDetails, errorMessage = rfunction:InvokeServer()
- if not spinDetails then
- if not errorMessage then
- errorMessage = contents.Messages.ServerError
- end
- spin.TextLabel.Text = errorMessage
- wait(1)
- else
- SpinFunction(spinDetails)
- end
- end
- spin.TextLabel.Text = originalSpinText
- spinDe = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement