I am trying to mess around to self-learn scripting techniques, and I am trying to make a tool that Creates Basic Parts, I put Print statements so i can look in the output to see if its working, and they are both not working :/

Regular Script

Tool = script.Parent
Handle = Tool.Handle
Create = Instance.new


wait()
game.ReplicatedStorage.Fire.OnServerEvent:Connect(function(Player,Debounce)
	print("Received") --Not Getting Recieved
	local Character = (Player.Character or Player.CharacterAdded:wait())
	local Beam = Create("Part")
	Beam.Shape = "Cylinder"
	Beam.CFrame = Character.HumanoidRootPart.CFrame.LookVector.Unit
	Beam.Parent = workspace
end)

Local Script

Tool = script.Parent
Handle = Tool.Handle
Create = Instance.new
Debounce = true
Player = game.Players.LocalPlayer

function Activated()
	if Debounce == true then
		Debounce = false
		print("Fired") --Not Firing
		game.ReplicatedStorage.Fire:FireServer(Player,Debounce)
		wait(1)
		Debounce = true
	end
end

3 comments

1

is this ur entire script? because Activated() isnt being called

0

shoot i forgot about that

0

no problem