im making a game similar to a japanese game show and i need this script to make things move. its a regular script. the first script is the script im talking about and the 2nd might have to do with this its a local script P.S sorry if im bad at explaining

    local plr = game:GetService("Players").LocalPlayer
local TweenService = game:GetService("TweenService")
local plat1 = game:GetService("Workspace").Moving.plat1
local plat2 = game:GetService("Workspace").Moving.plat2
local plat3 = game:GetService("Workspace").Moving.plat3
local tweeningInformation = TweenInfo.new(
    7,   
    Enum.EasingStyle.Quart,
    Enum.EasingDirection.InOut,
    0,
    false,
    0
)

local Move1 = {CFrame = CFrame.new(100.268, 182.064, -185.972)}
local ComeBack1 = {CFrame = CFrame.new(100.268, 182.064, -199.157)}
local tween1move = TweenService:Create(plat1,tweeningInformation,Move1)
local tween1comeback = TweenService:Create(plat1,tweeningInformation,ComeBack1)

local Move2 = {CFrame = CFrame.new(86.359, 182.064, -186.982)}
local ComeBack2 = {CFrame = CFrame.new(86.359, 182.064, -199.157)}
local tween2move = TweenService:Create(plat2,tweeningInformation,Move2)
local tween2comeback = TweenService:Create(plat2,tweeningInformation,ComeBack2)

local Move3 = {CFrame = CFrame.new(72.223, 182.064, -186.43)}
local ComeBack3 = {CFrame = CFrame.new(72.223, 182.064, -199.157)}
local tween3move = TweenService:Create(plat3,tweeningInformation,Move3)
local tween3comeback = TweenService:Create(plat3,tweeningInformation,ComeBack3)


game.ReplicatedStorage.starting.OnServerEvent:Connect(function(player)
	print("Started")
	wait(10)
	if game.ReplicatedStorage.Platform.Value == 1 then
		tween1move:Play()
		wait(300)
		tween1comeback:Play()
		if game.ReplicatedStorage.Platform.Value == 2 then
			tween2move:Play()
			wait(300)
			tween2comeback:Play()
			if game.ReplicatedStorage.Platform.Value == 3 then
				tween3move:Play()
				wait(300)
				tween3comeback:Play()
			end
		end
	end
end)

2ND script

local qtable = {}
qtable[1] = "How do you say Apple in spanish"
qtable[2] = "In the rubiks cube wca, What shape is the megaminx"
qtable[3] = "What's Ikon's most liked song"
local storage = game.ReplicatedStorage
game.ReplicatedStorage.starting.OnClientEvent:Connect(function(player)
    local random = math.random(1, 3)
    print("Client Fired")
    wait(10)
    if random == 1 then 
        script.Parent.Text = "Platform 1, "..qtable[math.random(1,3)].."?"
        storage.Platform.Value = 1
    elseif random == 2 then
        script.Parent.Text = "Platform 2, "..qtable[math.random(1,3)].."?"
        storage.Platform.Value = 2
    elseif random == 3 then
        script.Parent.Text = "Platform 3, "..qtable[math.random(1,3)].."?"
        storage.Platform.Value = 3
    end
end)

7 comments

0

Tween Service is only used for GUI's. Use CFrames to help with that. https://developer.roblox.com/en-us/articles/Understanding-CFrame.

0

i used it for a block a few times and it worked so idk what to do

0

This is really complex, but try to change the tween style to ljnear?

0

Did you anchor your part?

0

yes

0

Remove the "{CFrame = " in the goals' positions. See if that works.