Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Followed a youtube tutorial on a ice spell i made i mistake i dont get a output error?

So I was following a tutorial And somewhere I mad an issue I can't seem to find it. There is not an output error. I made sure the event is fired and it is where did I make a mistake?

local RepStorage = game:WaitForChild("ReplicatedStorage")
local Remote = RepStorage:WaitForChild("IceEvent")

Remote.OnServerEvent:Connect(function(player)
	local Character = player.Character
	local RootPart = Character:WaitForChild("HumanoidRootPart")
	local Folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder",workspace)
	Folder.Name = "DebrisFolder"
	
	local Postion = Instance.new("BodyVelocity",RootPart)
	Postion.MaxForce = Vector3.new(999999999,999999999,999999999)
	Postion.P = 300
	Postion.Velocity = RootPart.CFrame.LookVector * .1
	game.Debris:AddItem(Postion,2)
	
	local val = -4
	local sizez = 3
	local sizex = 10
	local sideval = .5
	
	local function Ice()
		local Extra = math.random(-11,11)/10
		local Shard = RepStorage:WaitForChild("IceShard"):Clone()
		local side = math.random(-sideval,sideval)
		up = Shard.Size.Y/2
		local Rotate = math.random(0,180)
		
		local MRo = math.random(99,100)
		if MRo == 99 then
			local SRo = math.random(8,10)/10
			URo = MRo + SRo
		else
			local SRo = math.random(1,3)/10
			URo = MRo + SRo
		end
		
		Shard.Size = Vector3.new(sizez.sizex,sizez)
		Shard.CFrame = RootPart.CFrame * CFrame.new(side,-up,val + Extra)
		Shard.Parent = Folder
		Shard.CFrame = Shard.CFrame * CFrame.fromEulerAnglesXYZ(URo,Rotate,0.4)
		
		val = val - 2
		sizez = sizez + 1
		sizex = sizex + 1
		game.Debris:AddItem(Shard,5)
		
		spawn(function()
			wait(.5)
			local TweenService = game:GetService("TweenService")
			
			local TweenInfom = TweenInfo.new(
				.3,
				Enum.EasingStyle.Linear,
				Enum.EasingDirection.Out,
				0,
				false,
				0
			)
			local Properties = {
				CFrame = Shard.CFrame * CFrame.new(0,up * 1.5,0)
			}
			local Tween = TweenService:Create(Shard,TweenInfom,Properties)
			Tween:Play()
		end)
		for i = 1,100 do
			Ice()
			wait()
		end
		
	end
end)

3 comments

0

Wait a sec. What problem do you get and what script are you using? Local or Server script?

0

Print statements are your friend. Make sure everything that is supposed to be firing is firing.

0

This isn't Youtube tutorial support.

1 answer

I already fixed the issue don't remember what I did tho

This discussion is preserved as it was. New answers, comments, and votes are closed.