I have this script here when you 'press e' it's supposed to fling the other person but all it does is fling me. Any help with changing it so it flings the other models instead of flinging me
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key) if key == "e" then local char=script.Parent local humanoid=char.Humanoid local torso=char.HumanoidRootPart -------------- -------------- wait() humanoid.PlatformStand=true torso.CFrame=torso.CFrame*CFrame.new(0,0.2,0)*CFrame.Angles(-.5,0,math.random(0,0)) torso.Velocity=torso.CFrame.lookVector*-100 wait(1) humanoid.PlatformStand=false wait() end end)
You located yourself as the flinger. Consider changing line 3: local char = game.Workspace:WaitForChild("PlayerName")