NYDynamics Scripting Portfolio
About Me
Hi there! I am NYDynamics but you can call me Alex! I have a strong passion for computer science and started my journey on the Roblox platform. I am quite advanced and started scripting a few years ago. One day, I hope to master Roblox scripting.
My Work
Math
I have definitely improved in math this year! For instance, I learned cubic Bezier curves with a simple cubic formula. (1 - t)^2 * p0 + 2 * (1 - t) * t * p1 + t^2 * p2
wait()
function cubicBezier(t, p0, p1, p2, p3)
return (1 - t)^3*p0 + 3*(1 - t)^2*t*p1 + 3*(1 - t)*t^2*p2 + t^3*p3
end
function travelCurve(p0, p1, p2, p3, moving)
for t = 0, 1, 0.01 do
wait()
local p = cubicBezier(t, p0, p1, p2, p3)
moving.Position = UDim2.new(0, p.x - script.Parent.AbsoluteSize.x/20, 0, p.y - script.Parent.AbsoluteSize.y/20)
game:GetService("RunService").RenderStepped:wait()
end
wait()
end
travelCurve(script.Parent.P0.AbsolutePosition,script.Parent.P1.AbsolutePosition,script.Parent.P2.AbsolutePosition,script.Parent.P3.AbsolutePosition,script.Parent.Parent.mover)
travelCurve(script.Parent.P3.AbsolutePosition,script.Parent.P2.AbsolutePosition,script.Parent.P1.AbsolutePosition,script.Parent.P0.AbsolutePosition,script.Parent.Parent.mover)
GUI
I have improved in GUI over this year.
Place
--NYDynamics
local Gui = script.Parent
local holder = Gui:WaitForChild('holder')
local rs = game:GetService('ReplicatedStorage')
local temp = rs:WaitForChild('Template')
count = 0
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
local function add(plr)
local Frame = temp:Clone()
Frame.Name = plr.Name
Frame.Parent = holder
Frame.Text = plr.Name
if game.Players.LocalPlayer:IsFriendsWith(plr.UserId) then
Frame.BackgroundColor3 = Color3.fromRGB(34,139,34)
if plr.Name == game.Players.LocalPlayer.Name then
Frame.BackgroundColor3 = Color3.fromRGB(0,0,255)
end
end
if Frame.TextScaled == false then
Frame.TextScaled = true
return
end
Frame:TweenPosition(UDim2.new(.943, 0,0.05 * (#holder:GetChildren()-1), 0))
end
local function remove(plr)
local Frame = holder:FindFirstChild(plr.Name)
if Frame then
Frame:TweenPosition(UDim2.new(1, 0,0.05 * (#holder:GetChildren()-1), 0))
wait(2)
Frame:Destroy()
end
end
function Update()
for i,v in pairs(game.Players:GetPlayers()) do
if holder:FindFirstChild(v.Name) then
print('Already counted!')
else
add(v)
end
end
for i,v in pairs(holder:GetChildren()) do
v:TweenPosition(UDim2.new(.943, 0,0.05 * (count), 0))
count = count + 1
end
count = 0
end
add(game.Players.LocalPlayer)
Update()
game.Players.PlayerAdded:Connect(function(v)
add(v)
end)
game.Players.PlayerRemoving:Connect(function(plr)
remove(plr)
Update()
end)
Lighting
--NYDynamics
local module = {}
local Color = Color3.new(math.random(255),math.random(255),math.random(255))
--[[
local debounce = false
local On = false
local Off = false
--]]
function module.Color(p)
print('Runs')
if p then
if p:IsA('BasePart')then
spawn(function()
while wait() do
--game:GetService('RunService').RenderStepped:connect(function()
wait()
for i = 0,1,0.0000001 do
wait()
--print('For loop')
p.Color = p.Color:Lerp(Color, i)
--p.Color = p.Color;
end
end
end)
end
end
end
function module.RangeLightOff(v)
--for i = 0,1,0.01 do
wait()
if v then
if v:IsA('PointLight') then
for x = 25,0,-1 do
wait()
v.Range = v.Range - 0.3
print(x)
end
return
end
end
--end
end
function module.LightOff(v)
spawn(function()
for i = 0,1,0.01 do
wait()
if v then
if v:IsA('PointLight') then
--local Clone = v:Clone()
--Clone.Parent = v.Parent
--v:Destroy()
--debounce = true
if debounce == false then
--//debounce = true
for f = 10,0,-1 do
print(f)
wait()
module.RangeLightOff(v)
v.Brightness = v.Brightness - 0.1
end
wait(2)
debounce = false
return
else
--//print('debounce')
--//debounce = true
wait()
debounce = false
end
--local Clone = v:Clone()
--Clone.Parent = v.Parent
--v:Destroy()
end
end
end
end)
end
function module.RangeLightOn(v)
for i = 0,1,0.01 do
wait()
if v then
if v:IsA('PointLight') then
for x = 10,0,-1 do
wait(0.3)
v.Brightness = v.Brightness + 0.5
v.Range = v.Range + 0.1
end
if v.Range >= 22 then
break
end
end
end
end
end
function module.LightOn(v)
print('Runs')
spawn(function()
for i = 0,1,0.01 do
wait()
if v then
if v:IsA('PointLight') then
--local Clone = v:Clone()
--Clone.Parent = v.Parent
--v:Destroy()
--Adding = true
if debounce == false then
debounce = true
for f = 50,0,-1 do
print('Run2')
wait(0.3)
module.RangeLightOn(v)
end
wait(2)
debounce = false
return
else
print('debounce')
debounce = true
wait(2)
debounce = false
end
end
end
end
end)
end
return module
Payment
For commissions, I do prefer robux. USD is not accepted.
Commissions
I am accepting commisions at this time so I am free for hire!
Contact Me
You can contact me here on the Developer Forum @NYDynamics or via Discord at NYDynamics#3191.
Thanks for reading!