https://gyazo.com/bae0f853485b18bd922f35993c15f98b
Shambles.OnClientEvent:Connect(function(Player, mouseTarget)
local zoneGroup = game.Workspace.FX.ROOM
local zone = Zone.new(zoneGroup)
local isTargetWithinZoneBool = zone:findPart(mouseTarget)
local isPlayerWithinZoneBool = zone:findPlayer(Player)
if isTargetWithinZoneBool and isPlayerWithinZoneBool then
local PlayerLocation = Player.Character.HumanoidRootPart.CFrame
local EnemyLoction = mouseTarget.Parent.HumanoidRootPart.CFrame
Player.Character.HumanoidRootPart.CFrame = EnemyLoction
mouseTarget.Parent.HumanoidRootPart.CFrame = PlayerLocation
print("Shambles")
wait(SHAMBLESCOOLDOWN)
end
SHAMBLESENABLED = true
end)
The script is teleporting the Enemy Player to the character, but not the character to where the enemy location is. Anyone know how I fix this? Btw this code is in a OnClientEvent in a local script, that shows up from FireAllClients