-
What do you want to achieve? for the sake of keeping things short, I want to make the surrounding player’s face the caster.
-
What is the issue? They get pushed back, not away from the caster (because I dont know how to make them face the caster)
here’s a video of what’s happening:
https://gyazo.com/742d74e4020aa27b922cfca511c145e1 -
What solutions have you tried so far? I tried a version of a script I saw here but it didn’t work
here’s the script I’m working with
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://7876044115"
game.Players.PlayerAdded:Connect(function(Player)
local debounce = false
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Player.Chatted:Connect(function(msg)
local spell = string.lower(msg)
if spell == "deleatur" and not debounce then
local practitioner = Character:FindFirstChild("Practitioner")
if practitioner.Value == true then
local magic = Character:FindFirstChild("Magic")
if magic.Value > 50 then
print("enough magic")
debounce = true
local Anim = Character:WaitForChild("Humanoid"):LoadAnimation(Animation)
Anim:Play()
local check = Instance.new("Part")
check.Shape = Enum.PartType.Cylinder
check.Orientation = Vector3.new(0,0,90)
check.Position = Character.HumanoidRootPart.Position
check.Size = Vector3.new(6.63, 21.664, 21.664)
check.Anchored = true
check.CanCollide = false
check.Name = Character.Name.."'s check part"
check.Transparency = 1
check.Parent = workspace
print("made part")
check.Touched:Connect(function(target)
if target.Parent:IsA("Model") then
if target.Parent.Name == Character.Name then return end
local bv = Instance.new("BodyVelocity")
bv.Velocity = target.Parent.HumanoidRootPart.CFrame.LookVector * -50
bv.Parent = target
wait(0.3)
bv:Destroy()
end
end)
wait(0.2)
check:Destroy()
end
end
end
wait(5)
debounce = false
print("can work now")
end)
end)
end)