Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.ages_dreamcast
- local char = plr.Character plr.CharacterAdded:wait()
- local root = char:WaitForChild("HumanoidRootPart")
- local hum = char:WaitForChild("Humanoid")
- -- misc funcs
- local cororesume = function(c,...)
- local args = {...}
- local suc,err = pcall(function() coroutine.resume(c,unpack(args)) end)
- print(suc,err)
- return suc,err
- end
- local new_obj = function(class,props,dur)
- local nobj = Instance.new(class)
- for i,v in next,props do nobj[i] = v end
- if dur then debris:AddItem(nobj,dur) end
- return nobj
- end
- -- coros
- local main_coro = coroutine.create(function()
- local p = new_obj("Part",{
- CFrame = root.CFrame
- },5)
- p.Parent = workspace
- end)
- -- main
- coroutine.resume(main_coro)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement