here is the script:

local TS = game:GetService("TweenService")
local InfoMove = TweenInfo.new(0.9,Enum.EasingStyle.Circular,Enum.EasingDirection.Out)
local InfoIn = TweenInfo.new(1,Enum.EasingStyle.Elastic,Enum.EasingDirection.In)
local Sounds = script.Sounds
local effects = script.Folder.Sawarudo
script.Parent.OnServerEvent:Connect(function(Player,Actiom)
	if Actiom == "STM" then
		local STP = effects:Clone()
	
		local Character = Player.Character
		local PLayerFX = Instance.new("Folder",workspace)
		PLayerFX.Name = Player.Name.."FX"
		script.Sounds.Sound:Clone().Parent = PLayerFX
		script.Sounds.TimeFlows:Clone().Parent = PLayerFX
		PLayerFX.Sound:Play()
		delay(10,function()
			PLayerFX.TimeFlows:Play()
		end)
		local EfectoB = STP:Clone()
		local HB = Instance.new("Part",PLayerFX)
		HB.Size = Vector3.new(70,70,70)
		HB.CanCollide = false
		HB.Anchored = true
		HB.Transparency = 1
		HB.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(0,0,0)
		
		EfectoB.Parent = PLayerFX
		EfectoB.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(0,0,0)
		delay(0.1,function()
			Character.Value.Value = true
			HB.Touched:Connect(function(hit)
				if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Value").Value == false then
					hit.Parent:FindFirstChild("HumanoidRootPart").Anchored = true
					print(hit.Parent)
					wait(9.9)
					hit.Parent:FindFirstChild("HumanoidRootPart").Anchored = false
				end
			end)
			
		end)

		game.Lighting.TimeStop.Enabled = true
		local goal = {}
		goal.Size = Vector3.new(70,70,70)
		local Plei = TS:Create(EfectoB,InfoMove,goal)
		Plei:Play()
		wait(2)
		
		local goal = {}
		goal.Size = Vector3.new(0,0,0)
		local Plei1 = TS:Create(EfectoB,InfoIn,goal)
		Plei1:Play()
		
		wait(10)
		game.Lighting.TimeStop.Enabled = false
		EfectoB:Remove()
		PLayerFX:Remove()
		
		
	end	
end)

1 comment

0

Is there an error message?