is it possible to tween a object when a remote function is fired?
Asked by
3wdo 198
5 years ago Edited 5 years ago
im making a game based off the japanese game show the death pit.i want it so when someone says ready the platform will move. Can some one help me with my script? the first script is in serverscriptservice if that affects this
1 | game.Players.PlayerAdded:Connect( function (player) |
2 | player.Chatted:Connect( function (message) |
3 | if message = = "ready" or "Ready" then |
4 | game.ReplicatedStorage [ "Start Game" ] :FireServer() |
01 | local TweenService = game:GetService( "TweenService" ) |
02 | local PlatForm = script.Parent.Parent:WaitForChild( "DisapearPart" ) |
03 | local tweeningInformation = TweenInfo.new( |
05 | Enum.EasingStyle.Linear, |
06 | Enum.EasingDirection.Out, |
11 | local Move = { CFrame = CFrame.new( 99.125 , 177.707 , - 262.83 ) } |
12 | local ComeBack = { CFrame = CFrame.new( 99.125 , 177.707 , - 215.915 ) } |
13 | local tween 1 move = TweenService:Create(PlatForm,tweeningInformation,Move) |
14 | local tween 1 comeback = TweenService:Create(PlatForm,tweeningInformation,ComeBack) |
16 | game.ReplicatedStorage [ "Start Game" ] .OnServerEvent:Connect( function (player) |