it's supposed to fling any parts it touches, It works in studio mode but when i try to publish it to my Place and be flinged By it, but it only makes me trip. Why is that?



s = script.Parent -- it's a part
function woosh(hit) 
	hit.Velocity = ((hit.Position - s.Position).unit + Vector3.new(0,1,0))* 200 + script.Parent.Velocity
	hit.RotVelocity =  hit.RotVelocity + Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
	local a = hit.parent:findFirstChild("Humanoid")
		if a then
		a.PlatformStand = true
		wait(5)
		a.PlatformStand = false
	end
end

s.Touched:connect(woosh)


like really

3 comments

0

Is FilteringEnabled activated in your project?

0

It's probably not the scripting if it works in studio testing mode, but idk really

0

"probably not the scripting if it works in studio testing mode," Likely is. Here's an article on that: https://scriptinghelpers.org/guides/server-client-relationship-in-roblox