Hello. I made an E interaction rope, all the client-sided things work perfectly. Yet, the server-sided ones make some problems. The script that handles a remote event that is supposed to tween a character is not working, no errors in the output. Here is my script:
local remoteEvent = game.ReplicatedStorage.Rope;
local function server_Event(player, startedCFrame, endCFrame)
local animation = script.Animation;
local humanoid = player.Character.Humanoid;
local track = humanoid:LoadAnimation(animation)
track:Play()
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
humanoid.Parent.UpperTorso.CFrame = startedCFrame
local tweenService = game:GetService("TweenService");
local tweenInfo = TweenInfo.new(3);
local goal = {
CFrame = endCFrame;
};
tweenService:Create(humanoid.Parent.LowerTorso, tweenInfo, goal):Play()
wait(3)
track:Stop()
wait(1)
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
end;
remoteEvent.OnServerEvent:Connect(server_Event)