You are also needlessly complicating your code:
Code:
function CreateText(name,text,x,y,parent,w,h,relativeto,relativepoint)
Parent = parent
local Name = name
local TextX = x
local TextY = y
local RelativeTo = relativeto
local RelativePoint = relativepoint
local TextWidth = w
local TextHeight = h
local Text = text
Why are you making variables to store variables? Just use the function arguments directly.