Ok so i have these 2 models A PS5 and then a PS5PRO those are 2 seperate models and what i want to do it i want to Showcase them On these 2 Plat forms i have built for them and if somebody walks near that platform with the ps5s the prompt to buy it will show up and when in game while they are on the stand i want them to move smoothly up and down and rotating with tween so it looks good and let me know how to set this all up
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I'll help you set up an interactive showcase system for your PS5 models. Here's how to create this with smooth animations and proximity-based purchase prompts:
Basic Setup
First, create your showcase structure:
Place your two platforms where you want them
Put the PS5 model on one platform and PS5 Pro on the other
Add a Part inside each platform called "DetectionZone" - make it invisible and larger than the platform (like a 10x10x10 stud area)
Add another Part called "DisplayModel" where your PS5 model sits
Script for Each Showcase
Place this script in ServerScriptService and modify it for each showcase:
lua
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
-- Configure these for each showcase
local platform = workspace.Platform1 -- Change to your platform
local detectionZone = platform.DetectionZone
local displayModel = platform.DisplayModel -- The part your PS5 is attached to
local modelName = "PS5" -- or "PS5 Pro"
local price = 499 -- Set your price
-- Animation settings
local floatHeight = 2 -- How high it floats
local rotationSpeed = 10 -- Seconds for full rotation
local floatSpeed = 3 -- Seconds to float up/down
-- Create the animations
local startPosition = displayModel.Position
local floatTween = TweenService:Create(
displayModel,
TweenInfo.new(floatSpeed, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true),
{Position = startPosition + Vector3.new(0, floatHeight, 0)}
)
local rotateTween = TweenService:Create(
displayModel,
TweenInfo.new(rotationSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1),
{CFrame = displayModel.CFrame * CFrame.Angles(0, math.rad(360), 0)}
)
-- Start animations
floatTween:Play()
rotateTween:Play()
-- Track players in range
local playersInRange = {}
detectionZone.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player and not playersInRange[player] then
playersInRange[player] = true
-- Fire remote event to show purchase GUI
game.ReplicatedStorage.ShowPurchasePrompt:FireClient(player, modelName, price)
end
end
end)
detectionZone.TouchEnded:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player and playersInRange[player] then
playersInRange[player] = nil
-- Fire remote event to hide purchase GUI
game.ReplicatedStorage.HidePurchasePrompt:FireClient(player)
end
end
end)
Client-Side GUI Script
Place this in StarterPlayer > StarterPlayerScripts:
lua
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Create or get your purchase GUI
local purchaseGui = playerGui:WaitForChild("PurchaseGui") -- Create this in StarterGui
local showPrompt = game.ReplicatedStorage:WaitForChild("ShowPurchasePrompt")
local hidePrompt = game.ReplicatedStorage:WaitForChild("HidePurchasePrompt")
showPrompt.OnClientEvent:Connect(function(modelName, price)
purchaseGui.Enabled = true
purchaseGui.Frame.ModelName.Text = modelName
purchaseGui.Frame.Price.Text = "$" .. price
end)
hidePrompt.OnClientEvent:Connect(function()
purchaseGui.Enabled = false
end)
Setup Steps:
Create Remote Events: In ReplicatedStorage, create two RemoteEvents named "ShowPurchasePrompt" and "HidePurchasePrompt"
Create the GUI: In StarterGui, create a ScreenGui called "PurchaseGui" with:
A Frame containing your purchase interface
TextLabels for ModelName and Price
Buy button
Set Enabled to false by default
Attach Models: Either weld your PS5 models to the DisplayModel part or make the DisplayModel part look like the PS5
Configure Detection Zones: Make them transparent with CanCollide = false
Adjust Animation Values: Tweak the floatHeight, rotationSpeed, and floatSpeed values to your liking
The models will continuously float up/down and rotate smoothly using TweenService, and when players walk near them, they'll see the purchase prompt. The prompt disappears when they walk away.