Hello Devs, I’m having an issue with firing a remote event which fires a tween from the server to all the clients in the game (Remote Event: Server to All clients). So, all the clients in the game will be seeing the tween and the server won’t have to deal with the tween. The problem is, the tween won’t play and I’m not sure why. I hope someone can help me.
- Here’s my code in the server script:
local RS = game:GetService(“ReplicatedStorage”)
local RemoteEvent = RS:WaitForChild(“RemoteEvent”)
local Ball = workspace:WaitForChild(“Part”)
RemoteEvent:FireAllClients()
- Here’s my code in a local script:
local RS = game:GetService(“ReplicatedStorage”)
local RemoteEvent = RS:WaitForChild(“RemoteEvent”)
local Ball = workspace:WaitForChild(“Part”)
local Players = game:GetService(“Players”)
local TweenService = game:GetService(“TweenService”)
local tweeningInformation = TweenInfo.new(
3,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
-1,
true,
0
)
local Goal = {CFrame = CFrame.new(-70.184, 10.758, 0.526)}
RemoteEvent.OnClientEvent:Connect(function()
local Tween = TweenService:Create(Ball, tweeningInformation, Goal)
Tween:Play()
end)