i make a portal gun that showed a "ScreenGui" when you equip it. its look fine on the studio but when you test it in the servers the ScreenGui wont showed up. here the script that i wrote.

portal = false
dimension = false
appear = false
the = script.Parent.Val.Value

function wormhole()
	local c = script.Parent.ScreenGui:Clone()
	c.Parent = game.Players.LocalPlayer.PlayerGui
	c.TextButton.MouseButton1Click:connect(function()
	script.Parent.Val.Value = c.TextBox.Text
	local wormhole = Instance.new("Part")
	wormhole.Size = Vector3.new(5,5,0.2)
	wormhole.Name = "Hole"
	wormhole.Parent = game.Workspace
	wormhole.CFrame = script.Parent.Handle.CFrame
	wormhole.Anchored = true
	local click = Instance.new("ClickDetector")
	click.Parent = game.Workspace.Hole
	click.MouseClick:connect(function(player)
		game:GetService("TeleportService"):Teleport(script.Parent.Val.Value,player)
	end)
	wait(5)
	wormhole:remove()
	end)
end
script.Parent.Equipped:connect(wormhole)
function remove()
	game.Players.LocalPlayer.PlayerGui.ScreenGui:remove()
end
script.Parent.Unequipped:connect(remove)

5 comments

1

The model you linked is just a union named handle. If that's all it is, that's the problem...

0

Annon28, you have not updated the item, please go in your studio select the one you have trouble with and update the one you have linked. only if you do so we can help you.

0

srry for the mistake. now updated

0

Post code here, it's easier than downloading your model.

0

+1 to omit moderation loss