Well I have been working on some old scripts and after the roblox update they haven't been working anymore. I tried to make the CageSpell local but it didn't work. Here's the script:
--- SonOfSevenless print("Cage Spell Loaded")
local COOLDOWN = 0 -- reload time
bin = script.Parent
function cage(pos)
local player = bin.Parent.Parent if player == nil or player.Character == nil then return end if (pos.magnitude > 2000) then return end local cage = bin:findFirstChild("Block"):clone() -- change Block to the name of a model in the hopperbin bin.MeltCage:clone().Parent = cage --inserts script that removes model after a length of time cage.MeltCage.Disabled = false cage.Parent = game.Workspace local p = Vector3.new(pos.x, pos.y, pos.z) cage:makeJoints() cage:move(p)
end
enabled = true function onButton1Down(mouse) if not enabled then return end
local player = bin.Parent.Parent if player == nil then return end enabled = false mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png" local cf = mouse.Hit local v = cf.lookVector cage(cf.p) --places copy of model in clicked position wait(COOLDOWN) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" enabled = true
end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected)