You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
A shoving block that shoves the player off. -
What is the issue? Include screenshots / videos if possible!
The shoving block doesn’t push the player off instantly, but instead goes through the player. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried making the block thicker and used tween service, but it didn’t work.
Video of my friend going through the block:
https://gyazo.com/fdb45f928e990ae925b70a02cfcffd48
local tweenservice = game:GetService("TweenService")
while true do
local info = TweenInfo.new(0.25)
local goal = {}
goal.CFrame = script.Parent.Side1.CFrame
local tween = tweenservice:Create(script.Parent.Part, info, goal)
tween:Play()
wait(1.5)
local info = TweenInfo.new(0.25)
local goal = {}
goal.CFrame = script.Parent.Side2.CFrame
local tween = tweenservice:Create(script.Parent.Part, info, goal)
tween:Play()
wait(1.5)
end
Please help!
Edit: CanCollide is set to true